Hi !
Sorry for the delay in getting back to you. Rob…
Looks like path(a) is the way to go for us. And we are doing FA for a limited set of document types and our output is going to be a particular version of FA (4010, 3010 or 3020) based on partner profile in TN.
I acquired a few sample mapping rules for the 4010 version of the FA document. The rules for mapping AK3 and AK4 Segments are confusing me a lot though.
It says in there…
AK301 = Code defining the data segment in error.
Comments: This can be found out using substring over the errorpath element in the error record list returned by the validate function.
AK302 = The numerical count position of this data segment from the start of the transaction set, the transaction set header is count position 1.
Comments: ??? How do I find out this numerical count position of a particular data segment from the start of transaction set. I am just not able to figure this out 
The other 2 should be OK as follows
AK303 = Loop Identifier Code
Comments: Will push in the $iteration variable.
AK304 = Segment Syntax Error Code.
Comments : FOR THIS… I might probably use a lookupTable transformer to convert the standard set of errors to an error code. (OR IS THERE ANY BETTER WAY?)
Similarly there is confusion regarding creating the AK4 Elements… 
I am really groping in the dark here… would greatly appreciate your help…
Thanks in Advance…
Mark IV
#Integration-Server-and-ESB#edi#webMethods