I am exporting Invoices (Saved Search Main Line = FALSE, grouped rows = TRUE) to an FTP as EDI 810 (x12).
I have set up the FTP with EDI file definition, and parser correctly (I replaced the default mapping for all the transaction level segments BIG, N1, ITD etc. But kept the mapping for envelope level data same e.g. ISA, GS, ST etc.). I have set the max occurrences of Transaction in a GS to 1 (it was 1000 by default) since I want 1 transaction per envelope.
When I try to sync multiple file with NS Export Page Size = 1, it creates two files in the FTP. But when keep the NS Export Page Size to default, I get the following error:
Message:
Mandatory loop N1 is missing
Code: mandatory_loop_absent
Source: Resource
Timestamp: 2025-05-13T22:28:32.016Z
Error ID: 1369237714
Trace key : 621523
When I tried to create a sample output in the EDI generator, it worked fine.
I tried to change the EDI Generator sample input; instead of input being a record JSON object, I changed it to a array with two JSON object (corresponding to 2 JSON records). When I previewed with this sample input, I got the same missing N1 loop error as I posted above
There must be a way to export a batch of records/multiple records in a single page (where page size > 1) and import them to an FTP as EDI files where 1 EDI file correspond to 1 record from the export step. E.g. If we export 4 invoices, we should be able to create 4 EDI files and each file has 1 envelope (1 ISA), 1 group (1 GS) and 1 transaction (1 ST set). Can anyone help me with this?
Setting the page size to 1 really makes it a cake walk but for a large volume this is not practical. There has to be a way to do this without setting the page size in the NS export to 1