I am getting this error while trying to tag assets: (tagmanager.setTags(resource, new Tag[list.size()]))
Caused by: java.lang.RuntimeException: error while setting tags for '/content/dam/myproject/R_Ucal_10112012.pdf
Caused by: javax.jcr.version.VersionException: Cannot set property. Node is checked in.
I am not able to figure out what this exception is. Please help me out.
Regards,
Vishal
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I can't see the image you uploaded to your last post.
When uploading that many assets, you have to be aware of the processes going on in the background, For every PDF you are uploading, an instance of the DAM Update Asset workflow is kicked off. If you upload all your assets at once, then obviously this will create a lot of workflows. If you were to try and update a PDF that was still being processed by a workflow, then you could end up with the error you saw. Ideally you should wait till the workflow has processed the asset before attempting to modify it, which is obviously hard to determine with so many assets/workflows.
I would try uploading say 10 PDF's, wait for the workflows to complete, check "/workflow/content/console.html", then run your script and see if all the files get updated.
Link[1] gives some information on how to upload a large number of assets, you can use import throttling to upload in batches.Link[2] outlines various performance issues with the DAM and how they affect the system as a whole.
Another option is to disable the DAM Update Asset workflow for the initial import, then enable it and use a script to go through the uploaded files to kick off the workflow. But review the links below and come back with any questions you may have.
Regards,
Opkar
[1] https://docs.adobe.com/docs/en/cq/5-6-1/deploying/scaling.html
[2] http://docs.adobe.com/docs/en/aem/6-1/deploy/configuring/performance/assets-performance-sizing.html
Views
Replies
Total Likes
Hi,
are these existing PDF's in your DAM, or did you upload them and trying to immediately tag them?
Can you post/attach the full exception.
Regards,
Opkar
Views
Replies
Total Likes
Are all PDFs in that location give the same exception or only this one. Try tagging the other PDFs (upload some of there are not others) - sometimes testing in this manner gives clues to why an exception is being thrown.
Views
Replies
Total Likes
Do you see this pdf 'R_Ucal_10112012.pdf' uploaded ??
which AEM version are you using ?
Views
Replies
Total Likes
Thanks for your suggestion. Its causing for most of the pdf's. I had tried setting tags on other pdf's before but they did not throw any exception. There is a property "jcr:isCheckedOut" set to false on these pdfs. I am not sure how and when this gets set to false. Then there are others set to true.
I tried using versionManager to checkout this resource before tagging, but I am not able to get the version manager working.
Views
Replies
Total Likes
Hi I uploaded them through WebDAV. The number of pdf files were 45,000 approx. Then, yes I tried to tag them as all the required sub folders were created (eg. metadata, jcr:content etc). Then I ran my script that uses Tagmanager API to tag these pdfs.
Views
Replies
Total Likes
Hi,
I can't see the image you uploaded to your last post.
When uploading that many assets, you have to be aware of the processes going on in the background, For every PDF you are uploading, an instance of the DAM Update Asset workflow is kicked off. If you upload all your assets at once, then obviously this will create a lot of workflows. If you were to try and update a PDF that was still being processed by a workflow, then you could end up with the error you saw. Ideally you should wait till the workflow has processed the asset before attempting to modify it, which is obviously hard to determine with so many assets/workflows.
I would try uploading say 10 PDF's, wait for the workflows to complete, check "/workflow/content/console.html", then run your script and see if all the files get updated.
Link[1] gives some information on how to upload a large number of assets, you can use import throttling to upload in batches.Link[2] outlines various performance issues with the DAM and how they affect the system as a whole.
Another option is to disable the DAM Update Asset workflow for the initial import, then enable it and use a script to go through the uploaded files to kick off the workflow. But review the links below and come back with any questions you may have.
Regards,
Opkar
[1] https://docs.adobe.com/docs/en/cq/5-6-1/deploying/scaling.html
[2] http://docs.adobe.com/docs/en/aem/6-1/deploy/configuring/performance/assets-performance-sizing.html
Views
Replies
Total Likes
I have not had an issue tagging content using TagManager API.
https://helpx.adobe.com/experience-manager/using/tagmanager.html
However - never have I tried that many assets - 45 K.
Views
Replies
Total Likes
Upload assets in batches & make sure to run your custom code to update asset after workflow is completed. Also ensure latest service pack is installed.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies