failing Field type change
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re attempting an incompatible field type change.
Problem Explanation
Salesforce restricts field conversions that risk data loss.
Root Cause(s)
1. Text → Number conversion
2. Lookup → Master-Detail change with existing data
3. Encrypted field changes
Step-by-Step Solution
1. Create a new field with desired type
2. Migrate data via Flow or Apex
3. Update references
4. Delete old field
Edge Cases & Variations
1. Managed package fields cannot be changed
2. Formula fields behave differently
Common Mistakes to Avoid
1. Forcing destructive changes
2. Ignoring dependencies