function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jingli Hu 3Jingli Hu 3 

Why we only get error for reach 15 cross object reference in some sandboxes.

We are trying to deploy our code from TEST to UAT. and got the "reaching 15 cross object reference limit" in UAT. we have same code in DEV and TEST, we didn't get the same error. We even try to add a few more cross object reference in DEV, but still cannot get the same error message. any ideas?
Thanks,
 
Alain CabonAlain Cabon
Hi,

The deployments are cummulative without deleting anything if you don't ask it explicitly.

Compare your orgs with this online tool:  https://sforgcompare.herokuapp.com/

Toolkit for Salesforce: For any errors or issues, please feel free to contact me on twitter @benedwards44 or via email ben@edwards.nz.
I am constantly trying to update and improve these applications. Feel free to contact me if you'd like to contribute or have any ideas. All my applications are open sourced on GitHub at https://github.com/benedwards44
https://cloudtoolkit.co/
Jingli Hu 3Jingli Hu 3
Hi, I tried to use the url to compare the meta data between two sandboxes. Because our application is built on manage package. It seems any meta data in managed packages are not in their list.
Alain CabonAlain Cabon
Ok your problem is tricky and that could be the data if you have a generated SOQL query for hierarchical data for example ( some queries are like this: parent.parent.parent.parent.parent.Name.   https://focusonforce.com/configuration/using-the-salesforce-account-hierarchy/
The queries are static in focusonforce but that could be generated dynamically as far as the parent exists until the root of the hierarchy.
15 cross object references is quite huge and that could be a problem of hierarchical depth which exists in production and not in your sandboxes.