EDI.Net
EDI.Net copied to clipboard
AutoEndSegmentGroups Help
Does anyone have any insight into how to implement AutoEndSegmentGroups? I need to implement this for N1 loops that use N3, N4, and/or PER segments.
As soon as I set that flag to true, everything I had set up ends up breaking. The serializer throws an error :: Unable to deserialize segment BIG. No matching property found on stack. BIG is the first segment after ST and is implemented below
[EdiValue("9(8)", Path = "BIG/0", Format = "yyyyMMdd", Description = "BIG01 - Invoice Issue Date")]
public DateTime? InvoiceIssueDate { get; set; }
[EdiValue("X(22)", Path = "BIG/1", Description = "BIG02 - Invoice Number")]
public string InvoiceNumber { get; set; }
[EdiValue("X(30)", Path = "BIG/4", Description = "BIG05 - Release Number")]
public string ReleaseNumber { get; set; }
[EdiValue("X(2)", Path = "BIG/6", Description = "BIG07 - Transaction Type Code")]
public string TransactionTypeCode { get; set; }
[EdiValue("X(2)", Path = "BIG/7", Description = "BIG08 - Transaction Set Purpose Code")]
public string TransactionSetPurposeCode { get; set; }
Any insight would be appreciated.
The AutoEndSegmentGroups
was introduced in #75 by @dfyx and maybe he could give some pointers.
I suggest should provide with your full models as well as a sample 810 file. The best way to do this is if you make a pull request and add your sample edi & sample models plus one test that fails with the problem you mention.