cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tiffany-Jo
Helper V
Helper V

Action 'Delete_attachment' failed

Hi I would like to confirm about the following error when delete the share point attachment by power automate.

It seems the name of the attachment is long, so please kindly tell if there is any naming convention or characters limit for attachment when use the power automate.

 

Error:

Bad Request

 

attachmentId"%252fLists%252fSlideForTest2%252fAttachments%252f1%252f2021.6.19%2bfinal%2b%25e5%25a4%25a7%25e6%25b4%25a5%25e5%25b8%2582%25e5%258c%25bb%25e5%25b8%25ab%25e4%25bc%259a%25e3%2582%25b5%25e3%2583%2580%25e3%2583%2587%25e3%2582%25a3%25e3%2582%25bb%25e3%2583%259f%25e3%2583%258a%25e3%2583%25bc%25e3%2582%25bb%25e3%2583%259f%25e3%2583%258a%25e3%2583%25bc%25e3%2583%2591%25e3%2583%25bc%25e3%2583%25881%2bHPV%25e3%2583%25af%25e3%2582%25af%25e3%2583%2581%25e3%2583%25b3%25e3%2581%25ae%25e7%258f%25be%25e7%258a%25b6%25e3%2581%25ab%25e3%2581%25a4%25e3%2581%2584%25e3%2581%25a6_%25e5%259b%25bd%25e3%2581%25ab%25e3%2582%2588%25e3%2582%258b%25e7%25a9%258d%25e6%25a5%25b5%25e7%259a%2584%25e3%2581%25aa%25e6%258e%25a5%25e7%25a8%25ae%25e5%258b%25a7%25e5%25a5%25a8%25e3%2581%25ae%25e5%25b7%25ae%25e3%2581%2597%25e6%258e%25a7%25e3%2581%2588%25e3%2581%258b%25e3%2582%2589%25ef%25bc%2599%25e4%25be%25a1%25e3%2583%25af%25e3%2582%25af%25e3%2583%2581%25e3%2583%25b3%25e3%2581%25ae%25e6%2589%25bf%25e8%25aa%258d%25e3%2583%25bb%25e7%2599%25ba%25e3%2581%25be%25e3%2581%25a7_%255b%25e8%2587%25aa%25e5%258b%2595%25e4%25bf%259d%25e5%25ad%2598%25e6%25b8%2588%25e3%2581%25bf%255d.pptx"
 

Outputs:

{"statusCode":200,"headers":{"Pragma":"no-cache","Cache-Control":"no-store, no-cache","Set-Cookie":"ARRAffinity=4506fed21ae7329212e22736c2f80898a13d9fb6173622080112cc34ac5998d2;Path=/;HttpOnly;Secure;Domain=sharepointonline-eus.azconn-eus-003.p.azurewebsites.net,ARRAffinitySameSite=4506fed21ae7329212e22736c2f80898a13d9fb6173622080112cc34ac5998d2;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-eus.azconn-eus-003.p.azurewebsites.net","x-ms-request-id":"54354ea0-d0d6-d000-2f7b-5cf938a89d00;54354ea0-c0db-d000-2f7b-5a6589c55227","Strict-Transport-Security":"max-age=31536000; includeSubDomains","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","x-ms-apihub-obo":"true","Date":"Wed, 06 Jul 2022 01:38:17 GMT","Content-Length":"0","Expires":"-1"}}

 

5 REPLIES 5
MarconettiMarco
Super User
Super User

Hello @Tiffany-Jo ,

please share the flow in Edit Mode and the File Name, so that we could better help you.

 

BR,

Marco

HI Thank you for your reply.

The File name is 「2029.1.19final大阪市医師会サダディセミナーセミナーパート1HPVワクチンの現状について_国による積極的な接種勧奨の差し控えから9価ワクチンの承認・発売まで_[自動保存済み]のコピ.pptx」です。

The Flow is simple and set correctly, just get the attachment from list and delete it.

Hello @Tiffany-Jo ,

please share the flow in Edit Mode.

 

BR,

Marco

Capture.PNG

MarconettiMarco
Super User
Super User

Hello @Tiffany-Jo ,

The entire decoded file path, including the file name, can't contain more than 400 characters for OneDrive, OneDrive for work or school and SharePoint in Microsoft 365.

 

Your decoded file identifier contains 1198 characters. That's why you're getting the error.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

BR,

Marco

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (3,428)