You need to sign in to do that
Don't have an account?
debra
Apex Test failure with API version change only?
I am trying to deploy a code update and received test failures on an unrelated test class.
To figure out the issue I did a test where I created a Cset with the original code and validated the class with exact same code as already in production and it validated.
Next all I did was change the API version from 18 to 35 and the validation errors came back.
Has anyone experienced this? What would be best practice for API versions on Apex. I figured it would be good to update the API version to current version at the same time as my updated code but this does not seem to be possible.
To figure out the issue I did a test where I created a Cset with the original code and validated the class with exact same code as already in production and it validated.
Next all I did was change the API version from 18 to 35 and the validation errors came back.
Has anyone experienced this? What would be best practice for API versions on Apex. I figured it would be good to update the API version to current version at the same time as my updated code but this does not seem to be possible.
All Answers
[1] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_seealldata_using.htm
System.QueryException: No such column 'BillingAddress' on entity 'Quote'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
https://success.salesforce.com/issues_view?id=a1p30000000T0tvAAC