EDI 210 5010

Post author
sonofsomething

We have a customer that requires EDI 210 v5010. Where can I find documentation to load the correct ediFabric libraries to support that EDI format? Also, does ediFabric support reading/writing Shipment detail data or only Invoice data? Where can I find documentation and some examples that will address my questions? I have looked around your site, but I'm not finding what I need. Thank you.

Comments

6 comments

  • Comment author
    Admin

    All supported EDI templates for X12 can be found here.

    EDI 210 v005010 is supported.
    You can use the demo\SDK to evaluate reading\writing - the transaction is included in EdiFabric.Rules.X12005010.dll or EdiFabric.Rules.X12005010.Trial NuGet package.


    The class name is EdiFabric.Rules.X12_005010.TS810
    How to read EDI files (regardless of the type)
    How to write EDI files (regardless of the type)

    0
  • Comment author
    Fidel Gonzalez

    I can't find any EdiFabric.Rules.X12005010 on the demo version

    0
  • Comment author
    Admin

    Hello Fidel,

    I did attach it in the reply to your ticket.

    Best,

    Don

    0
  • Comment author
    Kimo Gao

    Hi I can't find x12 5010 on the demo version too

    0
  • Comment author
    Kimo Gao

    When I run the demo codes and it shows error msg:

    Unsupported transaction: Format X12 Version 005010 Transaction ID 850 

    0
  • Comment author
    Admin
    • Edited

    Hello,

    The demo is based on version 4010 for X12, and for accuracy you'll need to evaluate against this version. To enable parsing for all versions regardless, please change the load factory to this (which will try to parse EDI files according to the 4010 templates and will only work if there is a sufficient overlap):

    static Assembly LoadFactory(MessageContext mc)
    {
    if (mc.Format.Equals("X12", StringComparison.Ordinal))
    {
    if (mc.Version.StartsWith("005010X2", StringComparison.Ordinal))
    return Assembly.Load("EdiFabric.Templates.Hipaa");

    return Assembly.Load("EdiFabric.Templates.X12");
    }

    if (mc.Format.Equals("EDIFACT", StringComparison.Ordinal))
    return Assembly.Load("EdiFabric.Templates.Edifact");

    throw new Exception(string.Format("Transaction not supported:
    Format {0} Version {1} Transaction ID {2} .",
    mc.Format, mc.Version, mc.Name));
    }
    0

Please sign in to leave a comment.