AutomateAlong

Error messages › Saving and importing

Empty Apply to each in an imported flow

Seen when importing a package · Updated 8 November 2026

The message

Unable to process template language expressions for action 'For_each_attachment': Expected an expression, but found string literal ''.

What it means

The package has an Apply to each with nothing in its 'Select an output' box. Power Automate refuses the whole file.

How to fix it

  1. Open the flow where it was built and set what the loop runs over (the list from the step before, for example value from Get items).
  2. Download the package again and re-import.

Not quite your message? Paste the whole thing into the Flow Doctor. It reads the step, property and expression out of your exact wording and, for the stubborn ones, the AI reads the flow it happened in.

How to find the full error in Power Automate

  1. Open the flow and look at 28-day run history.
  2. Select the failed run (red cross), then the step with the red cross.
  3. The error is in that step's box; some are under Show raw outputs. Copy the whole thing, including the code at the start.

Other Saving and importing errors

AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.