This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Migration from On-Premises 2013 to Office 365 PowerShell

We are attempting to run a site collection copy job through PowerShell. Recently we began noticing that for some of our longer running migrations we were getting StackOverflowException while running the migration from PowerShell, but if we ran the migration through the console it worked as expected. It does not seem to effect all migrations, just some. The script had been working previously then started to fail on multiple machines after a few migrations had been performed. After doing some debugging, the crash dumps seem to indicate that there are a large number of threads relating to Azure that are not completing. 

  • It could be due to the action "Monitor Migration Status" being stuck when using the Microsoft Shared Azure Container.  When running in PowerShell it is most likely processing a bit faster than the UI resulting in more batches in the pipeline.  Try adjusting the EnvironmentSettings.xml file located in C:\ProgramData\Metalogix and set the key "Clean Azure Container" to "False".

    <Key>CleanAzureContainer</Key>
    <Value>False</Value>