[SalesForce] “Required field missing: PicklistMasterId” error when deploying a path from a sandbox to another

When deploying a case path assistant from a sandbox to another I'm getting an error when deploying the package:

Required fields missing: [PicklistMasterId]

We have deployed all fields being used in the case object to this environment as well. What can be causing this error message?


After playing with the Migration Tool, directly with the metadata, I noticed that I can retrieve the path and related metadata, such as:

  • BusinessProcess
  • CustomField
  • PathAssistant
  • Queue
  • RecordType
  • Role
  • Settings

And when commenting all the fields in the path metadata the validation succeeds as expected. However, the path would be deployed without its fields. For example:

<pathAssistantSteps>
    <!-- <fieldNames>Observations__c</fieldNames> -->
    <picklistValueName>Call customer</picklistValueName>
</pathAssistantSteps>

The Observations__c custom field is a text area field. When commented out, the validation succeeds. Otherwise, I get an error describing that it is not possible to deploy a path step because a picklist value is unsupported. This error doesn't make sense for this specific field.

Am I correct to assume this is an internal error with Salesforce?

Best Answer

Required fields missing: [PicklistMasterId]: I had the same error and I fixed it by adding a default path for the same object (in your situation 'Case') with record type --Master-- After that was created, I could deploy met custom path.
Cannot insert Path Assistant Step Item: Picklist value is not supported: Remove all <info>blablabla</info> tags from the .pathAssistant file. It's a bug (https://success.salesforce.com/issues_view?id=a1p3A0000008gWXQAY)

Related Topic