Unable to export course with Flow-controls

Hello Team!

We are trying the export and import functionalities to backup and restore courses. We have configured flow-control xblock to redirect from one unit to another in the course. But, we are unable to export the course with Flow-controls. How can we do that?

Please help.

Thanks.!
Attachment:
Export funtionality not working|689x305

I have found the error logs and pasted it here as an attachment.

Sample Errors:
SerializationError: Unable to create xml for module block-v1:SAMPLE+SA002+2020-01+type@flow-control+block@00780db5611149269ce53bdeda72236e. Context: ‘’
[2021-03-31 06:51:50,156: ERROR/Worker-1] contentstore.tasks.export_olx[d4bf48d0-fa3d-4702-a41b-207b6df4d339]: Error exporting course course-v1:SAMPLE+SA002+2020-01
Traceback (most recent call last):
File “/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/tasks.py”, line 620, in export_olx
tarball = create_export_tarball(courselike_module, courselike_key, {}, self.status)
File “/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/tasks.py”, line 646, in create_export_tarball
export_course_to_xml(modulestore(), contentstore(), course_module.id, root_dir, name)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py”, line 343, in export_course_to_xml
CourseExportManager(modulestore, contentstore, course_key, root_dir, course_dir).export()
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/xml_exporter.py”, line 170, in export
courselike.add_xml_to_node(root)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 583, in add_xml_to_node
super(XmlParserMixin, self).add_xml_to_node(node) # pylint: disable=bad-super-call
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1134, in add_xml_to_node
xml_string = self.export_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 572, in export_to_xml
super(XmlDescriptor, self).add_xml_to_node(node)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 431, in add_xml_to_node
xml_object = self.definition_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/course_module.py”, line 1154, in definition_to_xml
xml_object = super(CourseDescriptor, self).definition_to_xml(resource_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py”, line 692, in definition_to_xml
self.runtime.add_block_as_child_node(child, xml_object)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1531, in add_block_as_child_node
block.add_xml_to_node(child)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 583, in add_xml_to_node
super(XmlParserMixin, self).add_xml_to_node(node) # pylint: disable=bad-super-call
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1134, in add_xml_to_node
xml_string = self.export_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 572, in export_to_xml
super(XmlDescriptor, self).add_xml_to_node(node)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 431, in add_xml_to_node
xml_object = self.definition_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py”, line 692, in definition_to_xml
self.runtime.add_block_as_child_node(child, xml_object)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1531, in add_block_as_child_node
block.add_xml_to_node(child)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 583, in add_xml_to_node
super(XmlParserMixin, self).add_xml_to_node(node) # pylint: disable=bad-super-call
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1134, in add_xml_to_node
xml_string = self.export_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 572, in export_to_xml
super(XmlDescriptor, self).add_xml_to_node(node)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 431, in add_xml_to_node
xml_object = self.definition_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/seq_module.py”, line 692, in definition_to_xml
self.runtime.add_block_as_child_node(child, xml_object)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1531, in add_block_as_child_node
block.add_xml_to_node(child)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 431, in add_xml_to_node
xml_object = self.definition_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/vertical_block.py”, line 179, in definition_to_xml
self.runtime.add_block_as_child_node(child, xml_object)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1531, in add_block_as_child_node
block.add_xml_to_node(child)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 583, in add_xml_to_node
super(XmlParserMixin, self).add_xml_to_node(node) # pylint: disable=bad-super-call
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py”, line 1134, in add_xml_to_node
xml_string = self.export_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 572, in export_to_xml
super(XmlDescriptor, self).add_xml_to_node(node)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/xml_module.py”, line 431, in add_xml_to_node
xml_object = self.definition_to_xml(self.runtime.export_fs)
File “/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/raw_module.py”, line 41, in definition_to_xml
raise SerializationError(self.location, msg)

Complete Error Attachment:
Issue with exporting the course - Openedx discussion (13.1 KB)