Skip to content

Deployment too large

Detection

  • String: Maximum size of request reached
  • String: 52428800 bytes
  • Applies to: deployment errors

Examples

  • Maximum size of request reached. Maximum size of request is 52428800 bytes.

Resolution

The deployment is larger than what the Metadata API accepts (about 39 MB zipped). Without delta deployments, each job deploys the full content of manifest/package.xml.
- Turn on delta deployments (useDeltaDeployment: true), so a Pull Request deploys only its own items (https://sfdx-hardis.cloudity.com/salesforce-devops-config-delta-deployment/)
- List the large items that are maintained in the org, or never change (static resources, documents, reports...), in manifest/package-no-overwrite.xml: CI/CD deploys them only once (https://sfdx-hardis.cloudity.com/salesforce-devops-config-overwrite/)
- Check that .forceignore excludes the files that must not be deployed

Comments