Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • Hi, Thank you. I get the following error when i try PS C:\WINDOWS\system32> Set-PnPField -List "DMS_MPC" -Identity "DocumentNumber" -Values @{CommaSeparator=$false} Set-PnPField : Unable to retrieve the list specified using the List parameter Parameter name: List At line:1 char:1 + Set-PnPField -List "DMS_MPC" -Identity "DocumentNumber" -Values @{Com ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Set-PnPField], ArgumentException + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Fields.SetField Commented Sep 27, 2021 at 6:09
  • when i try complete sharepoint URL along with site, i get 404 error and when the try with only abc-admin.sharepoint.com it returns above error. Please advice Commented Sep 27, 2021 at 6:17
  • In Connect-PnPOnline command, you have to use URL of site where you created document library. In Set-PnPField command, you have to pass the display name of library in -List parameter. Commented Sep 27, 2021 at 6:23
  • 1
    Do not add -admin in site URL. It should be simply like: https://contoso.sharepoint.com/sites/abcsite. Commented Sep 27, 2021 at 7:48
  • 1
    Great Great!! It worked.. Thank you so much Ganesh Commented Sep 27, 2021 at 8:00