pnp / modernization

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

"ConvertTo-PnPClientSidePage" not copying metdata value for column type "person or group" #184

Closed ashwane closed 5 years ago

ashwane commented 5 years ago

Problem Area

I am running below command

ConvertTo-PnPClientSidePage -Identity NewTest -PublishingPage -Overwrite -TargetWebUrl https://xxx.sharepoint.com/sites/Modernc -PageLayoutMapping c:\temp\custompagelayoutmapping.xml -CopyPageMetadata

I don't get any error as well.

All metadata are copied except "person or group". Below is my field types and xml mapping.

POC - person or group Title - TEXT Classification - Managed Metadata PublishingContactName1 - TEXT

<?xml version="1.0" encoding="utf-8"?>

ashwane commented 5 years ago

<?xml version="1.0" encoding="utf-8"?>

jansenbe commented 5 years ago

Thx for repotting this @ashwane , I'll try to repro and fix this for the upcoming release.

jansenbe commented 5 years ago

Fixed in the dev branch. Will be included in the July release

ashwane commented 5 years ago

thanks a lot @jansenbe for super quick response and fixing it so fast. Gr8full to you mate. Can I update the PnP dll from dev branch and utilize this feature before july release? If yes, then please guide.

Thanks In advance,

jansenbe commented 5 years ago

I build my own PnP versions as well, but let's see if below easier approach works for you:

ashwane commented 5 years ago

Hi @jansenbe thanks for providing me guidance to update pnp commands. Unfortunately, it doesn't work I downloaded latest dlls as per above instructions and replaced dlls i,e SharePointPnP.Modernization.Framework.dll and OfficeDevPnP.Core.dll - I started getting below error.

Connect-PnPOnline : The 'Connect-PnPOnline' command was found in the module 'SharePointPnPPowerShellOnline', but the module could not be loaded. For more information, run 'Import-Module SharePointPnPPowerShellOnline'.

Then i try to load the module and I got below error.

Import-Module SharePointPnPPowerShellOnline Import-Module : Could not load file or assembly 'OfficeDevPnP.Core, Version=3.10.1906.0, Culture=neutral, PublicKeyToken=5e633289e95c321a' or one of its dependencies. The system cannot find the file specified

Can you please help If I am missing anything.

jansenbe commented 5 years ago

Then the only option is the grab the PnP PS source code from github and compile your own version...or wait until the July release

ashwane commented 5 years ago

Hi @jansenbe Sorry for delayed response. That's alright, thanks for your help. Really Appreciate it !!!

ashwane commented 5 years ago

hey @jansenbe - I have downloaded new version SharePointPnPPowerShellOnline 3.11.1907.0. and converted a page - It's now copying the user fields as well. Thanks Alot - I am updating my team to get latest ans stop doing manual updation of contact fields.