+ Start a Discussion

I want change the datatype of a field which is used in trigger. I did it in sandbox but now I cannot do it in production. How can I solve this problem?

It says cannot change field which is used in Apex class or trigger.
Hi, The only way to fix this is to comment out the field references from all the classes and triggers and change the data type to do this use Eclipse IDE search for the field name in all of your files using eclipse inbuilt search in all files feature. Refer to this document for more information on this feature http://stackoverflow.com/questions/2602114/search-for-all-files-in-project-containing-the-text-querystring-in-eclipse