Use of EdiFabric.Core Class "B2" missing X12
We are brand new to this tool and EDI format in general.
We followed the "How to create a project for my EDI templates ?" How-to but the X12 templates included with the purchase are referencing many classes that are not in EdiFabric.Core.Model.Edi.X12 Specifically EF_X12_006030_TS204.cs, EF_X12_006030_TS214.cs and EF_X12_006030_TS220.cs templates.
The how to makes it seem like the classes should all be in the Edi.Core.dll, we even tried adding Edi.Framework.dll but it does not contain the missing classes either.
Are we missing something that clearly isn't in the How-to?
Are we supposed to create our own classes?
We are only trying to follow the how-to, haven't even customized anything yet :)
Any insight would be very much appreciated
Thanks for your time.
The How to articles lists 3 steps:
1. Create a new project
2. Install EdiFabric.Core (if trial version) or EdiFabric.Core.Full (if full version)
3. Add existing file(s) from the collection of EDI templates.
This will be your template project.
Then to use do:
1. In your executable application, add reference to the newly created templates project (see above).
2. Install EdiFabric.Framework (if trial version) or EdiFabric.Framework.Full (if full version)
3. Follow the snippets to read EDI files or write EDI files.
Hope this helps.
BTW, you can raise all your incidents here, so we can keep track in one place.
Hello, Thank you for the prompt response. We actually did have this set up in this manner.
We were able to solve the issue by including a reference to this dll (EdiFabric.Rules.X12004010) which was available in NuGet packages in Visual Studio. It wasn't a matter of the template not loading correctly, it was the fact that EdiFabric.Core.dll didn't include the classes needed for all of the templates (about half of the classes needed for these templates are there).
We have a paid version of EdiFabric and the dlls included in the full version did not include dlls with ".full" in the name.
If there is ".full.dll" version we would love to know where to find them as we have paid for this program.
EdiFabric.Core.dll does not contain any templates at all. I'm a bit confused to hear that you found half of the templates there. Please double check because EdiFabric.Core contains shared classes for the framework only and classes for all headers and trailers, ISA, GS, etc.
The DLLs you had downloaded from the purchase link are the unlocked ones. I believe I mentioned Full versions in relation to the NuGet packages and not the DLLs. We recommend using the NuGet packages (containing.Full in their names) as opposed to DLLs.
You should not use EdiFabric.Rules.X12004010 because it is a trial package, does not support validation and will expire at some point.
I didn't find the templates there, I found the classes needed for the template to load properly here as they are missing from the EdiFabric.Core.dll we had downloaded with our purchase. Could it be that the templates are missing a using directive needed to load the trailer classes ("B2", "B2A", "C3", etc.) Shown below:
The template I am using here is EF_X12_006030_TS204.cs
The only modification I made to this file was the namespace it was under as it would need to be in the namespace of the project I had created and the commented out line shown in the top picture(commented out so you could see the errors from the missing classes that the template references).
If there is a full .dll we did not get it from our purchase, is there a certain place were were supposed to get it as we downloaded all shown below our order number is whited out as I don't feel comfortable showing it in a public forum.
I understand now, it's missing references to the segments.
Together with the transaction templates, please add the following files to your templates project as well:
These hold all the segments, complex data elements and EDI codes and there is a set of these for each version.
We'll be updating the documentation next week, apologies for the confusion.
This worked perfectly, I no longer need that extra reference.
Thank you very much :)
Have a wonderful rest of your day.
Please sign in to leave a comment.