While implementing workflow for our site, I stumbled upon a Unicorn issue. Creating a page works just fine, but when an editor goes to edit the page, and so creates a new version, Unicorn gives a critical message about fields not matching serialization. The fields mentioned are the ones edited in the 'first version'.
I've looked at the .yml and it seems like when creating a second version of a page, the before edited fields are not serialized to the new version, and as such creating the 'fields not matching serialization' error.
Is this something wrong in our configuration, or is there some other way around this issue?
Example: When creating a page, I've edited the 'Project title'. After publishing, I've edited the 'meta title'. As you can see the project title doesn't show up in version 2.
- Language: en
Fields:
- ID: "b5e02ad9-d56f-4c41-a065-a133db87bdeb"
Hint: __Display name
Value: Test page
Versions:
- Version: 1
Fields:
- ID: "25bed78c-4957-4165-998a-ca1b52f67497"
Hint: __Created
Value: 20190206T073544Z
- ID: "3e431de1-525e-47a3-b6b0-1ccbec3a8c98"
Hint: __Workflow state
Value: "{FCA998C5-0CC3-4F91-94D8-0A4E6CAECE88}"
- ID: "5dd74568-4d4b-44c1-b513-0af5f4cda34f"
Hint: __Created by
Value: |
sitecore\publisher
- ID: "fc67969e-caaf-43a1-a891-58203f17557c"
Hint: ProjectTitle
Value: Title changed in the first version
- Version: 2
Fields:
- ID: "25bed78c-4957-4165-998a-ca1b52f67497"
Hint: __Created
Value: 20190206T073646Z
- ID: "3e431de1-525e-47a3-b6b0-1ccbec3a8c98"
Hint: __Workflow state
Value: "{190B1C84-F1BE-47ED-AA41-F42193D9C8FC}"
- ID: "41f598eb-4a49-4b48-a91f-7aa126358f1a"
Hint: MetaTitle
Value: Meta title changed in the second version
- ID: "c8f93afe-bfd4-4e8f-9c61-152559854661"
Hint: __Valid from
Value: 20190206T073646Z
We're using Unicorn 4.0.3 and Sitecore 9.0.2