Set-PnPListItem command not working in batch. #2184
Unanswered
Daisuke1004
asked this question in
Q&A
Replies: 1 comment
-
Here's what we newly found out.
The same error is placed when running in PowerShell. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to perform an update of a document library value with the Set-PnPListItem command.
-batch parameter is not working properly, what is the solution?
Working:
Not woking:
Error:
The $ListItem definitely has the item registered.
I specified $ListItem.Id as a test, but the error occurred.
I get an error like Length cannot be less than 0.
Not woking:
Also, this error occurs when I run the .ps1 file and not when I start PowerShell and run the same code.
More information:.
The character encoding of the .ps1 file is UTF-8 with BOM.
The OS language is Japanese.
Beta Was this translation helpful? Give feedback.
All reactions