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

Struggling with Get File Content

I am trying to use the get file content function within flow using a variable.  When I put the name in the properties boxes the flow works as expected.  When I replace the file ID with a variable I get the following error:

 

{
"error": {
"code": 404,
"source": "flow-apim-msmanaged-na-centralus-01.azure-apim.net",
"clientRequestId": "27899743-2f44-4647-98b0-ad1588949c81",
"message": "The response is not in a JSON format.",
"innerError": "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
}
1 ACCEPTED SOLUTION

Accepted Solutions

So after a little more Googleing I was able to figure out the issue.  Apparently I needed to use the action

 

Get File Content using path

 

Only changing that step from the Get file content everything works.

View solution in original post

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

Hi @RichmonS,

 

Could you share the specific details of your action configuration?

I am not sure which version of Get file content you are using, OneDrive or SharePoint.

It would be helpful if you could post more details and we would provide a proper workaround for you.

 

Best Regards,

Barry

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.

So after a little more Googleing I was able to figure out the issue.  Apparently I needed to use the action

 

Get File Content using path

 

Only changing that step from the Get file content everything works.

View solution in original post

Hi @RichmonS,

 

If you have found the solution, please go ahead and mark your post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Barry

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,758)