You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently migrating a lot of SharePoint pages to another site collection. While 95% of the files are working great, I noticed that about 5% (or less) of the files are failing with a vague error:
Error: Cannot read properties of undefined (reading 'TargetObjectSiteRelativeUrl')
I noticed that sometimes, for some files, the SharePoint copy job doesn't return a result object. I currently have no idea why/when this is happening. When this error occurs on a file and I try again, everything works just fine.
Steps to reproduce
Migrate a lot of files. It's hard to reproduce.
Expected results
100% success rate
Actual results
2-5% of the files throw an error:
Error: Cannot read properties of undefined (reading 'TargetObjectSiteRelativeUrl')
Diagnostics
No response
CLI for Microsoft 365 version
v10.0.0
nodejs version
v20.10.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
Let's put it on hold until the following issues are closed:
Priority
(Medium) I'm annoyed but I'll live
Description
I'm currently migrating a lot of SharePoint pages to another site collection. While 95% of the files are working great, I noticed that about 5% (or less) of the files are failing with a vague error:
This error is caused by this piece of code:
cli-microsoft365/src/m365/spo/commands/file/file-copy.ts
Lines 164 to 172 in 7be7794
I noticed that sometimes, for some files, the SharePoint copy job doesn't return a result object. I currently have no idea why/when this is happening. When this error occurs on a file and I try again, everything works just fine.
Steps to reproduce
Migrate a lot of files. It's hard to reproduce.
Expected results
100% success rate
Actual results
2-5% of the files throw an error:
Diagnostics
No response
CLI for Microsoft 365 version
v10.0.0
nodejs version
v20.10.0
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
Let's put it on hold until the following issues are closed:
spo folder copy
#6310spo folder move
#6154These issues have a higher importance and need to change stuff to the SharePoint copy job util as well.
The text was updated successfully, but these errors were encountered: