Forum Discussion
Deleted
Oct 10, 2016Field or property "Audit" does not exist
I am using SharePointPnPCore2013 Nuget Package to create a template xml using the method explained at the video below. https://channel9.msdn.com/blogs/OfficeDevPnP/Getting-Started-with-PnP-Provision...
VesaJuvonen
Microsoft
Oct 13, 2016This seems to be due the fact that some of the CSOM properties are not available in on-premises, which are available in SharePoint Online. This particular code sample is built towards SP Online, so it is using Online CSOM by default. If you do not update the PnP Core Nuget package to matching on-premises version (2013 or 2016), you will see this kind of issues.
So - how to fix it? - Update the PnP Core Nuget package reference to be for on-premises. Here's a blog post, which explains the CSOM version challenge in practice and which version should be used where - https://dev.office.com/blogs/using-correct-csom-version-for-sharepoint-customizations.