talendtalend-mdm

'message cannot be resolved or is not a field' error in tMomOutput of Talend ESB


I'm using tMomOutput component of Talend ESB open studio to insert a XML message into Apache Active MQ.

  1. Using XMLMap component to Create XML document.
  2. Using tConvertType component to convert the XML document to string.
  3. Using tMomOutput component to send the string message from tConvertType to Active MQ queue.

It's giving me the following compiling error at tMomOutput component.

org.talend.designer.runprocess.ProcessorException: Job compile errors At least job "MQJobDemo" has a compile errors, please fix and export again. Error Line: 1238 Detail Message: message cannot be resolved or is not a field


Solution

  • As per your scenario, it's giving you the error as you're not mapping any field to tMOMOutput from the input component. Put tMap between tConvertType and tMomOutput.

    You can also do it other way, add tMap component, while mapping the XML document to tMomOuput take the output side variable as string. Then you won't have to use the tConvertType exclusively.