Posted: Sat Oct 03, 2015 5:34 pm Post subject: Display message tree in user tarce
Knight
Joined: 25 Aug 2006 Posts: 589
I am using IIB V10. I have a esql function called from a map to get the value of a field. But it keep giving me a null value. I was hoping that I can use debug to set a break point just before the calling of the esql function so that I can examine the message tree passed to the esql function to determine why the field is Null. But I was told that I can not set break point inside a V10 map. I thought it was possible to do it in V7. Let me know if I can do it in V10.
Anyway I tried to use user user trace to debug. However I was wondering how I can display the message tree in the user trace. If it is not in the middle of a mapping node, I can insert a trace node and have the output send to the user trace. Is there any esql statement I can insert inside the esql function so that I can display the message treee in the user trace ?
But I was told that I can not set break point inside a V10 map. I thought it was possible to do it in V7. Let me know if I can do it in V10.
It was possible in a v7 map because the map was compiled into ESQL in v7. It's not possible in a v8/v9/v10 map.
However, you're lucky because the function that is malfunctioning ( so to speak ) is an ESQL function. So you should be able to find out why the ESQL function is returning NULL. Take a debug-level user trace, and look for the name of the function. User trace is usually *very* chatty about ESQL execution.
Alternatively, use XPath facilities to replace the ESQL function if possible. You may find that the bug disappears when you re-implement in XPath.
If all else fails, describe what the map/function are doing and see whether anyone on the forum can spot the mistake.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum