cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Invalid Template for creating file with JSON trick

Hi,

 

I am trying to upload images from a Power App collection to a Share Point library, following the steps explained in Reza Dorrani's video: https://www.youtube.com/watch?v=5XsWgVnR7SU.

 

The "Add picture" button collects the file and populates the collection. Then the button "Post to TestinImaeLibrary" triggers a flow.

 

My screen:

ScreenShotPowerApp.png

The flow:

Flow for multiple file uploadingFlow for multiple file uploading

 

 

I get an error at the last stage of the flow displaying the following message.

 

ScreenError.png

 

- Could anybody throw some light on the subject?

- Do you know of a better way to upload images? This way is fine, but the user needs to select "all file types" every time they wwant to uploada file (due to the "Add Picture" button

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: Invalid Template for creating file with JSON trick

Hey @ceg 

 

This is a known issue with flow and powerapps. You need to remove the flow from powerapps control (button) and then add it again over there for it to work. 

 

This usually happens when you add an action to flow after registering the flow to the powerapps control. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Highlighted
Impactful Individual
Impactful Individual

Re: Invalid Template for creating file with JSON trick

@ceg Looks like a known bug.

 

Try creating a copy of your flow using the 'save as' button then run it without making any changes.

Let me know if this helps.

 

Sam

Highlighted
Dual Super User
Dual Super User

Re: Invalid Template for creating file with JSON trick

Hey @ceg 

 

This is a known issue with flow and powerapps. You need to remove the flow from powerapps control (button) and then add it again over there for it to work. 

 

This usually happens when you add an action to flow after registering the flow to the powerapps control. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Community Support
Community Support

Re: Invalid Template for creating file with JSON trick

Hi @ceg ,

 

Please check this article and get more about this issue:

https://support.microsoft.com/en-us/help/4477072/best-practices-updating-a-flow-used-by-a-powerapp

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (5,895)