I have deployed it to azure through CI/CD and runned it through commandline
Posts made by Arpit Sancheti
-
RE: Js report not working in production mode
-
Js report not working in production mode
I have created a jsreport on local and has published it to azure web services, but my templated are not visible there. They are working fine in local but not on production. JSReport studio is empty.
And while running from API, it gives errorUnable to find specified template or user doesnt have permissions to read it: H1x3PKV8kS Error: Unable to find specified template or user doesnt have permissions to read it: H1x3PKV8kS at module.exports (/node_modules/jsreport/node_modules/jsreport-core/lib/util/createError.js:11:13) at Reporter.createError (/node_modules/jsreport/node_modules/jsreport-core/lib/reporter.js:265:12) at AsyncFunction. (/node_modules/jsreport/node_modules/jsreport-templates/lib/templates.js:134:20)
This template is present in the code and is working fine in local
-
xlsxReplace Dynamic
I am trying to make a function dynamic, but get different error in different trial. Following is the line which I am trying to make dynamic.
{{#xlsxReplace "xl/worksheets/sheet1.xml" "getXML(2, 10)"}}
But I get this error when I try to use it.
Error while executing templating engine. Unexpected token }.
107 | function evalGet (obj, path) {
108 | var fn = 'return obj' + (path[0] !== '[' && path[0] !== '.' ? '.' : '') + path
109 | return new Function('obj', fn)(obj)
| ^
110 | }
111 |
112 | function evalSet (obj, path, val) {
SyntaxError: Unexpected token }
at new Function (<anonymous>)
at evalGet (evaluate-template-engine-helpers.js:109:12)
at Object.replace (evaluate-template-engine-helpers.js:123:20)
at Object.<anonymous> (evaluate-template-engine-helpers.js:429:17)
at eval (eval at createFunctionContext (D:\graniteshares\jsreportapp\node_modules\handlebars\dist\cjs\handlebars\compiler\javascript-compiler.js:257:23), <anonymous>:5:102)