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”