Loading

Industries CPQ STRING_TOO_LONG Error Deploying Attribute Metadata

Publiceringsdatum: Sep 8, 2026
Beskrivning

Issue

When you deploy Products in Salesforce Industries CPQ to a target org using IDX Workbench or the Vlocity Build Tool (VBT), the deployment may fails during the import post-process step. The failure occurs when the target org writes attribute detail back to the record — for example to the JSONAttribute field or vlocity_cmt__AttributeMetadata__c.

Symptoms

  • The deployment job reports a post-process failure and does not complete for the affected products.

  • The error message reads (product name and record ID vary):

    <ProductName> — Post Process Failed - Message: Update failed. First exception on row 0 with id; first error: STRING_TOO_LONG, Attribute Metadata: data value too large

  • Products that fail this step deploy without their compiled attribute data, so attribute overrides may be missing in the target org.

Root Cause

The import post-process that runs when the product DataPack is imported compiles product attribute data and writes the result back to the record. When the compiled string exceeds the destination field's maximum character length, the write fails and the platform raises the standard STRING_TOO_LONG error with Attribute Metadata: data value too large. The deployment itself is otherwise valid — the failure comes from the oversized value the post-process tries to store, not from the source data being wrong.

Lösning

The documented workaround is to prevent the oversized write during import (by clearing the responsible import post-process configuration in the target org), then recompile the attribute overrides after the deployment succeeds by running the EPCFixCompiledAttributeOverrideBatchJob.

Before you start: perform these steps in the target org (the org where the deployment fails). 

  1. Log in to the target org where the deployment is failing.
  2. Go to Setup (gear icon, top-right corner).
  3. In the Quick Find box, enter and select Custom Metadata Types.
  4. Locate the Vlocity Data Pack Configuration custom metadata type and click Manage Records next to it.
  5. Find the record named Product2 and click Clone. Cloning preserves the original as a rollback option.
  6. In the cloned record, find the Default Import Post Process field and clear its value so the field is blank.
    • If the field is not visible, edit the page layout to add it, save, then return to the record.
  7. Save the cloned record so the override applies on the next deployment run.
  8. Re-run the IDX or VBT deployment.
  9. Verify: confirm the deployment completes and the STRING_TOO_LONG / data value too large error no longer appears for the affected products.
  10. After the deployment succeeds, run the EPCFixCompiledAttributeOverrideBatchJob in the target org to recompile the product attribute overrides. Use the method documented in Run the EPCFixCompiledAttributeOverrideBatchJob on Salesforce Help.
    • Database.executeBatch(new vlocity_cmt.EPCFixCompiledAttributeOverrideBatchJob (), 1);
  11. Verify overrides: open an affected product in the target org and confirm its attribute overrides are present and correct.

Troubleshooting

  • If the error still appears after clearing the field: confirm you edited the record used by the failing deployment (the cloned Product2 DataPack Configuration is active and its Default Import Post Process value is truly blank), then re-run the deployment.
  • If attribute overrides are missing or incorrect after deployment: this is expected until you run EPCFixCompiledAttributeOverrideBatchJob (step 10). Run the batch job, let it finish, then re-check the product.
Knowledge-artikelnummer

000394550

 
Laddar
Salesforce Help | Article