PnP-Sites-Core icon indicating copy to clipboard operation
PnP-Sites-Core copied to clipboard

Update ObjectFiles.cs

Open bricenocar opened this issue 4 years ago • 1 comments

Setting properties before checking in causes an error. ref issue: #1831

Q A
Bug fix? yes
New feature? no
New sample? no
Related issues? fixes #1831, mentioned in #2335

What's in this Pull Request?

Setting properties before checking in causes an error "The file is not checked out" when trying to set the webparts in a file while provisioning a pnp template. The fix was to move the update properties logic before the check in happens.

bricenocar avatar Jul 03 '20 11:07 bricenocar

Hi @bricenocar , this change conflicts with the change done a while ago by @czullu (https://github.com/pnp/PnP-Sites-Core/pull/2610). Can you cross check this PR with him and if needed update. @czullu's case seems to handle "Libraries with ForceCheckout", so that might be the difference. If so that must then be taken in account into this PR.

jansenbe avatar Sep 03 '20 06:09 jansenbe