Skip to content

Bug report: spo listitem set not updating items #1984

@garrytrinder

Description

@garrytrinder

Description

Unable to update SharePoint List items using spo listitem set

Steps to reproduce

Execute a simple command to update the Title field

m365 spo listitem set --webUrl https://contoso.sharepoint.com/sites/site--listTitle MyList --id 1 --Title UPDATE

Or same command using --systemUpdate option

m365 spo listitem set --webUrl https://contoso.sharepoint.com/sites/MockData --listTitle MyList --id 1 --Title UPDATE --systemUpdate

Expected result

List item is updated

Actual result

Errors are thrown

Error: Request failed with status code 400

and

"ErrorMessage":"The element 'Method' in namespace 'http:\u002f\u002fschemas.microsoft.com\u002fsharepoint\u002fclientquery\u002f2009' cannot contain text.","ErrorValue":null,"TraceCorrelationId":"f9c6939f-f048-2000-6f41-bc34a99056fe","Error],"TraceCorrelationId":"f9c6939f-f048-2000-6f41-bc34a99056fe"onException"

Environment

v3.2.0, WSL2, Ubuntu, Bash & PowerShell

Additional Information

I've tested this on v3.0.0 and it works fine.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions