Hello,
We are working on AEM 6.3.
We have around a thousand pdf files stored under DAM path (as jcr:primaryType = nt:file) may be retained from old AEM versions and never migrated as DAM assets so far. Is there any OOTB option/tool to convert them into proper DAM assets with renditions, thumbnails etc? DAM authors need to access them now but they can't. because there's no preview for them.
these PDFs are only accessible in crx/de for administrators now.
I think we can create an endpoint (servlet) which triggers the DAM update asset workflow, taking these PDF paths as payload, but I just wanted to know if there's any other good approach for this.
Please let us know if there's any solution for this.
Solved! Go to Solution.
Views
Replies
Total Likes
@rohitk31991147 : Not sure how anything under Dam path would be of type nt:file in AEM ? Can you try to download grom asset console and reupload and see if now the type changes to dam:Asset ?
If this works , use search filters - path type etc and do a bulk download and reupload. There are many ways to do bulk upload/download efficiently if above works.
You can do this OOTB with bulk workflow manager tool of AEM ACS commons. Using query option - select all assets under a path having type as application/pdf and run dam update workflow .. if you have list handy u can put path of pdfs as well using List option of bulk workflow manager
Use normal dam update workflow with runner type selected as Synthetic workflow multithreaded . Offloading is no longer supported I guess.Bulk workflow manager inherently takes care of offloadig and processing assets in batches.
Hello @rohitk31991147
I am a doubtful that "DAM Update Asset" Workflow will work on an nt:file. Please try on one file first.
- Go to Workflow console
- Select the workflow. Click on "Start Workflow"
- Add the asset as payload path.
Check logs.
Here we are trying to change the type of node itself. From nt:file to dam:Asset.
Hey @aanchal-sikka @digarg thank you for your suggestions, but both the approaches are not working unfortunately,
When I try to trigger the DAM Update Asset workflow on one PDF file, the Gatekeeper process itself is rejecting it with following exception :
Process execution resulted in an error: com.day.cq.workflow.WorkflowException: execute: gatekeeping failed, asset [{/content/dam/abc.pdf}] in payload doesn't exist for workflow [{VolatileWorkItem_node1_etc_workflow_instances_server0_2023-01-04_update_asset_2}].
the Gatekeeper process is checking if payload is of type Asset or not. If no, it's throwing this exception. I guess we cannot convert this pdf with nt:file type into dam:Asset in this case as @aanchal-sikka mentioned.
With bulk workflow manager, i am able to trigger the "Dam update Asset" workflow with synthetic workflow settings, it shows the success status as well, but the pdf remains in same type (nt:file) and no changes there, and nothing comes up in logs as well.
Any other suggestions?
@rohitk31991147 : Not sure how anything under Dam path would be of type nt:file in AEM ? Can you try to download grom asset console and reupload and see if now the type changes to dam:Asset ?
If this works , use search filters - path type etc and do a bulk download and reupload. There are many ways to do bulk upload/download efficiently if above works.
yes, these PDFs might have somehow sneaked in from other legacy systems, not sure how. but these are dated very old. will consider the possibility of reuploading and storing them as assets.
Thank you all for your help. good day!
Views
Replies
Total Likes