When deploying an unmanaged package or changeset containing RosterEntitiesCreationTrigger , the deployment fails with the following error:
Status: Failed
Deployment CompleteTest failure, method: RosterEntitiesCreationTrigger. -- line 3, column 5: Invalid type: CaseRelatedFile stack null
This error occurs because RosterEntitiesCreationTrigger references the CaseRelatedFile entity, which is part of the Provider Network Management feature in Health Cloud.
If the Target org does not have the Provider Network Management license, the CaseRelatedFile entity is not available, making the trigger invalid and causing deployment and code coverage failures.
Option 1 — Remove the trigger
Remove the RosterEntitiesCreationTrigger if the PNM feature is not in use:
Option 2 — Acquire the Provider Network Management License
Contact your Salesforce Account Executive to provision the Provider Network Management license. Once licensed, redeploy the trigger.
005388481

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.