SharePoint 2016: import-spweb throwing error [FatalError] [-2147024809] [System.ArgumentException] [<nativehr>0x80070057</nativehr><nativestack></nativestack>]

sco gordo 301 Reputation points
2020-07-31T14:28:59.213+00:00

I'm running an import of a production spweb export to the dev environment.

import-spweb -Identity https://intranet.contoso.local/apps/hrNEW -path "D:/backups/hrNew.cmp",

I'm getting:

[7/31/2020 10:12:03 AM] [List] [Documents] [Documents] [2a1e5af8-c485-4e5a-8dd3-4427cea767e3][Progress] Importing
[7/31/2020 10:12:03 AM] [List] [Library Being Imported] [Library Being Imported] [845f2c0f-627d-4821-88d6-e04af5a39168][Progress] Importing
[7/31/2020 10:12:03 AM] [List] [Library Being Imported] [Library Being Imported] [845f2c0f-627d-4821-88d6-e04af5a39168] [ExtendedVerbose] Creating
[7/31/2020 10:12:03 AM] [List] [Library Being Imported] [Library Being Imported] [845f2c0f-627d-4821-88d6-e04af5a39168] [Error] [-2147024809] [System.ArgumentException] [<nativehr>0x80070057</nativehr><nativestack></nativestack>]
[7/31/2020 10:12:03 AM] [List] [Library Being Imported] [Library Being Imported] [845f2c0f-627d-4821-88d6-e04af5a39168] [Debug] at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListOnImport(String bstrUrl, Guid& pguidListId, String bstrTitle, String bstrDescription, Int32 lTemplateID, String bstrFeatureId, Guid guidRootFolderId, Int64 llFlags, Int64 llFlags2, Int32 iVersion, Int32 iAuthor, String bstrFields, String bstrContentTypes, String bstrImageUrl, String bstrEventSinkAssembly, String bstrEventSinkClass, String bstrEventSinkData, Guid guidDocTemplateId, String bstrViews, String bstrForms, Boolean bCompressedSchema, DateTime dtTimeCreated)
at Microsoft.SharePoint.Library.SPRequest.CreateListOnImport(String bstrUrl, Guid& pguidListId, String bstrTitle, String bstrDescription, Int32 lTemplateID, String bstrFeatureId, Guid guidRootFolderId, Int64 llFlags, Int64 llFlags2, Int32 iVersion, Int32 iAuthor, String bstrFields, String bstrContentTypes, String bstrImageUrl, String bstrEventSinkAssembly, String bstrEventSinkClass, String bstrEventSinkData, Guid guidDocTemplateId, String bstrViews, String bstrForms, Boolean bCompressedSchema, DateTime dtTimeCreated)
at Microsoft.SharePoint.Deployment.ListSerializer.CreateList(SPWeb parentWeb, Dictionary2 listMetaData, Boolean usingPublicSchema) at Microsoft.SharePoint.Deployment.ListSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector) at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector) [7/31/2020 10:12:03 AM] [FatalError] [-2147024809] [System.ArgumentException] [<nativehr>0x80070057</nativehr><nativestack></nativestack>] [7/31/2020 10:12:03 AM] [Debug] at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListOnImport(String bstrUrl, Guid& pguidListId, String bstrTitle, String bstrDescription, Int32 lTemplateID, String bstrFeatureId, Guid guidRootFolderId, Int64 llFlags, Int64 llFlags2, Int32 iVersion, Int32 iAuthor, String bstrFields, String bstrContentTypes, String bstrImageUrl, String bstrEventSinkAssembly, String bstrEventSinkClass, String bstrEventSinkData, Guid guidDocTemplateId, String bstrViews, String bstrForms, Boolean bCompressedSchema, DateTime dtTimeCreated) at Microsoft.SharePoint.Library.SPRequest.CreateListOnImport(String bstrUrl, Guid& pguidListId, String bstrTitle, String bstrDescription, Int32 lTemplateID, String bstrFeatureId, Guid guidRootFolderId, Int64 llFlags, Int64 llFlags2, Int32 iVersion, Int32 iAuthor, String bstrFields, String bstrContentTypes, String bstrImageUrl, String bstrEventSinkAssembly, String bstrEventSinkClass, String bstrEventSinkData, Guid guidDocTemplateId, String bstrViews, String bstrForms, Boolean bCompressedSchema, DateTime dtTimeCreated) at Microsoft.SharePoint.Deployment.ListSerializer.CreateList(SPWeb parentWeb, Dictionary2 listMetaData, Boolean usingPublicSchema)
at Microsoft.SharePoint.Deployment.ListSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)
at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)
at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
at Microsoft.SharePoint.Deployment.SPImport.Run()
[7/31/2020 10:12:04 AM] [Progress] Import did not complete.
[7/31/2020 10:12:04 AM] Finish Time: 7/31/2020 10:12:04 AM.
[7/31/2020 10:12:04 AM] Duration: 00:00:40
[7/31/2020 10:12:04 AM] Byte imported: 16,056.00 at 399.50 bytes per second
[7/31/2020 10:12:04 AM] Finished with 24 warnings.
[7/31/2020 10:12:04 AM] Finished with 2 errors.

After some research, I cleared the cache using the following and reran import, but same error.

Add-PSSnapin microsoft.sharepoint.powershell
$webApp = Get-SPWebApplication "https://intranet.contoso.local"
Write-Host "Flushed the BLOB cache for:" $webApp

Thanks!

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,955 questions
{count} votes

Accepted answer
  1. Jerry Xu 256 Reputation points
    2020-08-03T07:02:39.307+00:00

    Do the source SharePoint farm version matches the one in the target farm?

    To troubleshoot the issue, check things below:

    1. Check if the account who run the command is the farm account.
    2. Import the site to another site collection to check if the same issue will occur.
    3. Check if the same features are activated in the target site and source site.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.