Reconcile versions

In this module, you will run the Reconcile/Post tool to reconcile both named versions—Imperial Work Order 1 and Imperial Work Order 2—with the default version at the same time.

Access the data as a version administrator

In this tutorial, you’ll assume the role of a version administrator. Version administrators have unrestricted access to view, edit, and manage branch versions, regardless of the version owner or access permissions. In branch versioning, the following portal users can act as version administrators:

  • The owner of the web feature layer (typically the user who published the feature service)
  • A portal user who has the Administrator role assigned
  • A portal user who is assigned a custom role with the Manage all privilege assigned

You qualify as a version administrator under the first definition, because you published the Madrid data in the first tutorial in this series, Prepare and publish branch versioned data. You’ll sign in to your portal with the same credentials you used when you shared the data.

  1. Start ArcGIS Pro.
  2. Under New Project, click Start without a template.

    Start without a template

  3. Above the ribbon, click Not signed in and click Sign in.

    Sign in window

  4. In the ArcGIS Sign In window, type the username and password for the portal account you used in the first tutorial in this series, Prepare and publish branch versioned data.
  5. In the Catalog pane, click the Portal tab and the My Organization button.

    Portal tab and My Organization button

    All of your organization’s portal items are displayed, including the Madrid Solar Project items you created in the first tutorial.

  6. Right-click the Madrid Solar Project feature layer (the yellow icon), point to Add To New, and click Map.

    Add To New Map option in the feature layer's context menu

    The data appears on a new map.

    Map of the solar potential of buildings in Madrid

  7. In the Contents pane, click the arrow next to Madrid Solar Project to expand the group layer.

    Expander button next to Madrid Solar Project feature layer

    The group layer contains two layers: Buildings and Neighborhoods.

Reconcile and post the named versions

In the previous tutorial, Make edits in a branch version, two named versions were created—Imperial Work Order 1 and Imperial Work Order 2. Next, you’ll attempt to reconcile and post both versions.

Reconcile means to retrieve any changes from the default version and merge them into the currently connected named version. The reconcile process detects conflicts between the two named versions and the default version. Post means to send the changes to the default version.

  1. In the Contents pane, click the List By Data Source button.
  2. In the Contents pane, click the Madrid Solar Project data source, for example, sde.DEFAULT (Madrid_Solar_Project).

    The List By Data Source button and the Madrid Solar Project data source

  3. On the ribbon, click the Versioning tab.
  4. In the Versioning group, click Manage Versions.

    Manage Versions button on the ribbon

    The Versions view appears, listing the default version and the two named versions created in the previous tutorial.

    Versions view with three versions

    You could reconcile and post each named version individually, but instead you’ll use the Reconcile/Post tool to process them both at once.

  5. In the Manage Versions group, click Reconcile/Post.

    Reconcile/Post button on the ribbon

  6. In the Reconcile/Post window, confirm that Target version is set to the default version.

    In branch versioning, the target version is always the default version.

  7. In the Edit versions box, check both boxes for Imperial Work Order 1 and Imperial Work Order 2.

    Target version and Edit versions in the Reconcile/Post window

    The edit versions are the named versions you want to reconcile.

  8. Check the Abort if conflicts detected check box and uncheck the Proceed if unreviewed conflicts are detected check box.

    Check boxes in the Reconcile/Post window

    These choices will ensure that if conflicts are detected, the reconcile process will be canceled. This will allow you to perform quality assurance by manually reviewing and resolving the conflicts.

    Note:

    If you are in a situation in which you don't want to review conflicts, check the Proceed if unreviewed conflicts are detected check box. If you choose this option, existing conflicts from previous sessions will be lost when the tool runs. You can learn more in the Reconcile Versions documentation.

  9. For How do you want to define conflicts, ensure that By attribute (by column) is selected.

    This will ensure that only changes to the same attribute of the same feature will be flagged as a conflict. If you choose By object (by row), any changes to the same feature will be flagged as a conflict, for example, if the edits are to different attributes of the same feature.

  10. Check the Post versions after reconcile and Delete versions after post check boxes.

    Check boxes in the Reconcile/Post window

    These choices will ensure that if no conflicts are detected during the reconcile process, the tool will also post and delete the named version.

  11. Click OK.

    When the reconcile process completes, a warning message appears.

    Reconcile Warning window

    The first part of the message explains that the Imperial Work Order 1 version was successfully reconciled with the default version, posted to the default version, and deleted.

    The second part of the message explains that conflicts were detected during the reconcile process for the Imperial Work Order 2 version. Because of this, the reconcile process was canceled and the edits from this version were not posted to the default version. You must connect to this version and resolve the conflicts manually.

  12. Click Close.

    The Imperial Work Order 1 version is removed from the Versions view because it was deleted during the reconcile and post process.

    Versions view with two versions

  13. Close the Versions view.
  14. In the Contents pane, confirm that the Madrid Solar Project workspace is connected to the DEFAULT version, for example, sde.DEFAULT (Madrid_Solar_Project).

    Madrid Solar Project data source

    On the map, the buildings in the Imperial neighborhood are symbolized in orange and red colors. This is because the edits from the Imperial Work Order 1 version have been posted to the default version.

    Imperial neighborhood on the map with red and orange buildings

In this module, you connected to a portal account that can act as a version administrator. You used the Reconcile/Post tool to reconcile multiple named versions in a single session. No conflicts were found with the first named version, so it was posted to the default version and deleted. Conflicts were detected in the other named version, so the reconcile process was canceled.


Review and resolve conflicts

In this module, you will run the reconcile process again, this time only for the Imperial Work Order 2 version. The reconcile process will detect a conflict. You’ll use the Conflict view to manually review and resolve the conflict.

Review a conflict

First, you will connect to the Imperial Work Order 2 version.

  1. In the Contents pane, right-click the Madrid Solar Project workspace and click Change Version.

    Change Version option in the data source's context menu

  2. In the Change Version window, click the Imperial Work Order 2 version (for example, ADMIN.Imperial Work Oder 2).

    Imperial Work Order 2 selected in the Change Version window

  3. Click OK.

    The map updates to the named version: all of the buildings in the Imperial neighborhood are pale yellow, except for the municipal sports building, which is a light orange.

    Imperial neighborhood on the map with yellow and orange buildings

  4. On the ribbon, on the Versioning tab, click the Reconcile button.

    Reconcile button on the ribbon

    Last time, you used the Reconcile/Post tool because it allowed you to process multiple named versions at once. This time, you’ll use the Reconcile tool because it will allow you to manually review conflicts when they are detected.

  5. In the Reconcile window, confirm that Define conflicts is set to By attribute (column).

    Reconcile window

    This reconcile process will merge any changes from the default version into the Imperial Work Order 2 version, and notify you where conflicts are detected. A conflict will be detected if a building was edited in both versions, or if a building was deleted in one version but not the other. You will have the opportunity to review and resolve the conflicts.

  6. Click OK.

    Another window appears, stating that conflicts were detected and resolved in favor of the edit version. This is the default behavior of branch versioning. The edit version is the current version: Imperial Work Order 1.

  7. For Do you wish to review the conflicts, click Yes.

    The Conflicts view appears. It lists any feature classes that are in conflict. In this case, the Buildings feature class is listed. The (1) after its name indicates that it contains one conflict.

    Buildings layer in the Conflicts view

    Note:

    With branch versioning, you can review and resolve conflicts across multiple ArcGIS Pro sessions. If you have multiple conflicts, you do not need to review and resolve them all at once.

  8. Click the arrow next to the Buildings feature class to expand it and view the conflict.

    The conflict type, Update-Update, is revealed. This type of conflict means that the feature was updated in both the current and target versions.

  9. Expand Update-Update.

    Buildings layer expanded in the Conflicts view

    The Object ID of the feature in conflict (1752) is revealed.

  10. Click 1752.

    The information grid displays the attribute values for all representations of the feature.

    Information grid

    The three representations are as follows:

    • Current—The Imperial Work Order 2 version.
    • Target—The default version, which now includes the edits made in the Imperial Work Order 2 version.
    • Common Ancestor—The state that the data was in when the named versions were created from it.

    From the information grid, you can see that the Target and Current versions both contain changes to the POT_SOLAR field.

  11. In the bottom of the Conflicts view, click the arrow next to Conflict Display to expand this section.

    Expander button for the Conflict Display

    The Conflict Display viewer appears, showing the feature in conflict (1752), selected on two maps. You can see that feature 1752 is the municipal sports building.

    Conflict Display

    The map on the left shows the Current version (Imperial Work Order 2), while the map on the right shows the Target version (default).

    In the Current version, all of the buildings except for the municipal sports building have adopted the values and colors of the Target version during the reconcile process. No conflicts were detected with them because they were only edited in one of the versions created from the common ancestor, not two. The only difference between the two maps is the color of the municipal sports building, which is in conflict because it was edited in both versions.

    You made the edits that caused this conflict in the previous tutorial, Make edits in a branch version. In the Imperial Work Order 1 version, you performed a batch edit to calculate the Potencialidad solar (POT_SOLAR) field. This edit resulted in the relatively high value of 3.65420923 for the municipal sports building, which is why it is symbolized with red in the Target map. (The layer's symbology is determined by the Potencialidad solar field.) In the Imperial Work Order 2 version, you performed a manual edit to the municipal sports building: you changed the Potencialidad solar value to 1.876058, which is why the building is symbolized with a light orange color in the Current map. These edited attribute values are also visible in the information grid.

Resolve a conflict

Next, you must decide which representation of the municipal sports building to accept. In this scenario, you’ll keep the edits made in the Imperial Work Order 2 version, because these values resulted from the second round of a field survey. It represents the most up-to-date report that you have on this building.

  1. In the Conflicts view, right-click 1752 and click Add Review Note.

    Add Review Note in the feature's context menu

  2. In the Add Review Note window, type The correct solar potential value is 1.876058 from the latest survey.

    Add Review Note window

    The review note persists across multiple review conflict sessions, providing context for the conflict resolution. Notes are especially beneficial in organizations that have multiple administrators.

  3. Click OK.
  4. Right-click 1752 again and click Mark As Reviewed.

    The text formatting in the Conflicts list changes from bold to regular.

    Text in the Conflicts list with regular formatting

    Conflicts that have not yet been reviewed are shown in bold, allowing you to keep track of which have been reviewed and which have not.

    Note:

    In branch versioning, conflicts are resolved in favor of the current (edit) version by default. In this case, you reviewed the conflict and determined that the value in the Current version is the correct one, so no further changes are needed. However, if you had determined that the value in the target (default) version was correct, you could right-click the feature again and choose Replace with Target Version.

    You can learn more about the Conflicts view in the Manage branch version conflicts documentation.

  5. On the ribbon, on the Edit tab, in the Manage Edits group, click Save.

    Save button on the ribbon

  6. In the Save Edits window, click Yes.
  7. Close the Conflicts view.

    The map shows all buildings in the Imperial neighborhood in shades of orange and red. The municipal sports building is a light orange color.

    Imperial neighborhood on the map with red and orange buildings

In this module, you used the Conflicts view to review the current representation of features and attributes based on the reconcile operation. You reviewed a conflict and resolved it by keeping the edits made in the current version (Imperial Work Order 2).


Post and delete a version

In this module, you will complete the final step of the quality assurance process: you will post the vetted edits from the Imperial Work Order 2 version to the default version, making them available to the entire organization. After posting the version, you’ll delete it.

Post a named version

You’ll reconcile the named version again, then post it to the default version.

  1. In the Contents pane, confirm that the Madrid Solar Project workspace is connected to the Imperial Work Order 2 version. Click the workspace.

    Madrid Solar Project workspace

  2. On the ribbon, click the Versioning tab. In the Versioning group, click Reconcile.

    Reconcile button on the ribbon

    This step may seem redundant because you already reconciled the version. However, it’s important to repeat the reconcile before posting because other editors may have posted their own version edits to the default version while you were working on quality assurance. If those new edits are different from yours, the reconcile operation will detect new conflicts.

  3. In the Reconcile window, ensure that Define conflicts is set to By attribute. Click OK.

    The Reconcile window closes. This means that no new conflicts were detected. You can proceed with posting the edits to the default version.

  4. On the Versioning tab, in the Versioning group, click Post.

    Post button on the ribbon

    The post operation merges your edits from the Imperial Work Order 2 version into the default version. You will connect to the default version to confirm that the edits were merged.

  5. In the Contents pane, right-click the Madrid Solar Project workspace and click Change To Default.

    Change To Default in the workspace's context menu

    The map refreshes but does not change its appearance, because the default version is now the same as the Imperial Work Order 2 version that you were previously viewing.

  6. Zoom to the Imperial neighborhood and click the municipal sports building.

    In the pop-up that appears, confirm that the Potencialidad solar value is 1.876058.

    Potencialidad solar value for the municipal sports building in the pop-up window

  7. Close the pop-up.

Delete named versions

Your last step as a version administrator performing quality assurance is to delete any versions that are no longer needed.

  1. On the ribbon, on the Versioning tab, In the Versioning group, click Manage Versions.

    Manage Versions button on the ribbon

  2. In the Versions view, click the Imperial Work Order 2 version to select it.

    Imperial Work Order 2 version selected in the Versions view

    The Imperial Work Order 1 version was already deleted as part of the Reconcile/Post operation.

  3. On the ribbon, on the Versions tab, in the Manage Versions group, click Delete.

    Delete button on the ribbon

    In the Versions view, the named version appears crossed out.

  4. On the ribbon, in the Manage Versions group, click Save.

    The named version no longer appears in the Versions view. Only the default version remains.

    Versions view with only the default version

  5. Close ArcGIS Pro. There is no need to save the project.

In this module, you completed the quality assurance process by posting valid edits to the default version. You cleaned up the version list by deleting the Imperial Work Order 2 named version.

In this tutorial, you acted as the version administrator for the Madrid Solar Project feature layer. You reconciled both named versions and reviewed and resolved a conflict detected in one of them. When you were confident that the edits were valid, you posted them to the default version and deleted the named versions.

In this tutorial series, you performed a full branch versioning workflow: you enabled branch versioning on a feature class and published it to your portal as a web feature layer. You made two named versions, connected to each of them, and made edits in each of them. You reconciled and posted the named versions. The edits are now present in the default version and available to the rest of your organization. You’re now ready to introduce the branch versioning process to your colleagues. You’ll assign the editor role to multiple people and show them how to make and edit named versions.

From now on, this project can move faster because multiple people can edit at the same time without locking or duplicating the data. You’ll know the solar potential of every building in Madrid much sooner than you would have without versioning.