Out of boundry Exception when process rule call generateFA.

Out of boundry Exception when process rule call generateFA.
my 850 is like this:

ISA00 00 01123456789 01987654321 0509051804U004000000000020T@
GSPO003897733111011199920050905180429957X004010
ST8500001
BEG00SA4560006385**20050905
CUR
BYUSD
TAX
1-00-123456-6
FOBDFORDallas, TX 7520102DDP
ITD
01ZZ45NET 45 - Payment due 45 days from Document Date
TD5
ZShip via Airborne
N9
L1**See following text
MSG
Please confirm price if not correct
N9
L1**See following text
MSG
Thanks, James 800-123-4567
N1SEAtomic Computer Corporation.921791073
N1BTNativeCode, Inc92ACAP
N2Accounts Payable
N3
3933 Oak Grove Drive
N4FairfaxVA22030US
N1BYNativeCode, Inc92ACCC
PERBDJames Munson
N1STNativeCode, Inc920000002924
N2Receiving Dock
N3
3933 Oak Grove Drive
N4FairfaxVA22030US
PO1000110EA249.95CTBP123456-123ECAMVP123456
PID
FAC-2903 19" Flat Screen Color Monitor
SCH
10
EA
00220050926
PO1000250EA14.27CTBP8976-123ECAMVP8976
PID
FAC-790 3 Button Mouse
SCH
50
EA
01020050915
CTT2
SE
300001
ST
8500002
BEG
00SA456000638620050905
CURBYUSD
TAX1-00-123456-6
FOB
DFORDallas, TX 7520102DDP
ITD01ZZ
45NET 45 - Payment due 45 days from Document Date
TD5Z**Ship via Airborne
N9
L1
See following text
MSGPlease confirm price if not correct
N9
L1See following text
MSGThanks, Bill 800-123-4567
N1
SEAtomic Computer Corporation.921791073
N1
BTNativeCode, Inc92ACAP
N2
Accounts Payable
N33933 Oak Grove Drive
N4
FairfaxVA22030US
N1
BYNativeCode, Inc92ACCC
PER
BDBill Wilson
N1
STNativeCode, Inc920000002924
N2
Receiving Dock
N33933 Oak Grove Drive
N4
FairfaxVA22030US
PO1
000120EA89.95CTBP456-123ECAMVP456
PIDFAC-706 Cable Modem
SCH
20
EA
00220050921
PO1
000217EA1894.22CTBP82122-123ECAMVP82122
PIDFAC-9124 Laptop Computer
SCH
17
EA
01020050918
CTT
2
SE300002
GE229957
IEA1000000002

when I put this into TN, TN can recongize 850 and envelop and group. but when my process rule call generateFA. it kept through Out of boundry Exception.
please help me. this one already bothering me for few days. please help

actually that is my source EDI document has problem. new problem is my TN can not recognize 997 file.

For TN to recognize 997 file you neek to install 997 to TN by using Install TN documents from admin page.Then the 997 edi schema will be save in the WmEDIforTN package.We need to give this schema as an input to generateFA service.

thank you, finially I solved this problem. Thank you.