Export Application Returns Error: Failed to export templates for application null (null)

Document ID : KB000109472
Last Modified Date : 03/08/2018
Show Technical Document Details
While exporting an application through the ROC UI -> Import/Export it returns an error: 
Error: Failed to export templates for application null (null)

CA Release Automation
It fails to export an application due to template pre-plan step that points to a missing environment
This is fixed in:,,

Steps taken internally to confirm fix:
  1. Restore a copy of a database where the problem exists.
  2. Reproduce the export error.
  3. Apply 6.3.0.b9945. 
  4. Export again and confirm the export is successful.
Additional Information:
The following messages can be found in the nolio_export.log files for successful exports:

2018-08-02 18:12:01,355 [http-nio-8080-exec-6] DEBUG (com.nolio.platform.server.dataservices.services.exportimport.model.exportdata.ApplicationDataExporter:77) - Start Exporting application:SimpleApplication{name='<application Name>',id=103}

​2018-08-02 18:16:20,901 [http-nio-8080-exec-6] DEBUG (com.nolio.platform.server.dataservices.services.exportimport.model.exportdata.ApplicationDataExporter:179) - Finished Exporting application:SimpleApplication{name='<application Name>',id=103}