Need clarification on error response from SharePoint CSOM API - Attach file to a list item‎

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3166708%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3ENeed%20clarification%20on%20error%20response%20from%20SharePoint%20CSOM%20API%20-%20Attach%20file%20to%20a%20list%20item%E2%80%8E%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3166708%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EI've%20recently%20observed%20a%20CSOM%20API%20call%2C%20attempting%20to%20attach%20a%20file%20to%20a%20list%20item%2C%20failed%20with%20following%20error%20details%3A%26lt%3B%5C%2FP%26gt%3B%3CUL%3E%3CLI%3E%3CP%3EError%20message%3A%20Cannot%20complete%20this%20action.%20Please%20try%20again.%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2FLI%26gt%3B%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EException%20type%3A%20Microsoft.SharePoint.Client.ServerException%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2FLI%26gt%3B%26lt%3B%5C%2FUL%26gt%3B%3C%2FP%3E%3CP%3EUnfortunately%20the%20error%20message%20is%20not%20as%20descriptive%20as%20expected%2C%20hence%20I'd%20like%20to%20reach%20out%20to%20understand%20the%20actual%20root%20cause%20of%20this%20error%2C%20e.g.%20is%20this%20a%20transient%20error%20that%20I%20could%20just%20retry%20the%20operation%20and%20it%20would%20succeed%3F%20Though%20the%20message%20asked%20to%20try%20again%2C%20but%20to%20what%20degree%20should%20we%20retry%2C%20e.g.%20how%20many%20times%2C%20etc.%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Occasional Visitor

I've recently observed a CSOM API call, attempting to attach a file to a list item, failed with following error details:

  • Error message: Cannot complete this action. Please try again.

  • Exception type: Microsoft.SharePoint.Client.ServerException

Unfortunately the error message is not as descriptive as expected, hence I'd like to reach out to understand the actual root cause of this error, e.g. is this a transient error that I could just retry the operation and it would succeed? Though the message asked to try again, but to what degree should we retry, e.g. how many times, etc.

0 Replies