Currently I trying to retrieve metadata form Record-Triggered Flow with new custom error message component

enter image description here

But when I deploy to another sandbox org, I received this message

enter image description here

When I check the xml, I see that it refers to the name of the component and the message configuration does not appear in the xml, it seems that it is an independent component.

<defaultConnectorLabel>At least one is unchecked</defaultConnectorLabel>

Will anyone know what metadata I should obtain so that I can deploy the complete flow with the custom error message?

2 Answers 2


After deploying by Change sets, I see that XML generated has <apiVersion>59.0</apiVersion>

In VSCode automatically set apiVersion 58.0, changing to newer version and retrieve Flow metadata normally, problem solved!


Can you share metadata for Custom Error. I have api version as 59.0 only.

Update: I figured out the solution. Please use below command to retrieve your flow metadata. It is important to mention api version at the end of command then only you will be able to retrieve the complete metadata.

sfdx force:source:retrieve -m Flow:Your_Flow_Name -a 59.0

If anyone want custom error metadata then below is the syntax,

        <label>Show relation error</label>
            <errorMessage>The error message</errorMessage>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .