azure - Get-PnPListItem : Object reference not set to an instance of an object -


we see these errors when running via azure function (only sometimes, not always).

the module imported using:

import-module "d:\home\site\wwwroot\modules\sharepointpnppowershellonline.psd1" -global; 

(same response without -global).

use of get-pnplistitem is:

get-pnplistitem -list "$listname" -web $requestweb 

where $requestweb comes get-pnpweb

the actual error thrown is:

get-pnplistitem : object reference not set instance of object. @ test.ps1: line 35 + get-pnplistitem + _______________ + categoryinfo : writeerror: (:) [get-pnplistitem], nullreferenceexception + fullyqualifiederrorid : exception,sharepointpnp.powershell.commands.lists.getlistitem

we use 64 bit version of .net in azure function.

has else seen this? may possibly due interaction azure function running @ same time, or 2 instances of same function.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -