Expand my Community achievements bar.

SOLVED

Getting workflow version error

Avatar

Level 2

Hi Guys,

In our project we are not able to edit metadata property of the DAM Asset, so we were doing some testing in lower environment. While doing some testing i have deleted "Dam-metadata-update" workflow from the path etc/worklfow/models and then tried my test cases, but after that i found that The asset is not showing in GUI. Also we are getting error in error.log. We have done the latest code deployment but still we are getting the error.

30.06.2021 00:00:02.250 *ERROR* [127.0.0.1 [1625011202235] GET /bin/workflow/inbox HTTP/1.1] com.adobe.granite.workflow.core.model.WorkflowModelCacheImpl cannot load model. id: /etc/workflow/models/dam-update-metadata/jcr:content/model vid: 1.39
com.adobe.granite.workflow.model.VersionException: Version error retrieving workflow model /etc/workflow/models/dam-update-metadata/jcr:content/model
        at com.adobe.granite.workflow.core.jcr.WorkflowModelManager.getWorkflowModelFromRepo(WorkflowModelManager.java:209) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0017]
        at com.adobe.granite.workflow.core.model.WorkflowModelCacheImpl.getModel(WorkflowModelCacheImpl.java:191) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0017]
        at com.adobe.granite.workflow.core.jcr.WorkflowModelManager.getWorkflowModel(WorkflowModelManager.java:114) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0017]
        
Caused by: javax.jcr.version.VersionException: No such Version: 1.39
        at org.apache.jackrabbit.oak.jcr.delegate.VersionHistoryDelegate.getVersion(VersionHistoryDelegate.java:83) [org.apache.jackrabbit.oak-jcr:1.22.6]
        at org.apache.jackrabbit.oak.jcr.version.VersionHistoryImpl$5.perform(VersionHistoryImpl.java:137) [org.apache.jackrabbit.oak-jcr:1.22.6]
        at org.apache.jackrabbit.oak.jcr.version.VersionHistoryImpl$5.perform(VersionHistoryImpl.java:133) [org.apache.jackrabbit.oak-jcr:1.22.6]
        at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:207) [org.apache.jackrabbit.oak-jcr:1.22.6]
        at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:112) [org.apache.jackrabbit.oak-jcr:1.22.6]
        at org.apache.jackrabbit.oak.jcr.version.VersionHistoryImpl.getVersion(VersionHistoryImpl.java:133) [org.apache.jackrabbit.oak-jcr:1.22.6]
        at com.adobe.granite.workflow.core.jcr.WorkflowModelManager.getWorkflowModelFromRepo(WorkflowModelManager.java:192) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0017]
1 Accepted Solution

Avatar

Correct answer by
Community Advisor
4 Replies

Avatar

Correct answer by
Community Advisor

Hi @seemak19887037 ,

 

Might be because, an active work item for workflow model exist. Try purging-

Check below thread-

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/workflow-version-error/qaq...

 

Also, check this if it helps-

https://helpx.adobe.com/nz/experience-manager/kb/cannot-read-workflow-model-error.html

Avatar

Level 2

Hi @Ritesh_Mittal ,

This is the result when i run the "purge active". As i am first time running this, so i am not sure if i have dne it correctly or not. So, Could you please help me here.

seemak19887037_0-1625048400097.png

 

Avatar

Level 2

Hi @Ritesh_Mittal ,

It worked out! Thank you so much for the solution.