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

Action 'Parse_JSON' Failed when no attachment is added to the form

I have a flow for when a form is submitted it creates a item in a SharePoint list. The flow contains a condition where if the form contains an attachment a link to the attachment is add to the item.

 

My problem is that if a form is submitted without an attachment the flow fails with the following;

 

Unable to process template language expressions in action 'Parse_JSON_2' inputs at line '1' and column '3438': 'Required property 'content' expects a value but got null. Path ''.'.

 

Steve_Ray74_0-1629937960275.png

Steve_Ray74_1-1629938017282.png

Steve_Ray74_2-1629938063642.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-LilyW-msft
Community Support
Community Support

Hi @Steve_Ray74 

Please change the condition as shown in the figure below and try again.

Add attachment when the upload file is not empty.

vLilyWmsft_0-1629947061731.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-LilyW-msft
Community Support
Community Support

Hi @Steve_Ray74 

Please change the condition as shown in the figure below and try again.

Add attachment when the upload file is not empty.

vLilyWmsft_0-1629947061731.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

Steve_Ray74
Helper I
Helper I

Thanks @v-LilyW-msft my flow is now working. 

Hi @Steve_Ray74 

You're welcome 😊

Best Regards.

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.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,384)