---
schema_version: "1"
id: ea3e2a995c57c2abd4a205c530cdabe136efda40ca87d53a63c5a9b09e615fc1
title: EPC Fix Compiled Attribute Override
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_epc_fix_compiled_attribute_override.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_epc_fix_compiled_attribute_override.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6e6f56fc56cb730d68187e7af3ab5cbf486e21a714da383068cb93e4182fb344
description: This job corrects attribute record IDs after data migration when product attribute overrides are present on promotions. This job regenerates the JSONAttribute field on CompiledAttributeOverride records for attribute overrides (for products that have attribute overrides, this job regenerates all the JSONAttributes for those overrides).
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# EPC Fix Compiled Attribute Override

This job corrects attribute record IDs after data migration when product attribute overrides are present on promotions. This job regenerates the JSONAttribute field on CompiledAttributeOverride records for attribute overrides (for products that have attribute overrides, this job regenerates all the JSONAttributes for those overrides).

Run the batch job in **execute anonymous**:

`Database.executeBatch(new EPCFixCompiledAttributeOverrideBatchJob (), 1);`

If you run this job on an installed package, as is usually the case at a customer site, then run:

`Database.executeBatch(new vlocity_cmt.EPCFixCompiledAttributeOverrideBatchJob (), 1);`

<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="d87922e55">
              <p style="margin-bottom:0;">Applies to</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d87922e61">
              <p style="margin-bottom:0;">CME Summer '17 and later</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e55 ">
              <p style="margin-bottom:0;">Apex Name</p>
            </td>

            <td data-label="CME Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e61 ">
              <p style="margin-bottom:0;"> EPCFixCompiledAttributeOverrideBatchJob</p>
            </td>

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

            <td data-label="CME Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e61 ">
              <p style="margin-bottom:0;">Developer Console</p>
            </td>

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

            <td data-label="CME Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e61 ">
              <p style="margin-bottom:0;">None</p>
            </td>

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

            <td data-label="CME Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e61 ">
              <p style="margin-bottom:0;">Do not run the <span class="apiname">EPCFixCompiledAttributeOverrideBatchJob</span> in a live production environment when orders are being taken.</p>
            </td>

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

            <td data-label="CME Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e61 ">
              <p style="margin-bottom:0;">After spinning a new org and migrating data, specifically, promotions data, from an old org to a new one.</p>
            </td>

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

            <td data-label="CME Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d87922e61 ">
              <p style="margin-bottom:0;">For more information, see <a href="https://help.salesforce.com/s/articleView?id=ind.comms_epc_product_attribute_json.htm&amp;release=264.0.0&amp;type=5" title="This job regenerates the JSON Attribute fields for products managed through Vlocity Product Console. For products that are managed in Product Console, you can run this batch job in case the JSONAttribute gets out-of-sync with the attributes that are assigned to the product.">EPC Product Attribute JSON</a> or <a href="https://help.salesforce.com/s/articleView?id=ind.comms_fix_product_attribute_json.htm&amp;release=264.0.0&amp;type=5" title="This job Regenerates the JSONAttribute fields for products managed through the Salesforce Classic interface, instead of Vlocity Product Console.">Fix Product Attribute JSON</a>.</p>
            </td>

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