pnp / modernization

All modernization tooling and guidance
http://aka.ms/sppnp-modernize
MIT License
156 stars 86 forks source link

Error for page with Script Editor #26

Closed Kokila106 closed 5 years ago

Kokila106 commented 5 years ago

I have webpart page with Script Editor webpart

When transforming the webpart page to modern page it displays below message 'Busy generating a modern version of WebPartPage4.aspx... Error: Object reference not set to an instance of an object.'

jansenbe commented 5 years ago

Hi @Kokila106,

I assume you're testing with the transformation service? If so that one has the default webpartmapping.xml file that does not include the mapping for the script editor web part. Below instructions show how to use an updated webpartmapping file. Would be good if you could also test from PowerShell or .Net to see if you get an error? Normally there should be no error, the script editor will simply be skipped.

Instructions for updating the webpartmapping file for PowerShell usage

Follow below steps to enable the conversion of content editor and script editor web parts:

Instructions for updating the webpartmapping file for Transformation service usage The easiest way to deploy the Azure Function app binaries is by using Kudu:

jansenbe commented 5 years ago

Hi @Kokila106,

Did you manage to update the webpartmapping.xml file in the service?

jansenbe commented 5 years ago

Hi @Kokila106,

I've moved the information about how to configure for script editor usage into the FAQ: https://github.com/SharePoint/sp-dev-modernization/blob/pagetransformationuibeta/Solutions/PageTransformationUI/docs/modernization-ui-faq.md.

Will close this issue now.