Notifications

43 views

Description

Unable  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 the below message
SEVERE *** ERROR *** Construction failure - When committing changes to studio



Resolution

After clearing up the orphans(using KB0686019), 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.InvocationTargetException
at 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 in the logs specified and ensure to add the missing reference. In this case the activity 'test' was missing wf_versionable record. Deleting this test activity and recreating one or importing the reference wf_versionable record will help resolve the issue.


Additional Information

Solution for 'an error occurred while writing metadata files for application' when linking an application to source control


Article Information

Last Updated:2020-08-31 13:00:23
Published:2020-08-04