System.InvalidOperationException: JSReport render failed. Status: 400. Response: {"message":"Error when evaluating engine handlebars for template /ShivGanga/Inspection/monthly vehicle & equipment checklist/monthly vehicle & equipment checklist\n(because) missing helper: \"addOne\"\n\n(sandbox.js line 40:18)","stack":"Error: Missing helper: \"addOne\"\n  at Object.<anonymous> (/app/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js:19:13)\n  at Object.wrapper (/app/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)\n  at 0 (eval at <anonymous> (eval at makeEvaluate (/app/node_modules/@jsreport/ses/index.js:8504:27)), <anonymous>:12:102)\n  at prog (/app/node_modules/handlebars/dist/cjs/handlebars/runtime.js:267:12)\n  at execIteration (/app/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:51:19)\n  at Object.<anonymous> (/app/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:61:13)\n  at Object.wrapper (/app/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)\n  at Object.main (eval at <anonymous> (eval at makeEvaluate (/app/node_modules/@jsreport/ses/index.js:8504:27)), <anonymous>:47:49)\n  at main (/app/node_modules/handlebars/dist/cjs/handlebars/runtime.js:206:32)\n  at ret (/app/node_modules/handlebars/dist/cjs/handlebars/runtime.js:210:12)\n  at Object.execute (/app/node_modules/@jsreport/jsreport-handlebars/lib/handlebarsEngine.js:80:14)\n  at Object.execute (/app/node_modules/@jsreport/jsreport-handlebars/lib/worker.js:27:43)\n  at executionFn (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/executeEngine.js:273:42)\n  at eval (sandbox.js:40:18)\n  at async run (/app/node_modules/@jsreport/jsreport-core/lib/worker/sandbox/createSandbox.js:135:18)\n  at async WorkerReporter.runInSandbox [as _runInSandbox] (/app/node_modules/@jsreport/jsreport-core/lib/worker/sandbox/runInSandbox.js:214:14)\nwrapped by:\nError: Error when evaluating engine handlebars for template /ShivGanga/Inspection/monthly vehicle & equipment checklist/monthly vehicle & equipment checklist\n(because) missing helper: \"addOne\"\n  at module.exports (/app/node_modules/@jsreport/jsreport-core/lib/shared/createError.js:10:13)\n  at WorkerReporter.createError (/app/node_modules/@jsreport/jsreport-core/lib/shared/reporter.js:53:12)\n  at executeEngine (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/executeEngine.js:377:35)\n  at async engine.engine (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/executeEngine.js:162:14)\n  at async invokeRender (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:61:23)\n  at async WorkerReporter._render (/app/node_modules/@jsreport/jsreport-core/lib/worker/render/render.js:148:7)\n  at async /app/node_modules/@jsreport/jsreport-core/lib/worker/reporter.js:234:24\n  at async processAndResponse (/app/node_modules/@jsreport/advanced-workers/lib/workerHandler.js:42:17)"}
   at IncidentReporter.API.Helpers.JsReportUtils.<RenderPdfAsync>d__0.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\JsReportUtils.cs:line 77
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.InspectionV2Bll.<ExportInspectionV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 895


System.IO.FileNotFoundException: Could not find file 'D:\App-Data\iis\api.incidentreporter365.com\Templates\ExportInspectionV2PDFTemplate.html'.
File name: 'D:\App-Data\iis\api.incidentreporter365.com\Templates\ExportInspectionV2PDFTemplate.html'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at InspectionV2PDFHelper.<ExportInspectionV2PDFAsync>d__1.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\InspectionV2PDFHelper.cs:line 82
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.InspectionV2Bll.<ExportInspectionV2PDFAsync>d__8.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionV2Bll.cs:line 914


Request URL : https://api-sandbox.oqsha.com/Organisations/211/PermitToWork/All


Request URL : https://api-sandbox.oqsha.com/Organisations/262/InspectionV2/45/Export