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

Picture Library with Power Automate

Building a flow that reads from a Picture Library Type on a SharePoint site.  What I'm finding is that there is no actual picture file type i can use in my flow.  I'm curious if anyone else has run into this issue when using the Get Files Properties action in Power Automate.  

The error I'm getting is "The image is not of type PNG or JPG. Please provide an image of type PNG or JPG.
clientRequestId: 11f750ea-84f3-4264-a8dc-fdf88804c9a9"

I'm populating a word template and the control i used on word was the image control so not sure if that is also causing my issue. 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @eenochs,

 

Could you share a screenshot of the error information?

If you are finding a method to make sure appended file content into the template Word file, you could create a condition action to determine the filename whether end with ".PNG" or ".JPG", for example:

Annotation 2020-07-16 135044.jpg

 

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

 

 

View solution in original post

Hi @eenochs,

 

Please try to use the expression:

Annotation 2020-07-22 181733.jpg

 

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

View solution in original post

8 REPLIES 8
sudharsan1985
Super User
Super User

Hi @eenochs 

Are you trying to get the properties of the word file as an image file? Have you tried with the actual image file of type png or jpeg? Please post some screenshots of your flow.

Hope it helps, please like it or mark it as a solution if it resolves your clarification or issue
-Sudharsan K...
v-litu-msft
Community Support
Community Support

Hi @eenochs,

 

Could you share a screenshot of the error information?

If you are finding a method to make sure appended file content into the template Word file, you could create a condition action to determine the filename whether end with ".PNG" or ".JPG", for example:

Annotation 2020-07-16 135044.jpg

 

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

 

 

View solution in original post

There is no dynamic content that refers to any image file or anything that i can put into the action.  Anything that i put in that might link back to the image file comes up with this error. 

 

 

eenochs_0-1594907149828.png

eenochs_1-1594907216082.png

 

 

The condition came back as true so there is a .jpg or .png file.  I just can't locate the dynamic content item to use to include in my flow.  

Here is another screenshot of the error message. 

 

eenochs_0-1594908879010.png

 

Hi @eenochs,

 

After confirming it's a image, please use the Get file content action to get image content:

Annotation 2020-07-21 173228.jpg

 Then append the file content into the doc template.

 

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

I've tried using the file content but the issue is it moves it into a apply to each.  Because of that i don't see the file content option to append to the word document.  Screen shot below.

eenochs_0-1595349288889.png

 

Hi @eenochs,

 

Please try to use the expression:

Annotation 2020-07-22 181733.jpg

 

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

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (24,172)