cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fmhigue
New Member

Error when break inheritance

We are using Business Central at the HO as well as the branches. On top of Business Central we use Zetadocs to attach different documents (Word, Excel, PDF) to an invoice or journal. The Zetadocs repository is Sharepoint. We have the option to store documents at SQL or sharepoint. We decided for SP..

Anyways we are looking for a way diable editing once a file has been added to Sharepoint.

 

I got the current Flow

 

fmhigue_0-1663358164889.png

 

fmhigue_1-1663358305214.pngfmhigue_2-1663358341241.png

 

I am getting the following error message:

 

fmhigue_3-1663358395734.png

Body

"status"400,
  "message""<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Bad Request - Invalid URL</h2>\r\n<hr><p>HTTP Error 400. The request URL is invalid.</p>\r\n</BODY></HTML>\r\n\r\nclientRequestId: c7786184-6d18-4735-9aea-b1e0e5126ad9",
  "errors": []
}
 
Headers
{
  "Pragma""no-cache",
  "x-ms-request-id""c7786184-6d18-4735-9aea-b1e0e5126ad9",
  "Strict-Transport-Security""max-age=31536000; includeSubDomains",
  "X-Content-Type-Options""nosniff",
  "X-Frame-Options""DENY",
  "Cache-Control""no-store, no-cache",
  "Set-Cookie""ARRAffinity=35d7413135aa4903f68e02da1544fd04b13d5423a37ac45ed3f80796d9d90742;Path=/;HttpOnly;Secure;Domain=sharepointonline-wus.azconn-wus.p.azurewebsites.net,ARRAffinitySameSite=35d7413135aa4903f68e02da1544fd04b13d5423a37ac45ed3f80796d9d90742;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-wus.azconn-wus.p.azurewebsites.net",
  "Timing-Allow-Origin""*",
  "x-ms-apihub-cached-response""true",
  "x-ms-apihub-obo""true",
  "Date""Fri, 16 Sep 2022 19:46:11 GMT",
  "Content-Length""647",
  "Content-Type""application/json",
  "Expires""-1"
}
 
Status Code
400
 
Thank you all
 

 

 

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @fmhigue,

 

In your error I see a %0A. It looks like there is an accidental enter/line in the Uri of the break inheritance action. Can you double check that if it is all on one line?



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (1,682)