Oct 09 2016 08:55 PM
Oct 09 2016 08:55 PM
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-Provisioning-Engine
However, i get an error "Field or property "Audit" does not exist" at GetProvisioningTemplate method. Can you please suggest me a way to get rid of this error?
Oct 09 2016 11:19 PM
Oct 09 2016 11:19 PM
Hi Prasad,
It seems the custom column does not yet exist. But just a questoin did you first get a export of a site or did you start from scratch? and are you provisioning a subsite or a site. Do you use content types?
so a bit more info would be helpfull.
Oct 10 2016 01:03 PM
Oct 10 2016 01:03 PM
Oct 10 2016 10:42 PM
Oct 10 2016 10:42 PM
Oct 13 2016 11:26 AM
This 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.
Oct 13 2016 03:15 PM
Oct 13 2016 03:15 PM
Oct 13 2016 03:20 PM
Oct 13 2016 03:20 PM
Jan 24 2017 08:33 AM
I are using SharePointPnPCore2013 2.11.1701.1 and I am still having issues. Are there any other updates?
Jan 24 2017 10:36 AM
There's two factors for this.
Jan 24 2017 04:31 PM
Thank you, Vesa.
I installed/applied SP2013 January 2017 CU, I passed that error. Now, it throws null pointer error at line
web.ApplyProvisioningTemplate(template, ptai);
Any ideas?
Malathi.
Jan 24 2017 10:42 PM
This really comes down on the code and template what you're using. I'd do following.
Without access on the used template, we can't reproduce which means that there's no way to be 100% what goes wrong. WIth the exception, you should also get nice stack trace, which will give you and us insights on what / where issue occured.
Jan 25 2017 01:38 PM
Vesa
I am using the sample Provisioning.Framework.Console, I am able to export the template, but while importing I am receiving the null object error at applying the template. I notice that the nuget packages are not correct. What are necessary the packages for on-prem?
Microsoft.SharePointOnline.CSOM
Microsoft.SharePoint2013.CSOM
AppForSharePointOnlineWebToolkit
AppForSharePointWebToolkit
SharePointPnPCore2013
Installing SharePointPnPCore2013, installs AppForSharePointOnlineWebToolkit, and there seems to be conflict in CSOM libraries as well. Any pointer you provide will be helpful, also how do I about getting to the stack. I do not see much on that specific line, both objects are not null, I am assuming it is to do with the CSOM library.
Feb 21 2017 09:22 AM