Getting workflow version error

Avatar

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
seemak19887037
Level 2

29-06-2021

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]

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

44 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

44 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 7

29-06-2021

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

Answers (2)

Answers (2)

Avatar

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
seemak19887037
Level 2

30-06-2021

Hi @Ritesh_M ,

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

Avatar

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile

Avatar
Boost 3
Level 2
seemak19887037
Level 2

Likes

4 likes

Total Posts

13 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Give Back
Ignite 1
Validate 1
Boost 1
View profile
seemak19887037
Level 2

30-06-2021

Hi @Ritesh_M ,

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