This article explains how to troubleshoot deployment failures that occur when Apex classes reference Salesforce Life Sciences Cloud or Health Cloud standard objects that are not available in the target production org.
Objects such as ResearchStudyCandidate are provisioned only when the corresponding Life Sciences functionality has been enabled. During deployment, Apex classes are compiled against the metadata available in the target org. If the referenced object does not exist, compilation fails and the deployment is blocked.
Depending on the deployment, you may encounter one or more of the following errors:
This issue can occur when deploying metadata using Change Sets, Salesforce CLI, Metadata API, DevOps Center, or other supported deployment tools.
This issue occurs because the target production org does not contain the required Life Sciences metadata at compile time.
Common reasons include:
To resolve the deployment failure:
After the required metadata is available or the code has been updated to remove unsupported references, retry the deployment.
005388474

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.