cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate III
Advocate III

Error in execution of flow

Hi

 

I always get the following error (when I execute the flow)

The variable RiskyUsers of type Array cannot be initialized or updated with the value body ('Parse JSON - Risky users')? ['Value'] of type String. The variable RiskyUsers only supports values ​​of type Array. 

Both variable "RiskyUsers" and "value" in the body of the JSON are type Array (or Matrix). Why do I get this error?

Thx for your help!

Walter

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

HI @Walter 

 

The issue is not the variable. The issue is that the "body ('Parse JSON - Risky users')? ['Value']" is a string, so you're trying to insert a string in an array.

 

You need to append it to the array. You can use the append function or an append action to do that.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

2 REPLIES 2
Super User II
Super User II

HI @Walter 

 

The issue is not the variable. The issue is that the "body ('Parse JSON - Risky users')? ['Value']" is a string, so you're trying to insert a string in an array.

 

You need to append it to the array. You can use the append function or an append action to do that.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

Hi  @manual

 

In the meantime I solved my problem. Thx a lot for your response! Much appreciated!

 

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (9,502)