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
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:
at sun.reflect.GeneratedConstructorAccessor3564.newInstance(Unknown Source)
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.