Spfx coauthoring issue for changes made with same user context

Anonymous
2025-03-19T11:52:28+00:00

Nowadays coauthoring of news and pages was rolled out in our organization. With this, one of the features in our custom WebPart fails. This WebpPart is very simple. It loads image to page and sets it as bannerImageUrl in Edit mode.

After the coauthoring release I got below error:

`Uncaught (in promise) HttpRequestError: Error making HttpClient request in queryable [423]  ::> {"odata.error":{"code":"-2147018894, Microsoft.SharePoint.SPFileLockException","message":{"lang":"en-US","value":"The file

Change is done using pnp type IClientsidePage.  Under the hood there is request _api/sitepages/pages(page_id)/checkout which gives 423 (locked) request.Change is performed using current user (author) context.

There is no error when same steps are performed from Read mode.

What can I do to avoid 423 error?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-03-19T13:30:24+00:00

    Hi Maciej Piotrowicz,

    Good day to you!

    I hope you are doing well. Thanks for reaching out to our Microsoft Community Forum.

    We would love to help you with your query, however, since this happens in a custom Webpart, and our team focuses on queries about  SharePoint's built-in features, we have a specific channel Microsoft Q&A Community coping with issues in custom Webpart, I recommend you post a new thread (click "Ask a question" in the upper-right corner and add the tags SharePointand Sharepoint Development) there for expert help.

    Please accept my apologies for redirecting you to the above team support, as the moderators in this community have limited resources and knowledge in troubleshooting.

    Thanks for your understanding.

    George | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments