cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mesan123
Frequent Visitor

Create file from SharePoint list attachment fails

Hi guys, 

I was wondering if you can help me with the following issue.

 

I have a Powerapp creating a SharePoint list item as an output from a form. This SP list item contains an attachment which I would like to extract and save to a SP document library. Interesting is that the flow firstly creates the file in the library (as expected) and then it fails in the same step 'Create File' with the failure message 'File not Found'.

Please see below:

1. 

mesan123_0-1604301073313.png

2.

mesan123_1-1604301194469.png

3. Body = Body from Get Attachments, ID = Get item, id = Get Attachments id nested in Apply to each

mesan123_2-1604301335983.png

 

3. Create file is a part of the Apply to each above; Title = name of the SP list Item. File Content = Get attachment content (content)

mesan123_4-1604302096683.png

Error desctiption

mesan123_6-1604302643403.png

 

mesan123_7-1604302674508.png

 

mesan123_5-1604302334847.png

Any Idea please?

Thank you very much for your tips.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mesan123
Frequent Visitor

Hi guys, 

I figured out the issue and solved it.

The name of the folder in the action 'Create File' -> Field: 'Folder Path' contained the symbol '#' (I assume this is applicable also for other similar symbols). Once the folder was renamed the action was successfully completed.

 

I appologize for my snips above where this issue could not have been spotted. 

mesan123

 

View solution in original post

3 REPLIES 3
v-bacao-msft
Community Support
Community Support

 

Hi @mesan123 ,

 

Please try to add a Delay action above the Get item action, and execute the following action after a delay of 15 seconds.

 

In addition, if you use Title as the file name, the file may lose its extension and the file cannot be opened normally.

 

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.

Hi @v-bacao-msft , 

Thank you for your feedback. 

I tried to add 'Delay' as you mentioned and also used a name of the created file which corresponds the selected attachment type. I still experience the same issue - Output from 'Get attachment Content' seems to be OK, the Input to 'Create File' action seems to be OK too but Output from 'Create File' returns

mesan123_0-1604511677558.pngmesan123_1-1604511732231.png

 

 

mesan123_2-1604511780614.pngmesan123_3-1604511870293.png

 

 

Error "Create File" Output

mesan123_4-1604512056976.png

 

Any Idea please?

 

mesan123
Frequent Visitor

Hi guys, 

I figured out the issue and solved it.

The name of the folder in the action 'Create File' -> Field: 'Folder Path' contained the symbol '#' (I assume this is applicable also for other similar symbols). Once the folder was renamed the action was successfully completed.

 

I appologize for my snips above where this issue could not have been spotted. 

mesan123

 

View solution in original post

Helpful resources

Announcements
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

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (63,124)