Getting a schema to parse correctly when Optional lines are missin
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Getting a schema to parse correctly when Optional lines are missin




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Getting a schema to parse correctly when Optional lines are missin  
Klundell


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-27-06 10:51 PM

I have a flat file schema I am using to parse a message. The message has fro
m
6 to 10 segments or lines in any give message. When some of the segments or
lines are not there the schema is not parsing correctly It will move the
segments or lines up in the Schema. For example give the following message
where each line is seperated by a carriage return -
MSH|data|data|data|data|data|data
EVN|data|data|data|data|data|data
PID|data|data|data|data|data|data
PV1|data|data|data|data|data|data
DG1|data|data|data|data|data|data  (Optional segment)
IN1|data|data|data|data|data|data   (Optional segment)

If the DG1 segment is not in the message but the IN1 segment is  the parser
will move the In1 segment up to the DG1 space in the schema rather that
leaving the DG1 empty and keeping the In1 segment in the IN1 slot.
I have tried putting a tag on the properties for the segments but that does
not help.

The schema is too big to include but I can E-Mail if needed.The last 6
segments are optional and may not be in the message.  How do I get the schem
a
to parse correctly when optional segments are missing ?

Thanks in advance.
Kris.






[ Post a follow-up to this message ]



    RE: Getting a schema to parse correctly when Optional lines are missin  
MaurĂ­cio Ritter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-28-06 12:49 PM

Hi Kludell,

Have you tried to create two types of records, one with the optional
segments and one withour it ? You can use a tag identifier to locate them if
its possible.

--
MaurĂ_cio Ritter
http://www.dotnetmaniacs.com.br


"Klundell" wrote:

> I have a flat file schema I am using to parse a message. The message has f
rom
> 6 to 10 segments or lines in any give message. When some of the segments o
r
> lines are not there the schema is not parsing correctly It will move the
> segments or lines up in the Schema. For example give the following message
> where each line is seperated by a carriage return -
> MSH|data|data|data|data|data|data
> EVN|data|data|data|data|data|data
> PID|data|data|data|data|data|data
> PV1|data|data|data|data|data|data
> DG1|data|data|data|data|data|data  (Optional segment)
> IN1|data|data|data|data|data|data   (Optional segment)
>
> If the DG1 segment is not in the message but the IN1 segment is  the parse
r
> will move the In1 segment up to the DG1 space in the schema rather that
> leaving the DG1 empty and keeping the In1 segment in the IN1 slot.
> I have tried putting a tag on the properties for the segments but that doe
s
> not help.
>
> The schema is too big to include but I can E-Mail if needed.The last 6
> segments are optional and may not be in the message.  How do I get the sch
ema
> to parse correctly when optional segments are missing ?
>
> Thanks in advance.
> Kris.
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:14 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register