Open KaushalKhamar opened 3 years ago
Hello, I can confirm this issue. I tested the code and found the following.
parameter: contentTypeId, "0x01" parameter: contentTypeCollection, default contenttype collection of a SPlist
In the first iteration, CountCommonBytes results with commonBytes = 0. Therefore first if is false, program runs into the next if. There bestMatch value is null and thats the reason, why we get a Object reference not set.
@KaushalKhamar If you really need this function, copy paste it and fix it for yourself.
I am trying to apply site template using invoke-PnPSiteTemplate command in group site but getting error of Object reference not set to an instance of an object
below is error