Hello, I am trying to execute calculateTax on user...
# suitescript
k
Hello, I am trying to execute calculateTax on user event script but I am getting this error. Does anyone know how to resolve this?
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "JS_EXCEPTION",
  "message": "Error: Static Context is not initialized",
  "stack": [
    "Error\n at RecordInvoker.invokeMacro (suitescript/resources/javascript/record/serverRecordService.js:234:60)\n at NetSuiteObject.executeMacro (suitescript/resources/javascript/record/proxy.js:115:24)\n at Object.onRequest (/SuiteScripts/KD_SCA_TriggerTaxReCalc.js:18:16)"
  ],
  "cause": {
    "type": "internal error",
    "code": "JS_EXCEPTION",
    "details": "Error: Static Context is not initialized",
    "userEvent": null,
    "stackTrace": [
      "Error\n at RecordInvoker.invokeMacro (suitescript/resources/javascript/record/serverRecordService.js:234:60)\n at NetSuiteObject.executeMacro (suitescript/resources/javascript/record/proxy.js:115:24)\n at Object.onRequest (/SuiteScripts/KD_SCA_TriggerTaxReCalc.js:18:16)"
    ],
    "notifyOff": false
  },
  "id": "",
  "notifyOff": false,
  "userFacing": true
}