You need to sign in to do that
Don't have an account?
Micky M
Deployment
Hi all, does anyone know whats going on here? I have a change set that im validating on production and it fails with the following:
API NameTypeLineColumnProblem
Contract_Recurring_Service__c.Billing_Period__c | Custom Field Definition | 3 | 13 | Cannot change field type of a custom field referenced in Apex class or trigger: <a href="/01pD0000000GGve">ContractRecurringService</a> |
Recurring_Service_Line_Item__c.Billing_Period__c | Custom Field Definition | 3 | 13 | Cannot change field type of a custom field referenced in Apex class or trigger: <a href="/01pD0000000GGvf">Contract_Recurring_Invoice_Calculations</a> |
Now its correct I am changing the field type from text to picklist, and it is referenced in both those classes in a soql statement both of and are in my change set also. Does anyone have any idea how to solve this as im stumped.
Check your apex code and triggers for a reference to the field. You'll need to comment out every reference to the field before you can change it because you cant change the field whilst it's referenced in a class or trigger. When you've made the change you can then uncomment the field back in.
All Answers
Check your apex code and triggers for a reference to the field. You'll need to comment out every reference to the field before you can change it because you cant change the field whilst it's referenced in a class or trigger. When you've made the change you can then uncomment the field back in.
Yeah thx, thats what ive just had to do, and what a pain it was :-)