---
schema_version: "1"
id: e36642fc1a7d3a467d9daf3a57983ecf486e2d1064dd28e18aeaa8c8aead3ca6
title: Attribute Override Batch Job
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_attribute_override_batch_job.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_attribute_override_batch_job.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 3d84ab7790020131e35613d57710c738af97ce01430d508e29f1e711a81c8862
description: This job populates OverrideContext field values when you override the AttributeAssignment Salesforce object. This job also helps the IDX migration tool identify matching records from a source org to a destination org when you migrate datapacks.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Attribute Override Batch Job

This job populates OverrideContext field values when you override the AttributeAssignment Salesforce object. This job also helps the IDX migration tool identify matching records from a source org to a destination org when you migrate datapacks.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d87370e32">
            <p style="margin-bottom:0;">Applies to</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d87370e38">
            <p style="margin-bottom:0;">Spring '22 and later </p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e32 ">
            <p style="margin-bottom:0;">Apex Name</p>
          </td>

          <td data-label="Spring '22 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e38 ">
            <p style="margin-bottom:0;">
              <span class="apiname">EPCAttributeOverrideBatch</span>
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e32 ">
            <p style="margin-bottom:0;">Where to Run this Job</p>
          </td>

          <td data-label="Spring '22 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e38 ">
            <p>From the Developer Console:</p>
            <ul>
              <li>
                <p>Click the setup (gear) icon, then click Developer Console.</p>
              </li>

              <li>
                <p>Click the Debug menu.</p>
              </li>

              <li>
                <p>Click <strong class="uicontrol">Open Execute Anonymous Window</strong>.</p>
              </li>

              <li>
                <p>Enter <code>Database.executeBatch(new
                                &lt;namespace&gt;.EPCAttributeOverrideBatchJob (),
                              2000);</code>
                </p>
                <p>For example: <code>Database.executeBatch(new
                                vlocity_cmt.EPCAttributeOverrideBatchJob (), 2000);</code>
                </p>
              </li>

              <li>
                <p>Click <strong class="uicontrol">Execute</strong>.</p>
              </li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e32 ">
            <p style="margin-bottom:0;">Risks of Running This Job</p>
          </td>

          <td data-label="Spring '22 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e38 ">
            <p style="margin-bottom:0;">High</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e32 ">
            <p style="margin-bottom:0;">When to Run This Job</p>
          </td>

          <td data-label="Spring '22 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e38 ">
            <ul>
              <li>
                <p>Once, after upgrading to CME Spring '22.</p>
              </li>

              <li>
                <p>Once, prior to migrating data to another org, on both the source
                  and designation orgs.</p>
              </li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e32 ">
            <p style="margin-bottom:0;">When not to Run This Job</p>
          </td>

          <td data-label="Spring '22 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e38 ">
            <ul>
              <li>
                <p>For fresh installs.</p>
              </li>

              <li>
                <p>Subsequent times for migrating data.</p>
              </li>

              <li>
                <p>Subsequent times for upgrading to CME Spring '22.</p>
              </li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e32 ">
            <p style="margin-bottom:0;">More Information</p>
          </td>

          <td data-label="Spring '22 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87370e38 ">
            <p style="margin-bottom:0;">In CME Spring '22 and later releases, the OverrideContext__c field
              is added to the AttributeAssignment__c object. This record is populated
              when you override the AttributeAssignment as part of a trigger. For
              existing records, you must run the Attribute Override Batch Job to
              generate the value of this field.</p>
          </td>

        </tr>
      </tbody>
    </table>