web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / NotFound - The respons...
Power Automate
Unanswered

NotFound - The response is not in a JSON format.

(1) ShareShare
ReportReport
Posted on by

Hi,

 

I have a problem with my Flow, i get the following error message: NotFound - The response is not in a JSON format.
See screenshot below:

UHKOfo1

Flow ErrorFlow Error

 

Even though the file does exists in the document library.

 

7tIwMae

 

Can someone tell me what i'm doing wrong?

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Could you please share the screenshot of Flow configuration?

    What's the action you are using?

    This field should be an identifier of the file? sorry for the reason of language, I am not sure, maybe it should be the ID of file. 

    Annotation 2019-12-11 110348.png

     

    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.

  • Community Power Platform Member Profile Picture
    on at

    This is the flow configuration,

     

    I'm getting a value from PowerApps which corresponds to a filename in my document library in sharepoint, and then i proceed to delete the file (Slet fil) from the document librarry

     

    d20YIUy

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Because when delete file will send an HTTP request to SharePoint, so the Identifier of the file should encode to URL formate, so you should replace these "/" to "%2F". So you could use the replace() function to process the file path, for example:

    Annotation 2019-12-11 172200.png

    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.

  • Community Power Platform Member Profile Picture
    on at

    Perfect! That did the job.

     xSzptwR

    Thank you alot @v-litu-msft 

  • susilacherla12 Profile Picture
    39 on at

    You solved an issue which I am struggling for 20hrs now.

  • balboa4100 Profile Picture
    2 on at

    Thank you! Solved my issue as well. 

     

    Can't see how to upload any pics to this forum but I am sharing with you my solution, in case anyone else gets the same issue:

     

    https://riveratec1-my.sharepoint.com/:i:/g/personal/jrivera_riveratec_com/EQvPBZDmAmdMnPSfiuuptM8BSD6jC52o8KsOJ98I3bMWIg?e=OKK9GD

     

    Regards,

     

    Jose Angel Rivera

  • ocmcadams Profile Picture
    16 on at

    Thank you for this information, I am sure it is going to help, but how do covert it when the file name is dynamic?

     

    Where would you put the command to to replace?

     

    ocmcadams_0-1600215385158.png

     

  • ocmcadams Profile Picture
    16 on at

    Hello, thank you for posting, this is very helpful.  I am still having a problem with getting this JSON error.  My question is the "compose_2" the actual file name?  I don't have a compose, but I have a Create File that I am using.  The file name is using dynamic information from a Form submitted.

  • zylantha2 Profile Picture
    103 on at

    Thank you for identifying the issue which is clearly a bug in the implementation of this action as no others require the path to be URL encoded.

     

    Your solution however is incomplete, as it does not provide full encoding of all required characters.

     

    Instead you should use encodeUriComponent() which has full URL encode logic thus:

    encodeUriComponent(outputs('Document')?['body/{FullPath}'])
     
  • Community Power Platform Member Profile Picture
    on at

    Hello,

    I know it's late answer but maybe it will help you anyway.

    I think you can put your dynamic path into compose and that compose output put in replace function. Otherwise you can manually replace in action field: '%252f' instead of '/' and '%2b' instead of space ' '.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard