The regionContainerType
field of the FlowScreenField metadata component was introduced in API version 55.0
. Although it is not documented, when the component type is a Section
this field is required.
To fix that simply manually add regionContainerType
element with SectionWithoutHeader
value to a Flow
metadata file:
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...
<screens>
<name>FlowScreenName</name>
<label>FlowScreen Label</label>
<fields>
<name>FlowScreenName_SectionN</name>
<regionContainerType>SectionWithoutHeader</regionContainerType>
...
<fields>
</screens>
</Flow>
The easier way would be retrieving Flow
instances from updated to Summer 22
sandbox instances if the metadata in the project repository matches the last deployed metadata. After that, all the flow screen sections will be automatically updated with <regionContainerType>SectionWithoutHeader</regionContainerType>
element.
metadata
using55.0
API version and then it will be downloaded with all tags and structures as per that API version and you can deploy it further to other org again without getting error.