_api/site/CreateCopyJobs does not work with file in multiple document sets #9928
Labels
Needs: Triage 🔍
Awaiting categorization and initial review.
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Running an HTTP request to SharePoint in PowerAutomate
Describe the bug / error
When attempting to run the _api/site/CreateCopyJobs where the file in exportObjectUri exist in multiple documents sets a bad gateway error is returned.
api works for files within the same document sets
Steps to reproduce
"exportObjectUris": [
"https://contoso.sharepoint.com/sites/TestSite/SharedDocuments/DocumentSet1/FileOne.pdf",
"https://contoso.sharepoint.com/sites/TestSite/SharedDocuments/DocumentSet2/FileTwo.pdf"
],
"destinationUri": "https://contoso.sharepoint.com/sites/TestSite/Test/ShareDocuments",
"options": {
"IgnoreVersionHistory": true,
"IsMoveMode": false,
"AllowSchemaMismatch": true,
"NameConflictBehavior": 1
}
}
result:
Expected behavior
Files from multiple document sets to be copied to destinationUri
The text was updated successfully, but these errors were encountered: