Skip to main content
Question

X12FeatureReader


fmelizard
Contributor
Forum|alt.badge.img+17
FME Hub user daveatsafe just uploaded a new transformer to the FME Hub.

This transformer uses the pyx12 Python module to read X12 formatted data files, like those used for EDI 835 and 837 business data exchange. X12 data is hierarchical, but for easier usage, this transformer will output relational tables that include the links required to establish parent/child relationships. Schema features for the tables will also be output for use with Dynamic writers.

To install the pyx12 library for use with FME, please follow the instructions found here

The max Python version supported by pyx12 is 3.9, but you can make it 3.12 compliant (at least for the purposes of this transformer) after installation, by changing line 308 in C:\Users\<user>\Documents\FME\Plugins\Python\python312\pyx12\x12file.py from:

self.fd_in = open(src_file_obj, 'U', encoding='ascii')

to:

self.fd_in = open(src_file_obj)

Alternatively, you can install Python 3.9, then set FME to use that version using the instructions found here



Would you like to know more? Click here to find out more details!
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings