Skip to main content

Notifications

Power Platform Community / Forums / Error Handling / New to Power Automate ...
Error Handling
Suggested answer

New to Power Automate and need a bit of help

Posted on by 6
Hey Guys,
I`m new to Power Automate and wanted to create a program, which crates my Planner Data into a .json File.
I`ve used a YT Video, but it doesn't work because of a problem in the type of the data.
That the message of the error: The execution of template action 'Apply_to_each_2' failed: the result of the evaluation of 'foreach' expression '@items('For_each_Task')?['dueDateTime']' is of type 'String'. The result must be a valid array.

My program:



Error:


I`ve defined all my variables as "Array":


Thank you and best regards

Tobi
  • Suggested answer
    FLMike Profile Picture
    FLMike 23,416 on at
    New to Power Automate and need a bit of help
    The error itself is very clear.
     
    When you do an Apply to Each, the input must be an Array of data, not a "column", unless that column is an Array. Yours is a string
     
    Since I do not know what you are trying to do, and you really should NOT have that many apply to eaches if you can help it,
    you need to explain exactly what this particular apply to each is doing so I can explain why what you did it wrong.
     
    If this helps please mark as the answers
     

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,749

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard

Featured topics