Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Post-Generation Workflow Sample Troubleshooting

Avatar

Level 1

I've been working on getting a sample AEM workflow up and running. I'm using the sample, post-generation workflow documented here: Post Generation Workflow | Adobe Experience Manager. This particular workflow is interesting because it captures the AEM metadata. My content is authored in DITA using AEM Guides. I downloaded the sample package and loaded it into my localhost using CRXDE. I followed the instructions in creating an output preset (PDF). When I generate output from Guides, I am getting an error message in Assets:

workflow error.PNG

From the Assets page, I am selecting the Advance option to move the workflow to the finalize process.

workflow error 2.PNG

I am attaching the log file as a zip file.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The error log shows that the issue is related to this path:
"/content/dam/fmdita-outputs/pdfs/chart_review_qrg-ditamap/jcr:content" which does not exist:

Esteban666_0-1687894633024.png

Please review the logs for more details

 



Esteban Bustamante

View solution in original post

5 Replies

Avatar

Community Advisor

Can you post the error.log from AEM? 



Esteban Bustamante

Avatar

Level 1

 

Publish process launched at 1,687,889,847,527ms
This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills
13:18:25.284 *** FOLDER: /tmp/RHTMP/logs_1687889905225.log ***
/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/publish_server/publish_server.js
/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static
(node:9417) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
IpcRenderer calling from [
'background-response',
{
key: 'PROJECT_DATA',
value: ProjectModel {
title: 'PDFProject',
parentid: '',
id: 'fafd95b2-aec1-44d2-8061-c94a39e0f843',
version: '2020.7.0',
language: 'en_US',
noInlineStyle: false,
hideBookmarks: false,
advancedHtmlHelpOptions: false,
defaultCss: 'contents/assets/css/default.css',
defaultWsf: 'settings/import/word/default.wsf',
defaultFsf: 'settings/import/fm/default.fsf',
layoutsFolder: '',
colors: [],
content: [Object],
conditional: [Object],
variable: [Object],
tocs: [Object],
glossary: [Object],
index: [Object],
seealso: [Object],
folders: [Object],
snippets: [Object],
microcontent: [Object],
versionControl: false,
map: [Object],
_topicStatuses: undefined,
_conditionTagCategories: undefined,
links: [],
repository: undefined,
scripts: {},
panelShowHide: [Object],
trackChanges: false
}
}
]
[
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/eBook.preset',
name: 'eBook',
type: 'epub',
index: 0
},
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/Frameless.preset',
name: 'Frameless',
type: 'frameless',
index: 1
},
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/Knowledge Base.preset',
name: 'Knowledge Base',
type: 'kb',
index: 2
},
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/Microcontent.preset',
name: 'Microcontent',
type: 'caas',
index: 3
},
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/PDF with Post-Generation Workflow.preset',
name: 'PDF with Post-Generation Workflow',
type: 'pdf',
index: 4
},
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/PDF.preset',
name: 'PDF',
type: 'pdf',
index: 5
},
{
file: '/mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/presets/Word Document.preset',
name: 'Word Document',
type: 'word',
index: 6
}
]
console.log Output generation starting....
{
PATH: '/usr/java/latest/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/crx/.local/bin:/home/crx/bin',
HISTCONTROL: 'ignoredups',
HISTSIZE: '1000',
JAVA_HOME: '/usr/java/jdk-11.0.5',
LANG: 'en_US.UTF-8',
XDG_SESSION_ID: 'c2',
MAIL: '/var/spool/mail/crx',
TMOUT: '600',
LD_LIBRARY_PATH: ':/usr/java/jdk-11.0.5/jre/lib/server:/usr/java/jdk-11.0.5/lib/server:/usr/java/jdk-11.0.5/lib/amd64/server:/usr/java/jdk-11.0.5/lib/i386/server',
LC_COLLATE: 'C',
LOGNAME: 'crx',
PWD: '/mnt/crx/author',
HISTTIMEFORMAT: '%F %T ',
_: '/bin/setsid',
LANGUAGE: 'en_US.UTF-8',
Path: ':/usr/java/jdk-11.0.5/jre/bin/server:/usr/java/jdk-11.0.5/bin/server:/usr/java/jdk-11.0.5/bin',
LESSOPEN: '||/usr/bin/lesspipe.sh %s',
SHELL: '/bin/bash',
OLDPWD: '/home/crx',
USER: 'crx',
HOSTNAME: 'mayo-test03-author1useast1',
LC_CTYPE: 'en_US.UTF-8',
XDG_RUNTIME_DIR: '/run/user/1005',
HOME: '/home/crx',
SHLVL: '1'
}
[
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/node_modules/java/commons-lang3-node-java.jar',
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/node_modules/java/src-java',
pushDir: [Function (anonymous)]
]
[
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/node_modules/java/commons-lang3-node-java.jar',
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/node_modules/java/src-java',
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/java-npm/commons-lang3-node-java.jar',
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/java-npm/src-java',
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/pdf/pdfReactor.jar',
'/mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/pdf/pdfreactor.jar',
pushDir: [Function (anonymous)]
]
console.log Java found
generate.message [ 'Calculating topics list', '' ]
PROCESSING: title
PROCESSING: topicref
PROCESSING: topicref
PROCESSING: topicref
13:18:26.100
[Topic patching] Chunk 0 of size 2 with /mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/templates/Basic/Common.plt -> 1687889906100

console.log Updating {topicRelPath}...
generate.message [ 'Patching topic', 'Common.plt' ]
console.log Updating {topicRelPath}...
generate.message [ 'Patching topic', 'TOC.plt' ]
2023-06-27T18:18:26.400Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/Common.plt
2023-06-27T18:18:26.419Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/TOC.plt
2023-06-27T18:18:26.425Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/Common.plt
2023-06-27T18:18:26.425Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/TOC.plt
generate.message [ 'Patching header and footer', '' ]
2023-06-27T18:18:26.479Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/__hf_css_file.css
2023-06-27T18:18:26.480Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/__hf_css_file.css
2023-06-27T18:18:26.494Z copy /mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/frameless/css/topic.min.css /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/_rhdefault.css
generate.message [ 'Copying asset files', '' ]
2023-06-27T18:18:26.497Z copy result /mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/frameless/css/topic.min.css /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/_rhdefault.css null
2023-06-27T18:18:26.498Z copy /mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/pdf/toc.js /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/toc.js
2023-06-27T18:18:26.498Z copy /mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/templates/Basic/pdf.tpl /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/pdf.tpl
2023-06-27T18:18:26.505Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/layout.css
2023-06-27T18:18:26.519Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/content.css
2023-06-27T18:18:26.564Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/__defaultMerged.css
2023-06-27T18:18:26.566Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/layout.css
2023-06-27T18:18:26.566Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/content.css
2023-06-27T18:18:26.568Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/__defaultMerged.css
2023-06-27T18:18:26.568Z copy result /mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/PDFProject/publish/templates/Basic/pdf.tpl /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/publish/templates/Basic/pdf.tpl null
2023-06-27T18:18:26.570Z copy result /mnt/crx/author/crx-quickstart/profiles/nodejs--b1aad0a7-9079-e56c-1ed8-6fcababe8166/build/static/pdf/toc.js /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/toc.js null
generate.message [ 'Indexing references', '' ]
2023-06-27T18:18:26.573Z Saving file /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/mergedHTML.htm
2023-06-27T18:18:26.574Z Write complete /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/mergedHTML.htm
generate.message [ 'Applying PDF settings', '' ]
generate.message [ 'Transforming into PDF pages...', '' ]
2023-06-27T18:18:39.638Z copy /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/chart_review_qrg_PDF with Post-Generation Workflow.pdf /mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/build-chart_review_qrg/chart_review_qrg_PDF with Post-Generation Workflow.pdf
2023-06-27T18:18:39.640Z copy result /tmp/RHTMP/PDF with Post-Generation WorkflowsI2GaJ/chart_review_qrg_PDF with Post-Generation Workflow.pdf /mnt/crx/author/crx-quickstart/profiles/ditamaps/ditamap2473841374073312696/build-chart_review_qrg/chart_review_qrg_PDF with Post-Generation Workflow.pdf null
console.log Output generation successful.
console.log Compilation complete.
Done

 


Publish process completed in 72,302ms

 

Avatar

Level 1

Error log (\crx-quickstart\logs) attached. Thanks!

Avatar

Correct answer by
Community Advisor

The error log shows that the issue is related to this path:
"/content/dam/fmdita-outputs/pdfs/chart_review_qrg-ditamap/jcr:content" which does not exist:

Esteban666_0-1687894633024.png

Please review the logs for more details

 



Esteban Bustamante

Avatar

Level 1

Thank you! That gave me enough to go on.

When I created a PDF output preset for chart_review_qrg.ditamap, AEM created a path in CRXDE named "/content/dam/fmdita-outputs/pdfs/chart_review_qrg-ditamap.pdf/jcr:content". However, the script to extract the metadata is trying to use the path "/content/dam/fmdita-outputs/pdfs/chart_review_qrg-ditamap/jcr:content". (The script in question is in the package downloaded from the Adobe web page mentioned in the original post.)

 

There is a mismatch between the two paths. Therefore, when the script attempts to set the target path in line 31, it is setting the target path to a non-existent node and then cannot write the metadata to the "/jcr:content/metadata" node.

 

I edited line #31 of the script sample-dita-metadata-extract.ecma to read as follows: var targetNode = session.getItem(generatedPath);. This eliminated the issue of the missing ".pdf" in the path name of the node.

 

The workflow was then able to complete successfully with no errors.