indice-co / indice-co/EDI.Net

x12 ISA grammar.ComponentDataElementSeparator not serializing

Open
#185 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
490
Forks
173
PR merge metrics
No merged PRs in 30d

Description

When serializing an x12

The ISA should be termibnated with a > char

grammar.ComponentDataElementSeparator = '>'

However it is omitted:

`ISA*00* *00* *ZZ*DEF *ZZ*ABC *210303*0952*U*00400*000000013*0*T~`

It should be:

`ISA*00* *00* *ZZ*DEF *ZZ*ABC *210303*0952*U*00400*000000013*0*T*>~`

e.g.

Use the PurcahseOrder_850 from the samples

Serialize using:

using (var sw = new StringWriter())
{
using (var ediWriter = new EdiTextWriter(sw, EdiGrammar.NewX12()))
{
var s = new EdiSerializer();

s.Serialize(ediWriter, item);
}

var res = sw.ToString();


return res ;
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the PurchaseOrder_850 sample and reproduce serialization using EdiTextWriter, EdiGrammar.NewX12(), and EdiSerializer as shown. Compare the generated ISA output with the expected separator-bearing form; done means the component data element separator is serialized in that output.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.