Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template issue - reuploading of improve template not working #461

Open
rahultalekar opened this issue Apr 30, 2023 · 2 comments
Open

template issue - reuploading of improve template not working #461

rahultalekar opened this issue Apr 30, 2023 · 2 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@rahultalekar
Copy link

Everytime need to create new report which is time consuming.

why updated templated is not working giving below error

Error: Raw tag not in paragraph
pwndoc-backend | at new XTTemplateError (/app/node_modules/docxtemplater/js/errors.js:21:16)
pwndoc-backend | at throwExpandNotFound (/app/node_modules/docxtemplater/js/errors.js:174:13)
pwndoc-backend | at getExpandLimit (/app/node_modules/docxtemplater/js/traits.js:229:7)
pwndoc-backend | at Object.expandToOne (/app/node_modules/docxtemplater/js/traits.js:282:21)
pwndoc-backend | at ImageModule.postparse (/app/node_modules/docxtemplater-image-module-pwndoc/js/index.js:123:27)
pwndoc-backend | at /app/node_modules/docxtemplater/js/parser.js:179:24
pwndoc-backend | at Array.reduce ()
pwndoc-backend | at _postparse (/app/node_modules/docxtemplater/js/parser.js:178:22)
pwndoc-backend | at postparse (/app/node_modules/docxtemplater/js/parser.js:181:20)
pwndoc-backend | at /app/node_modules/docxtemplater/js/modules/expand-pair-trait.js:221:30 {
pwndoc-backend | properties: {
pwndoc-backend | id: 'raw_tag_outerxml_invalid',
pwndoc-backend | explanation: 'The tag "image" is not inside a paragraph',
pwndoc-backend | rootError: Error: No tag "w:t" was found at the left
pwndoc-backend | at new XTTemplateError (/app/node_modules/docxtemplater/js/errors.js:21:16)
pwndoc-backend | at throwXmlTagNotFound (/app/node_modules/docxtemplater/js/errors.js:119:13)
pwndoc-backend | at getLeft (/app/node_modules/docxtemplater/js/doc-utils.js:240:3)
pwndoc-backend | at getExpandLimit (/app/node_modules/docxtemplater/js/traits.js:225:12)
pwndoc-backend | at Object.expandToOne (/app/node_modules/docxtemplater/js/traits.js:282:21)
pwndoc-backend | at ImageModule.postparse (/app/node_modules/docxtemplater-image-module-pwndoc/js/index.js:123:27)
pwndoc-backend | at /app/node_modules/docxtemplater/js/parser.js:179:24
pwndoc-backend | at Array.reduce ()
pwndoc-backend | at _postparse (/app/node_modules/docxtemplater/js/parser.js:178:22)
pwndoc-backend | at postparse (/app/node_modules/docxtemplater/js/parser.js:181:20) {
pwndoc-backend | properties: [Object]
pwndoc-backend | },
pwndoc-backend | xtag: 'image',
pwndoc-backend | offset: 9456,
pwndoc-backend | postparsed: [
pwndoc-backend | [Object], [Object], [Object],
pwndoc-backend | [Object], [Object], [Object],
pwndoc-backend | [Object], [Object], [Object],
pwndoc-backend | [Object], [Object], [Object],
pwndoc-backend | [Object], [Object], [Object],
pwndoc-backend | [Object], [Object], [Object],
pwndoc-backend | [Object], [Object], [Object]
pwndoc-backend | ],
pwndoc-backend | expandTo: 'w:t',
pwndoc-backend | index: 0,
pwndoc-backend | file: 'word/document.xml'
pwndoc-backend | }
pwndoc-backend | }

please anyone help me to resolve this issue

@rahultalekar rahultalekar added the bug Something isn't working label Apr 30, 2023
@rahultalekar
Copy link
Author

anyone respond please

@Zeecka
Copy link
Collaborator

Zeecka commented May 6, 2023

In your error message you got explanation: 'The tag "image" is not inside a paragraph',.
Does it work without the image/imagestag ?
Is your {%image} inside a {-w:p images}{/images} tag ? (see https://pwndoc.github.io/pwndoc/#/docxtemplate?id=html-values-from-text-editors) ?

@Zeecka Zeecka self-assigned this May 8, 2023
@Zeecka Zeecka added the question Further information is requested label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants