cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavidLozzi
Level: Powered On

Create File in SharePoint Communications Site Library Errors Access Denied

Not rocket science here, using the Create File action, tried creating 2 different files. One was a text file with plain text as content, and now I am getting an existing file in another library, and am trying to create it in this library.

 

create file action.png

 

Running it errors

{
  "status": 403,
  "message": "Access denied. You do not have permission to perform this action or access this resource.\r\nclientRequestId: 1a2fa633-f1fa-4030-82ef-9d5adaccca50\r\nserviceRequestId: d0f0d49e-30e2-8000-8942-2ea79b2d3690;d0f0d49e-00ea-8000-8942-21bd3779dc71;d0f0d49e-d0f2-8000-8942-290671b3554f",
  "source": "https://mine.sharepoint.com/teams/bos_clients/_api/web/GetFolderByServerRelativePath(decodedUrl=@p)/files/AddUsingPath(decodedUrl=@f,%20overwrite='true')?@p='%2fteams%2fbos_clients%2fShared%2520Documents%2fsubfolder'&@f='ReadMe.docx'",
  "errors": [
    "-2147024891",
    "System.UnauthorizedAccessException"
  ]
}

However, if I change the Folder Path to specific path, selected through the UI, it works as expected. It appears the variable path breaks it.

 

 

 

Lozzi
slalom
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
DavidLozzi
Level: Powered On

Re: Create File in SharePoint Communications Site Library Errors Access Denied

Fixed it, my folder path variable was mistyped!

Lozzi
slalom

View solution in original post

1 REPLY 1
Highlighted
DavidLozzi
Level: Powered On

Re: Create File in SharePoint Communications Site Library Errors Access Denied

Fixed it, my folder path variable was mistyped!

Lozzi
slalom

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Users online (3,852)