Forum Discussion

david.calabro's avatar
david.calabro
Brass Contributor
Mar 21, 2017

{AssociatedOwnerGroup} error

After using NuGet to update the SharePoint PnPCore2013 package I now get the following error while deploying the security section of my site.

 

"Additional information: Object reference not set to an instance of an object on server. The object is associated with property AssociatedOwnerGroup."

 

Current package: SharePointPnPCore2013 v2.13.1703

  • david.calabro's avatar
    david.calabro
    Mar 21, 2017

    15.0.4797.1000

     

    I did get this to work by recreating default groups but i'm not sure why this was necessary.

     

    $web = Get-SPWeb http://myweb

    $web.CreateDefaultAssociatedGroups("domain\account,"domain\account",$SiteName)

    • david.calabro's avatar
      david.calabro
      Brass Contributor

      15.0.4797.1000

       

      I did get this to work by recreating default groups but i'm not sure why this was necessary.

       

      $web = Get-SPWeb http://myweb

      $web.CreateDefaultAssociatedGroups("domain\account,"domain\account",$SiteName)

      • Pieter Veenstra's avatar
        Pieter Veenstra
        MVP

        I think that PnP simply doesn't create SharePoint groups. Any of the seurity elements is expected to exist already. In general I exclude security anyway (-Excludehandlers option). When moving templates from one farm/tenant  to another security accounts often do not match.

         

         

Resources