Power Automate: Save error — “InvalidVariableInitialization” inside For each

Cui, Shanny 0 Reputation points
2026-01-14T16:43:47.8833333+00:00

Hi, I’m building a monthly workflow that pulls messages from a Teams channel, converts them to text, runs each through an AI Builder prompt, appends the results to a string, creates a file in OneDrive, and posts the summary back to Teams. https://make.powerautomate.com/environments/Default-38305e12-e15d-4ee8-88b9-c4db1c477d76/flows/shared/75841dcd-b99f-4b73-a942-fafda13f919a?v3=true

When saving the flow, I get this error: https://make.powerautomate.com/environments/Default-38305e12-e15d-4ee8-88b9-c4db1c477d76/flows/shared/75841dcd-b99f-4b73-a942-fafda13f919a?v3=true

I've attached the workflow. Can you please help on this?

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Teddie-D 10,810 Reputation points Microsoft External Staff Moderator
    2026-01-15T03:28:30.6333333+00:00

    Hi @Cui, Shanny
    Thank you for posting your question in the Microsoft Q&A forum. 

    Could you please share screenshots of your Automate flow along with the error message you encountered when saving the flow? Since the link you attached isn’t accessible, sharing those details directly will help us better understand the issue. 

    As this forum doesn’t currently have a dedicated tag for Power Platform, I also suggest posting your question in the Microsoft Power Platform Community Forum Thread. It’s a great space full of helpful, knowledgeable people who are more than willing to walk you through the steps and share their experience. You’ll likely get clearer guidance and the support you need to make this work.  

    Please know that while our initial response might not resolve the issue right away, your input is incredibly valuable. With a bit more detail, we’ll work together to find the best solution for you.          


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.