If you're trying to manage Page Layout assignments with version control, you may find Gearset having difficulty with storing Layout assignments. 

When the value of a Profile's Page Layout assignment is changed, Gearset is not detecting this as Changed but as New.

In the example below, the System Administrator Profile's Page Layout is updated from Account Layout  to Account (Support) Layout.

When you run a Gearset comparison, the results shows the Permissions for [object ]-[page layout name] as a New item and not a Changed item that you normally expect.

You may also be expecting a New item with the new value and a corresponding Deleted item with the old value; this does not happen.

When you do deploy this item, the result is that in the version control system, the System Administrator Profile has the values:

    <layoutAssignments>
        <layout>Account-Account Layout</layout>
    </layoutAssignments>

    <layoutAssignments>
        <layout>Account-Account %28Support%29 Layout</layout>
    </layoutAssignments>

and not the expected:

   <layoutAssignments>
        <layout>Account-Account %28Support%29 Layout</layout>
   </layoutAssignments>

Workaround

While we work on a solution, at present you will need to manually remove the old layout assignment from the profile in your version control, in order for future deployments from the branch to be correct.

Did this answer your question?