Skip to main content

Notifications

Power Automate - General Discussion
Answered

A potentially dangerous Request.Path value was detected from the client (?) when create file on onedriver

(1) ShareShare
ReportReport
Posted on by 47

I'm new guy on power automate. 

I want list folder from sharepoint, then use for each connector to get file content, finally create file to One driver.  

i encountered below error when create file .  not sure what's reason.  thanks
{
"status": 401,
"message": "A potentially dangerous Request.Path value was detected from the client (?).",
"source": "api.connectorp.svc.ms"
}

 

shinydeng_0-1713943453690.png

 

  • Suggested answer
    SA-25070913-0 Profile Picture
    SA-25070913-0 2 on at
    A potentially dangerous Request.Path value was detected from the client (?) when create file on onedriver
    In realtà il problema è che hai usato la create file di one drive (icona blu) anziché la create file di sharepoint (icona verde) di conseguenza non ti accetta il percorso della folder di sharepoint
  • Verified answer
    TuongDoan Profile Picture
    TuongDoan 550 on at
    Re: A potentially dangerous Request.Path value was detected from the client (?) when create file on onedriver

    What do you have in that Compose action?

     

    You are getting that error because the file content contain some suspicious data, which can be used for a cross site scripting attack.

     

    You can look for alternative solution like create file via Graph API: https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http#http-request-to-upload-a-new-file

     

     

    ---------------------------

    If the solution I provided assisted you in resolving this issue, kindly select "Accept as solution" This will help others in finding the solution more expediently 😄Also, a Thumbs up would be a great compliment!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard