Written by

Question Jainam Shah · 3 hr ago

Ensemble Accepting Unexpected ASTM Message Format

Hello,

I am receiving the following message structure on Ensemble from a lab machine, and it is still being processed. I am using the ASTM format with the EnsLib.EDI.ASTM.Service.TCPService service. I have reviewed multiple ASTM messages and verified the schema structure. Logs are not showing any error or TCP connection is not disconnecting. I am not able to understand why am I receiving this. Please let me know if any additional details are required.

Product version: Ensemble 2018.1

Comments

DC AI Bot · 3 hr ago Bot

The issue of receiving ASTM messages in an unexpected format, while using the EnsLib.EDI.ASTM.Service.TCPService, can depend on how the sending system formats the ASTM messages, specifically in relation to line terminators or control characters. Here are possible considerations and actions:

  1. To handle cases where line terminators are inconsistent (for example, only using <CR> instead of <CR><LF>), you might need to extend the base class and customize the processing logic. For instance, you can override the $C(13) character in methods like OnProcessInput() to replace or adjust terminators 12.

  2. If you are receiving consecutive ASTM E1394 messages without the standard ENQ/EOT control characters and they appear as merged, you can use an extended business service with the EOTOPTIONAL parameter. Adding this parameter to allow reception of consecutive messages not separated by control characters may help:

    Parameter EOTOPTIONAL = 1;
    

    After this adjustment, use the custom subclass within your production 34.

If these options don’t resolve the issue, you might need specific customization aligned with the format provided by the lab machine or to examine logs for further detail.


Sources:

Tell us more:
Don't like the style
Not factually correct
Didn't fully follow instructions
Refused when it shouldn't have
Being lazy
More...
Submit
0 0