Fix: Export-SPWeb: 0x80070057 Error in SharePoint

Problem: When trying to export a List from SharePoint 2016 site, got this error message “Export-SPWeb: <nativehr>0x80070057</nativehr><nativestack></nativestack>”

Export-SPWeb https://intranet.crescent.com/ -ItemUrl “Lists/Projects” -path “C:\Projects.cmp”

Solution:

In the ItemUrl Parameter, You must include a leading slash! E.g. Instead of -ItemUrl “Lists/Projects” You must enter “-ItemUrl “/Lists/Projects”

E.g.  Export-SPWeb https://intranet.crescent.com/ -ItemUrl “/Lists/Projects” -path “C:\Projects.cmp”

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *