I have some classes that query and use the Quote.BillingAddress aggregate field. This works fine in sandbox (api version 34.0) and running tests against it compile and pass testing.
However, when deploying to production, I get the following error: "Invalid field BillingAddress for SObject Quote". Quote.BillingAddress is accessible from the user that I am deploying as.
I am using ant to deploy. My package xml has a version of 36.0. In addition, even in my deploy script, I have specifically set the apiVersion="36.0". Yet, I still get the error. Any help is greatly appreciated.
Here is the full error message:
TestXXXController. -- line 13, column 65: Dependent class is invalid and needs recompilation: XXXController: line 410, column 33: Invalid field BillingAddress for SObject Quote Stack trace: null