Expand my Community achievements bar.

Unable to publish a document in AEM Cloud.

Avatar

Level 2

Trying to publish a PDF document, but it is stuck in the publishing queue with error:

 

 

pubAgentName=publish, userId=replication-service, paths=[/content/dam/pdfs/12345.pdf], deepPaths=[], metadata={}) at offset=342247676 because of 'javax.jcr.version.VersionException: OakVersion0000: Node at / has no primary type.', the importer will retry later

 

 

I check the node and can't find anything wrong. However, this document doesn't have any version history in /jcr:system/jcr:versionStore/.... This document does have version history in it's timeline audit log. Question is when it tries to publish something in the queue, is it doing validation in the version history before it is allowed to publish.

3 Replies

Avatar

Community Advisor

Hi, just cross check the primaryType and also if the logged in user(In case its via code- service/user) have enough permission (acl).

 

Thanks

Avatar

Community Advisor

@jimmychaucap 

Check if this PDF (/content/dam/pdfs/12345.pdf) has jcr:content node or not.

Avatar

Administrator

@jimmychaucap Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni