[BUG] Invoke-PnPBatch appending two forward slash which throws error invalid request #1703
Unanswered
onkaragarwal
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi
I am using PnP.Powershell 1.9.0 with PS 5.1.
Following is my command to connect-PnPOnline
$baseSiteUrlConnection=Connect-PnPOnline -Url $configureSiteUrl -ClientId $appId -ReturnConnection -Tenant $tenantId -Thumbprint $thumbprint
This connects successfully without any issue
$batch = New-PnPBatch
Following command is in loop
Set-PnPListItem -List $queueList -Identity $allDraftItems[$count+1].Id -Values @{([FieldNames]::Status)=([StatusFieldValues]::InProg)} -Batch $batch
When there is a single item then no issues but as it becomes multiple it throws Error "Invalid Request".
Upon inspection using fiddler I saw there are two forward slashes getting appended before
api/web/lists...
This is causing the issue. If I edit the request and re run it using fiddler it works fine.
Can you please let me know what to do or how to skip that
Beta Was this translation helpful? Give feedback.
All reactions