Hello Team,
We are integrating ITX with ITXA, After translation we are using SPE adapter to add Envelopes and also doing Compliance check(Compliance Check which came with HealthCare pack) in ITXA.
The problem we are facing here is that during Enveloping, we have a Valid Transaction and also Invalid Transaction .We need to add envelope with Control Number to the valid Transaction set and invalid Transaction will be sent back to the source application.
But SPE Enveloping service is not adding a control number in a sequential order to the valid Transaction but always creating a control number as "00000001" to the ISA and GS Level. Is there any way to bypass this step and provide a Sequential control number to the Valid Transaction.
From SPE_Response file we could see following error:-
"Resource PrimaryDocument:
One or more transactions in [TRANS-1-2000_DOC-1_GROUP-1] are non-compliant.
Enveloping failed. No valid documents were found to envelope.
HIPAA compliance errors found on 1 document."
This happens only when the file is having both Valid and Invalid Transaction in it. If the file has only Valid Transaction we are getting control Number in Sequential order.
------------------------------
Thanks in advance.
------------------------------