During a OneDrive migration, the migration job fails with the following error:
Exception: System.ArgumentOutOfRangeException
Message: length ('-2') must be a non-negative value. (Parameter 'length')
Actual value was -2.
The stack trace indicates the failure occurs during manifest creation within the OneDrive migration process:
Quest.OneDrive.LegacyLibrary.SPBackupConfigFactory.CreateSPObjects
Quest.OneDrive.LegacyLibrary.OneDriveClientData.CreateManifestFiles
This is a data-related parsing failure that occurs when ODM processes OneDrive file metadata or URLs that do not meet internal parsing requirements. During string manipulation, a negative substring length is calculated, triggering the exception.
Common contributing factors include:
Perform the following steps to identify and remediate the problematic item:
Or: