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

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.

Users online (46,960)