cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ToddM11
Helper I
Helper I

Copy list to another list with variables

Hi,

 

I have a list that I want to copy to another list. I have two multiple selection columns. I am able to run it fine with just having one array variable, but when I try to add two I get an error.

 

 

ToddM11_0-1663608724588.pngToddM11_1-1663608733900.pngToddM11_2-1663608754694.pngToddM11_3-1663608765943.pngToddM11_4-1663608780795.pngToddM11_5-1663608788595.pngToddM11_6-1663608852178.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@ToddM11  Can you check in your list data if any of the item has no value for "OtherResources" column? If yes, then you have to add condition value above Apply to each action to check if value of "OtherResources" is null 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
annajhaveri
Community Champion
Community Champion

@ToddM11  can you share what error are you getting?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Hello,

 

It's the error on the apply to each 4 step which is the append to array variable for the second column. 

 

ToddM11_0-1663690429739.png

The execution of template action 'Apply_to_each_4' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each')?['OtherResources']' is of type 'Null'. The result must be a valid array.

@ToddM11  Can you check in your list data if any of the item has no value for "OtherResources" column? If yes, then you have to add condition value above Apply to each action to check if value of "OtherResources" is null 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
ToddM11
Helper I
Helper I

Thank you. That solved my problem. 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (5,453)