Announcement

Collapse
No announcement yet.

I am trying to lookup to database to look for ID getting TypeError

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I am trying to lookup to database to look for ID getting TypeError

    CHANNEL: PROD_OUTBOUND_NeP_RimaRadORU_TO_NOVA715
    CONNECTOR: sourceConnector
    SCRIPT SOURCE: TRANSFORMER
    SOURCE CODE:
    26: msg = new XML(connectorMessage.getTransformedData());
    27: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
    28: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
    29:
    30:
    31: msg['OBR']['OBR.32']['OBR.32.1'] = validate($g('Rad_ids')[msg['OBR']['OBR.32']['OBR.32.1'].toString()], '', new Array());
    32: msg['OBR']['OBR.33']['OBR.33.1'] = validate($g('Rad_ids')[msg['OBR']['OBR.33']['OBR.33.1'].toString()], '', new Array());
    33: if ('xml' === typeof msg && msg.hasSimpleContent()) { msg = msg.toXMLString(); }if ('xml' === typeof tmp && tmp.hasSimpleContent()) { tmp = tmp.toXMLString(); }
    34: }
    35: if (doFilter() == true) { doTransform(); return true; } else { return false; }
    LINE NUMBER: 31
    DETAILS: TypeError: Cannot read property "177" from null


    I appreciat of any help. My script used to work but stopped all of the sudden and I have not changed the code.

    Any idea?
    Last edited by Hengameh; 07-17-2015, 12:08 PM.
Working...
X