Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
I've not yet had to do another import, but on my support ticket they said it was now fixed.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello All,
I'm stuck in a very strange problem and need help.
I imported pst file to m365 exchange using lifecycle data management console (https://compliance.microsoft.com), i sent as usal my pst using azcopy; i validate my mapping file and then i launched import to 365, as I maded it several times.
After a long time (my pst are quite little (12 gb in two files) i got an import error.
The same error appears on log with each pst.
Many thanks for helping me.
Best regards.
Herve
*******************************************
Here are the logs :
PST Filename,Target Mailbox,Import Status,Error,Total Items,Item Imported,Target Folder,Skipped Item Count,Last Failure,Total Item Size,Imported Item Size
mypstfilename.pst,___@___.___,Failed,Unknown,0,0,,0,System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTaskT
at Microsoft.Office.Compliance.Ingestion.OAuthProvider.GetAppTokenFromESTS(OAuthTokenType tokenType, String tenantId, String serviceName, String serviceHostName) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\OAuthProvider.cs:line 492
at Microsoft.Office.Compliance.Ingestion.OAuthProvider.OAuthHackToInsertServicePrincipal(String tenantId) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\OAuthProvider.cs:line 238
at Microsoft.Office.Compliance.Ingestion.OAuthProvider.GetAppTokenFromAcs(OAuthTokenType tokenType, String tenantId, String serviceName, String serviceHostName) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\OAuthProvider.cs:line 463
at Microsoft.Office.Compliance.Ingestion.OAuthProvider.<>c__DisplayClass18_0.<GetTenantToken>b__0(String serviceName) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\OAuthProvider.cs:line 198
at Microsoft.Office.Compliance.Ingestion.OAuthProvider.GetAuthToken(OAuthTokenType tokenType, String tenantId, String serviceHostName, Func`2 authentication) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\OAuthProvider.cs:line 367
at Microsoft.Office.Compliance.Ingestion.OAuthProvider.GetUserToken(OAuthTokenType tokenType, String tenantId, String upn, String puid, String serviceHostName, Boolean usingSts) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\OAuthProvider.cs:line 215
at Microsoft.Office.Compliance.Ingestion.PswsOAuthAuthenticator.Authenticate(HttpWebRequest request) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\PSWSProvider\PswsOAuthAuthenticator.cs:line 106
at Microsoft.Exchange.PswsClient.PswsCmdlet.InternalRun()
at Microsoft.Exchange.PswsClient.NewPswsCmdlet`1.Run()
at Microsoft.Office.Compliance.Ingestion.ExchangeIngestionProvider.CreateNewMailboxImportRequest(String targetId, String azureBlobStorageAccountUri, String azureBlobSASToken, Boolean isArchive, String azureStatusPublishEndpointInfo, String name, String targetRootFolder, Nullable`1 contentCodePage, Int32 unrecognizedMailLimitPercent, String rulesBlobSasUri, ILogWriter logWriter, String& cmdText, String& error) in k:\dbs\sh\nibr\1018_000434\cmd\0\sources\dev\ingestion\src\workloadapi\IngestionProvider\ExchangeIngestionProvider.cs:line 727,0,0
Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
I've not yet had to do another import, but on my support ticket they said it was now fixed.
Are you still having this issue?
Everything looks good on my end with the 365 import service among other things.
I'm also unable to find incident EX450352 anywhere under service health or via Google.
Can confirm, the issue is still preset even with the mentions additional rights and changes.
Also this happens on totally new tenants, so far not on "old" ones we are manage.
We've also opened a ticket with Microsoft on Saturday and still no solution.
EDIT: Just to confirm, it still finished with a 'Completed with Errors' status, and nothing was imported. It still gave me a completely useless error of:
| PST Filename | Target Mailbox | Import Status | Error | Total Items | Item Imported | Target Folder | Skipped Item Count | Last Failure | Total Item Size | Imported Item Size |
|---|---|---|---|---|---|---|---|---|---|---|
| test.pst | *removedforprivacy* | Failed | Unknown | 0 | 0 | 0 | System.NullReferenceException: Object reference not set to an instance of an object. | |||
| at Microsoft.Office.Compliance.Ingestion.ExchangeIngestionProvider.Invoke(IIngestionTask& task) in k:\dbs\sh\nibr\1024_123859_0\cmd\m\sources\dev\ingestion\src\workloadapi\IngestionProvider\ExchangeIngestionProvider.cs:line 442 | 0 | 0 |
ORIGINAL POST: Thanks Hervé. I'm pretty sure my account has all of that anyway. However, I've followed your steps, and I shall await to see if in another 2 hours the exact same issue occurs again. I still also have my open support ticket since the MS Support hasn't come back to me yet.
Hello Sean
I added to my process impersonation :
New-ManagementRoleAssignement -name impersonationAssignementName -Role ApplicationImpersonation -user myadmin.mydomain.com
Here are my whole process right before migration :
Connect-ExchangeOnline
Enable-OrganizationCustomization
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "******@mydomain.com"
New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup "Organization Management" -Name "Import Export Org Management"
New-ManagementRoleAssignement -name impersonationAssignementName -Role ApplicationImpersonation -user myadmin.mydomain.com
And check with
Get-ManagementRoleAssignment –Role "Mailbox Import Export" | FL RoleAssigneeName, Name
My process came from https://lazyadmin.nl/office-365/import-pst-file-into-office-365/ (solution 2)