Deployment & Migration

Symptom

Component works in builder or sandbox but fails when deployed to production or used by end-users.


Common Causes and Solutions

1. User Permissions Different

Check: End users may lack permissions that admins/developers have.

Solution:

  • Test component as actual end user (not as System Administrator)

  • Review object and field-level security

  • Update permissions if needed

  • Document permission requirements

Example:

❌ Problem:
- Admin can see confidential_notes__c field
- Support Agent cannot (no field-level security)
- Component breaks for Support Agent

✅ Solution:
- Grant field access to Support Agent profile
- Or remove field from component
- Test as Support Agent before deploying

2. Record Access Issues

Check: Users cannot access records due to sharing rules.

Solution:

  • Review organization-wide defaults

  • Check sharing rules and role hierarchy

  • Test with various user roles

  • Verify users can see records in standard UI first

Example:


3. Environment Differences

Check: Sandbox and production have different configurations.

Solution:

  • Verify custom fields exist in target org

  • Check picklist values match

  • Review automation differences

  • Test with production-like data

Example:


4. API Version Mismatches

Check: Production org may be on older Salesforce release.

Solution:

  • Check component API version

  • Verify production is on same or newer release

  • Wait for production org update if needed

  • Use compatible features for older versions


5. Managed Package Version Differences

Check: Sandbox and production may have different Dynamic Components package versions installed.

Solution:

  • Check package version in both orgs (Setup > Installed Packages)

  • Upgrade production to match sandbox version

  • Or rebuild component using features available in production version

  • Note version requirements in deployment documentation

Example:


Deployment Process

For complete deployment instructions, see: Deploying Dynamic Components Guide


Pre-Deployment Checklist

Last updated

Was this helpful?