Construction failure | Solution for 'an error occurred while writing metadata files for application' when linking an application to source controlDescriptionUnable to commit changes to studio ( as in the image below) and you have tried removing the orphans you see the error in the logs using Solution for 'an error occurred while writing metadata files for application' when linking an application to source control. And in the localhost logs you see this message:SEVERE *** ERROR *** Construction failure - When committing changes to studio ResolutionAfter clearing up the orphan records, checking the node logs when committing the changes to Studio you see the message Construction failure, (sample log below). WARNING *** WARNING *** Couldn't find wf_versionable associated with this activity with name: 'test'. Save update is only expected for published activity elements.2020-07-20 09:39:32 (812) worker.1 worker.1 txid=05bdca7a1b8e SEVERE *** ERROR *** Construction failure:java.lang.reflect.InvocationTargetExceptionat sun.reflect.GeneratedConstructorAccessor3564.newInstance(Unknown Source)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at com.glide.metadata.file.FileManagerFactory.getManager(FileManagerFactory.java:27)--Caused by: com.glide.metadata.file.FileHandlerException: No document generated for a record in table wf_element_activity with operation null Find the relevant record specified in the logs and ensure to add the missing reference. In this case, the activity 'test' was missing the wf_versionable record. Deleting this test activity and recreating one or importing the reference wf_versionable record will help resolve the issue.Additional InformationKB0686019 - Error "an error occurred while writing metadata files for application' when linking an Application to Source control (authentication required)