Loading

Life Sciences Cloud: "Healthcare Provider is locked and cannot be created" error

Publiseringsdato: Jul 3, 2026
Beskrivelse

This article explains why users of Salesforce Life Sciences Cloud cannot create Healthcare Provider accounts, and why similar errors occur on other LSC objects such as Inquiry and Provider Visit.

Error messages
Users may see one of the following:
  • Life Sciences Workflow Permission Validation Failed — Healthcare Provider is locked and cannot be created.
  • Life Science Workflow Permission Validation Failed, Inquiry is locked and cannot be created
  • You don't have permission to create Provider Visit - [RecordTypeName] records at this stage of the workflow. Your Salesforce admin can help with that.
  • We couldn't load the workflow path for this record. Ask your Salesforce admin for help.

How this error works
When a Workflow Path is created for any LSC object (such as HealthcareProvider, ProviderVisit, or Inquiry), the LSC automatically creates a record in the LifeSciStageObject table with IsControlledByStagePath = true for that object. Once this flag is set, the package intercepts every create/update attempt and validates it against the configured Workflow Path stages. If any of the following is true, the operation is blocked and the "locked and cannot be created" error is thrown:

  1. No active Workflow Path exists for the affected object's record type
  2. An active Workflow Path exists but the matched stage's Create action is set to false
  3. A Workflow Path was created for one record type but not for all record types of that object
  4. A previously active Workflow Path was deactivated without removing the LifeSciStageObject entry


Scope
The same mechanism applies to any object enrolled in Workflow in LSC: HealthcareProvider, ProviderVisit, Inquiry, and any other object with a LifeSciStageObject entry.

Løsning

Important prerequisite
Once an object is enrolled in Workflow (i.e., any Workflow Path has ever been created for it), an active Workflow Path must be defined for all record types of that object. Setting a path to Inactive alone does not remove the lock.

Step 1: Identify the affected LifeSciStageObject record

  1. Run the following SOQL query in the Developer Console or Workbench:
  2. SELECT Id, Name, ObjectName, IsControlledByStagePath, ParentObjRelaFieldName, ChecklistCustomScriptId FROM LifeSciStageObject WHERE ObjectName = 'HealthcareProvider'
  3. Replace 'HealthcareProvider' with the affected object API name (for example, 'ProviderVisit' or 'Inquiry') if the error appears on a different object.
  4. If IsControlledByStagePath = true, proceed to the applicable cause below.

Cause A: No active Workflow Path is configured for the affected object/record type combination

  1. Go to the LSC Admin Console in Setup.
  2. Navigate to Workflow Configuration and review the Workflow Paths configured for the affected object (e.g., HealthcareProvider).
  3. Verify that an Active Workflow Path exists for every record type of that object. If a record type has no path or an inactive path, the lock applies to all users attempting to create or modify that record type.
  4. To resolve: either activate a Workflow Path for all record types, or remove unused paths and disable Workflow for the object (see Cause B).
  5. After configuring, regenerate the Metadata Cache: LSC Admin Console > Metadata Cache > Create New Cache..
  6. Have the affected user sync the app on their device and retry.
Cause B: Workflow was configured for testing or is no longer needed — disable the lock

If your org does not intend to use Workflow Path for the affected object, or if Workflow was set up for testing and then abandoned:

  1. Using the query from Step 1, note the Id of the LifeSciStageObject record where ObjectName matches the affected object.
  2. Update IsControlledByStagePath to false for that record ID.
  3. Regenerate the Metadata Cache: LSC Admin Console > Metadata Cache > Create New Cache.
  4. Have the affected user sync the app and retry creating the Healthcare Provider record.

 

Cause C: Active Workflow Path exists but the Create action is not enabled at the matched stage

  1. Go to LSC Admin Console
  2. Navigate to Workflow Configuration  and open the active Workflow Path for the affected object and record type.
  3. Review each Stage in the path. For the stage where the record creation is being attempted, verify that the Create flag is enabled.
  4. Enable Create for the appropriate stage.
  5. Regenerate the Metadata Cache : LSC Admin Console > Metadata Cache > Create New Cache.
  6. Have the affected user sync the app and retry creating the Healthcare Provider record.


Knowledge-artikkelnummer

005387661

 
Laster
Salesforce Help | Article