cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
batvan276
Resolver I
Resolver I

Get File Content Using Path - Null Content?

Hello, 

 

I thought I had this working at one point but just tried to test it and I can't seem to see what I am getting wrong. Did I miss something? I Keep getting cannot be null content error message. (Parameter 'Attachment Content' cannot be null or empty.)

 

batvan276_0-1614025374135.png

 

 

 

2021-02-22_15-24-54.png

 

 

 

 

 

 

batvan276_2-1614025395050.png

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

Same Issue ; 

 

batvan276_0-1614170715125.png

 

batvan276_1-1614170723856.png

 

batvan276_2-1614170752039.png

 

batvan276_3-1614170761524.png

 

View solution in original post

Click [Next faild] to find the failed email sending action.
And how many emails with attachments have been received. Then find out which file is not attached.

 

There are 3 files in the document library, and if all are successful, the mail will be sent 3 times.
If it fails all three times, I think there is a problem with the flow, but looking at the posted image, the first file seems to have been successfully attached to an email.

 

Since there are both successful and unsuccessful actions in Apply to each, I think it's not a flow problem, but a problem with the file you're dealing with.
Delete the failing file from the document library and try the flow again.
So if you don't get the error, there is a problem with the deleted file.

 

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

View solution in original post

7 REPLIES 7
Masa_
Helper I
Helper I

I think it will succeed if you set [File Path] in the [Get file content using path] action to [FullPath] instead of [Link to item].

I used google translate.

Regards,

 

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

 

Masa

I tried that but received same error message.

Is the source of this trigger a document library? Or is it her list in SharePoint?

If it's a document library, try testing a simple flow with a manual trigger like this: In my environment, I was able to attach the document library file to an email and send it without any errors.

2021-02-24_09h58_55.png

 

 

If it is a list, you need to get the contents of the attachment using two actions as below.

2021-02-24_11h21_45.png

 

2021-02-24_11h21_55.png

 

2021-02-24_11h22_04.png

 



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

Yes this source is a a document library. I will try your suggestion. 

Same Issue ; 

 

batvan276_0-1614170715125.png

 

batvan276_1-1614170723856.png

 

batvan276_2-1614170752039.png

 

batvan276_3-1614170761524.png

 

Click [Next faild] to find the failed email sending action.
And how many emails with attachments have been received. Then find out which file is not attached.

 

There are 3 files in the document library, and if all are successful, the mail will be sent 3 times.
If it fails all three times, I think there is a problem with the flow, but looking at the posted image, the first file seems to have been successfully attached to an email.

 

Since there are both successful and unsuccessful actions in Apply to each, I think it's not a flow problem, but a problem with the file you're dealing with.
Delete the failing file from the document library and try the flow again.
So if you don't get the error, there is a problem with the deleted file.

 

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

Everything worked out. Sorry about that. 

 

I was testing the flow using an old trigger of a file that was already deleted. 😓

 

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (2,506)