sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Frequent 409 errors in SharePoint REST API's

Open advdberg opened this issue 8 years ago • 2 comments

Category

  • [ ] Question
  • [ ] Typo
  • [x] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

In our SPFx solution, when adding a user to a SiteGroup through the PnPJS library we expect the user is added to the specified sitegroup without any error

Observed Behavior

We see the user added to the sitegroup, but an error appears as response of the api call: _https://ctbxrmtst.sharepoint.com/sites/p365_AVDB220518a/api/web/sitegroups(23)/users error: {"odata.error":{"code":"-2130246326, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"Save Conflict\n\nYour changes conflict with those made concurrently by another user. If you want your changes to be applied, click Back in your Web browser, refresh the page, and resubmit your changes."}}}

Steps to Reproduce

In our SPFx Solution we perform a query to add a user to add a user to a sitegroup (where sp is imported from @pnp/sp) sp.web.siteGroups.getById(group.Id).users.add(user.accountName).then((siteuser) => { resolve(siteuser); }).catch((error) => { reject(error); });

advdberg avatar May 24 '18 15:05 advdberg

Is there any update on this issue? I noticed the issue while performing bulk delete with REST.

vikbehal avatar May 13 '19 18:05 vikbehal

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open the issue.

msft-github-bot avatar Jan 22 '20 21:01 msft-github-bot