Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Workflow Asset activation failed with version created error

Avatar

Level 2

Hi,

My custom activation workflow uses OOTB create version process step before activation but some times version creation throwing below error.

can anyone help me to resolve this issue.

com.adobe.granite.workflow.WorkflowException: Process execution resulted in an error

  at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:199)

  at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:244)

  at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:500)

  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:291)

  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:58)

  at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:227)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at java.lang.Thread.run(Thread.java:745)

Caused by: com.adobe.granite.workflow.WorkflowException: Failed to execute process

  at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:108)

  at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:189)

  ... 8 more

Caused by: com.day.cq.workflow.WorkflowException: com.adobe.granite.asset.api.AssetException: Unable to create version for asset [ /content/dam/demoportal-www/en_US/Documents/fpo/Application_Performance_Management_For_demo.pdf ]:

  at com.day.cq.wcm.workflow.process.CreateVersionProcess.execute(CreateVersionProcess.java:114)

  at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93)

  ... 9 more

Caused by: com.adobe.granite.asset.api.AssetException: Unable to create version for asset [ /content/dam/demoportal-www/en_US/Documents/fpo/Application_Performance_Management_For_demo.pdf ]:

  at com.adobe.granite.asset.core.impl.AssetVersionManagerImpl.createVersion(AssetVersionManagerImpl.java:86)

  at com.day.cq.dam.core.impl.AssetManagerImpl.createRevision(AssetManagerImpl.java:349)

  at com.day.cq.dam.core.impl.AssetImpl.createRevision(AssetImpl.java:432)

  at com.day.cq.wcm.workflow.process.CreateVersionProcess.execute(CreateVersionProcess.java:90)

  ... 10 more

Caused by: javax.jcr.RepositoryException: OakName0001: Invalid namespace prefix([, mediapro, lr, xmpTPg, prismusagerights, xmp_1_, xmpPLUS, photomechanic, dam, s7sitecatalyst, xmpNote, dex, scg, xml, xmp, viewerpreset, rep, psAux, prism, xmpGImg, MP, Iptc4xmpExt, photoshop, xmpDM, prl, mwg-rs, plus, stArea, xmpG, xmpMM, acdsee, exif, xmpRights, tiff, nt, stEvt, s7userdata, stMfs, jcr, oak, ExtensisFontSense, DICOM, mix, oauth, apple-fi, cc, sv, social, crs, exifEX, album, crx, GettyImagesGIFT, stDim, xmpBJ, cq, sling, adobe_dam, pdfx, pdf, Iptc4xmpCore, rdf, granite, stRef, MicrosoftPhoto, slingevent, illustrator, dc, vlt]): FA1

  at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:249)

  at org.apache.jackrabbit.oak.api.CommitFailedException.asRepositoryException(CommitFailedException.java:212)

  at org.apache.jackrabbit.oak.jcr.version.ReadWriteVersionManager.checkin(ReadWriteVersionManager.java:133)

  at org.apache.jackrabbit.oak.jcr.delegate.VersionManagerDelegate.checkin(VersionManagerDelegate.java:66)

  at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$7.perform(VersionManagerImpl.java:355)

  at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$7.perform(VersionManagerImpl.java:346)

  at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:208)

  at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl.checkin(VersionManagerImpl.java:346)

  at com.adobe.granite.asset.core.impl.AssetVersionManagerImpl.createVersion(AssetVersionManagerImpl.java:69)

  ... 13 more

Caused by: org.apache.jackrabbit.oak.api.CommitFailedException: OakName0001: Invalid namespace prefix([, mediapro, lr, xmpTPg, prismusagerights, xmp_1_, xmpPLUS, photomechanic, dam, s7sitecatalyst, xmpNote, dex, scg, xml, xmp, viewerpreset, rep, psAux, prism, xmpGImg, MP, Iptc4xmpExt, photoshop, xmpDM, prl, mwg-rs, plus, stArea, xmpG, xmpMM, acdsee, exif, xmpRights, tiff, nt, stEvt, s7userdata, stMfs, jcr, oak, ExtensisFontSense, DICOM, mix, oauth, apple-fi, cc, sv, social, crs, exifEX, album, crx, GettyImagesGIFT, stDim, xmpBJ, cq, sling, adobe_dam, pdfx, pdf, Iptc4xmpCore, rdf, granite, stRef, MicrosoftPhoto, slingevent, illustrator, dc, vlt]): FA1

  at org.apache.jackrabbit.oak.plugins.name.NameValidator.checkValidName(NameValidator.java:69)

  at org.apache.jackrabbit.oak.plugins.name.NameValidator.checkValidValue(NameValidator.java:113)

  at org.apache.jackrabbit.oak.plugins.name.NameValidator.checkValidValue(NameValidator.java:100)

  at org.apache.jackrabbit.oak.plugins.name.NameValidator.propertyAdded(NameValidator.java:122)

  at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.propertyAdded(CompositeEditor.java:83)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.propertyAdded(EditorDiff.java:82)

  at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:156)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)

  at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)

  at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)

  at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)

  at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:493)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:584)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:531)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:531)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

  at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:414)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:584)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

  at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:414)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:584)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

  at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:414)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:584)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)

  at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:483)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:584)

  at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)

  at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:54)

  at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)

  at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore$Commit.prepare(SegmentNodeStore.java:494)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore$Commit.optimisticMerge(SegmentNodeStore.java:525)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore$Commit.execute(SegmentNodeStore.java:581)

  at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStore.merge(SegmentNodeStore.java:238)

  at org.apache.jackrabbit.oak.spi.state.ProxyNodeStore.merge(ProxyNodeStore.java:43)

  at org.apache.jackrabbit.oak.core.MutableRoot.commit(MutableRoot.java:247)

  at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:347)

  at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit(SessionDelegate.java:360)

  at org.apache.jackrabbit.oak.jcr.version.ReadWriteVersionManager.checkin(ReadWriteVersionManager.java:129)

  ... 19 more

Thanks,

Chamu.

1 Accepted Solution

Avatar

Correct answer by
Level 2

Assets have metadata propessrties with FA1 namespace but FA1 is not registered as namespace in the repository.

I have updated namespace and issue resolved.

localhost:4502/crx/explorer/ui/namespace_editor.jsp

View solution in original post

4 Replies

Avatar

Employee

Hey Chamu,

Can you please share following information about this issue

1/ Which version of AEM you are working on ?

2/ Is this issue specific to asset type ( jpeg , pdf , png etc. )

Regards,

Abhishek

Avatar

Level 2

Hi Abhishek,

info:

1. I'm using 6.2 version

2. Issue is irregular and all asset types.

Thanks,

Chamu.

Avatar

Correct answer by
Level 2

Assets have metadata propessrties with FA1 namespace but FA1 is not registered as namespace in the repository.

I have updated namespace and issue resolved.

localhost:4502/crx/explorer/ui/namespace_editor.jsp

Avatar

Employee

Hi Chamu,

This issue with namespace errors usually happens after a selective crx2oak migration.  You have solved the issue properly, see here for the official doc on the topic:

javax.jcr.NamespaceException: Unknown namespace prefix error in AEM

Thanks,

Andrew