Closed DawsyB closed 5 years ago
Thanks for raising this, @DawsyB
The model looks good. Is it always the same page or random, one out of the three mentioned? Could you please share the following info as well?
We'll test out this model and case on our end.
It is always the same page. Once, I do the check-in trick it fixes for that particular page layout. When I run it on a fresh site collection, I get "modified by another user error" and on all subsequent runs I get "Save conflict".
Versioning settings: Create major versions Version of the tenant: O365
Do let me know if you any more information. Cheers
To fix this. I had to provision the page layout with empty webpart zones (i.e remove all the embedded webpart) then later add them back again using CSOM once they are provisioned.
With more investigation I think the issue is SP Meta makes multiple calls while provisioning a page layout with embedded web part. While SP also makes some changes and tries to overwrite the same file causing a conflict!
Hello,
Unable to provision publishing page layout. Keep getting the error "The file _catalogs/masterpage/*.aspx has been modified by i:0#.f|membership|*@.onmicrosoft.com on 21 Feb 2019 00:15:21 -0800." or "Save Conflict. Your 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.". It seems the page layout is deployed under master page gallery but it errors out while checking the file in. At times, manually check-in the page layout file from the UI and re-deploying the solution works but not always. So can't really find a pattern
CSOM -16.1.8523.1200 SPMeta2FileVersion - 1.2.1840.0152
Model:
Definition:
PropertyAndFleetServices.aspx
PropertyAndFleet.aspx