com.mirth.connect.server.MirthJavascriptTransformerException

CHANNEL: test setup CONNECTOR: sourceConnector SCRIPT SOURCE: TRANSFORMER SOURCE CODE: 46: //createSegment('OBX', tmp, 1); 47: //tmp['OBX'][1]['OBX.1']['OBX.1.1'] = 1; 48: //tmp['OBX'][1]['OBX.2']['OBX.2.1'] = "ST"; 49: createSegment('OBX', tmp, 2); 50: tmp['OBX'][2]['OBX.1']['OBX.1.1'] = 2; 51: tmp['OBX'][2]['OBX.2']['OBX.2.1'] = "ST"; 52: LINE NUMBER: 50 DETAILS: TypeError: Cannot read property "OBX.1" from undefined at 682bcffd-73bf-405b-af83-ba83b19d86ab:50 (doTransform) at 682bcffd-73bf-405b-af83-ba83b19d86ab:126 (doScript) at 682bcffd-73bf-405b-af83-ba83b19d86ab:128

Solutions on the web15

  • ', tmp, 2); 50: tmp['OBX'][2]['OBX.1']['OBX.1.1'] = 2; 51: tmp['OBX'][2]['OBX.2']['OBX.2.1'] = "ST"; 52: LINE NUMBER: 50 DETAILS: TypeError: Cannot read property "OBX.1" from undefined at 682bcffd-73bf-405b-af83-ba83b19d86ab:50 (doTransform) at 682bcffd-73bf-405b-af83-ba83b19d86ab:126 (doScript) at 682bcffd-73bf-405b-af83-ba83b19d86ab:128
  • CHANNEL: WsToHttpTest CONNECTOR: sourceConnector SCRIPT SOURCE: TRANSFORMER LINE NUMBER: 31 DETAILS: TypeError: Cannot set property "1" of undefined to "" at f4645dbe-9637-415e-ae39-f3dce72d6eaa:31 (createSegment) at f4645dbe
  • via Mirth Project by Eric Butterfield, 9 months ago
    doScript() { 44: msg = JSON.parse(connectorMessage.getResponseTransformedData()); 45: function doTransform() { 46: 47: 48: var mapping; LINE NUMBER: 44 DETAILS: SyntaxError: Unexpected token: o at d89555a6-f1d2-4738-a164-48b213af267f:44 (doScript) at d89555a6-f1d2-4738-a164-48b213af267f:91
  • Stack trace

    • com.mirth.connect.server.MirthJavascriptTransformerException: CHANNEL: test setup CONNECTOR: sourceConnector SCRIPT SOURCE: TRANSFORMER SOURCE CODE: 46: //createSegment('OBX', tmp, 1); 47: //tmp['OBX'][1]['OBX.1']['OBX.1.1'] = 1; 48: //tmp['OBX'][1]['OBX.2']['OBX.2.1'] = "ST"; 49: createSegment('OBX', tmp, 2); 50: tmp['OBX'][2]['OBX.1']['OBX.1.1'] = 2; 51: tmp['OBX'][2]['OBX.2']['OBX.2.1'] = "ST"; 52: LINE NUMBER: 50 DETAILS: TypeError: Cannot read property "OBX.1" from undefined at 682bcffd-73bf-405b-af83-ba83b19d86ab:50 (doTransform) at 682bcffd-73bf-405b-af83-ba83b19d86ab:126 (doScript) at 682bcffd-73bf-405b-af83-ba83b19d86ab:128 at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:154) at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:119) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago