web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to initialize t...
Power Automate
Unanswered

Unable to initialize the variable inside apply to each action

(0) ShareShare
ReportReport
Posted on by 2

Hi All, We are unable to initialize the variable inside the apply to each action getting error "InvalidVariableInitialization". Please help us so that we can create the flow.

Please find the attached flow.

Thanks in advance.

Powerautomate.png
Categories:
  • SamLed Profile Picture
    2,340 Moderator on at

    Hi @SumitSati,

     

    Variable initialization are a way to declare them, that can't be done inside a loop, place it right after trigger. Inside loop you'll be able to set it using "set variable", "Increment variable" or "append to variable".

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard