2.4

Error Handling for EDIFACT Messages

In NACCS, when an error occurs within a EDIFACT message (other than PADIS EDIFACT format)
sent from a user, an error message will be created using 3 types of EDIFACT message dependingon types of errors. In addition, for a message which is sent in form of multiple-message, error
results will be returned for each stored EDIFACT message.
The following shows EDIFACT error messages output from the NACCS.
Core Processing
SystemMail Server

Processing
RequestMessage(NACCS
EDI Message)

EDIFACT User

[1] CONTRL①CONTRLEDIFACT User

②APERAK[2]
APERAK[3] CUSRES③CUSRESUser System

2.4.1

Common Error

Conversion
Process

EDIFACT
Syntax Error

Processing Result
Notification(NACCS
EDI Message)

Procedure
Error

Procedure Processing System

EDIFACT
Processing
Request Message

NACCS Center Server

CONTRL Message

2.4.1.1

Purpose for use

For "Confirmation of receipt" in response to a receipt confirmation request of a EDIFACT
message sent from user, and notification of syntax errors when there is a syntax error in a
EDIFACT message, CONTRL messages should be used.
[1] Confirmation of receipt: It is up to user's selection whether to use CONTRL messages forconfirmation of receipt, and the message is output only when "1" is specified inthe "Receipt confirmation request" column in UNB segment of an EDIFACT
message.
[2] Notification of error: When there is a syntax error in an EDIFACT message sent from user,
the message will be output regardless of designation set by user (UNB receipt
confirmation request). The following shows major cases of syntax errors:• Error in message format• Error in exchange protocol

Appendix 14-2-47

2.4.1.2 Unit of creation
One CONTRL message is created for one EDIFACT message (one exchange) from user.

2.4.1.3 Segment structure
2.4.1.3.1

When function groups are not used

When function groups (UNG through UNE) are not used in a processing request message
sent from user, Segment Group 1 for CONTRL messages should be used.

2.4.1.3.2 When function groups are used
When function groups (UNG through UNE) are used in a processing request message sentfrom user, Segment Group 3 for CONTRL messages should be used.

2.4.2 APERAK Message
2.4.2.1

Purpose for use

This is used for notification of common error which is output when a processing request
message based on an EDIFACT message sent by user becomes an error before being
processed at the core processing system. The following shows major cases of "common error."• Case where there is no user code.
• Case where the user is unauthorized for this service.

2.4.2.2

Unit of creation

One APERAK is created for one common error created at the core processing system.

2.4.3

CUSRES Message

2.4.3.1

Purpose for use

This is used for notification of procedure error which is output when a processing request
message based on an EDIFACT message sent by user becomes error during process at thecore processing system of the NACCS Center server.

2.4.3.2

Unit of creation

One CUSRES is created for one procedure error created at the core processing system.

Appendix 14-2-48

2.4.4Mapping Table

For CONTRL messages, refer to "Appendix Table 14.2.6 CONTRL Segment Table (with functiongroup)", "Appendix Table 14.2.7 CONTRL Mapping Table (with function group)", "Appendix Table
14.2.8 CONTRL Segment Table (without function group)", "Appendix Table 14.2.9 CONTR
Mapping Table (with function group)."
For APERAK messages, refer to "Appendix Table 14.2.10 APERAK Segment Table" and"Appendix Table 14.2.11 APERAK Mapping Table."
For CUSRES messages, refer to Mapping Tables for each procedure.

2.4.5

Code List

For action codes and syntax error codes used in CONTRL messages, refer to "Appendix Table
14.2.12 CONTRL Error Code."

Appendix 14-2-49

Table 14-2-6 CONTRL Segment Table (with functional group)<CONTRL(Ver2.0)／with functional group>
UN/EDIFACT
S
R
M
1
M
1

NACCS
S
R
M
1
M
1

Segment group 1
Message response
UCM

C
M

9999991

X
X

Segment group 2
Segment error indication
UCS
Data element error indication
UCD

C
M
C

999
1
99

X
X
X

Segment group 3Group response
UCF

C
M

999999
1

C
M

99
1

Functional group response group
User code
Functional group reference
numberSegment group 4
Message response
UCM

C
M

999999
1

C
M

99
1

Message response group
Message reference number
Subset name
Action code

Segment group 5
Segment error indication
UCS

C
M

999
1

C
M

1
1

Segment response group
Segment position in the message
Syntax error code
Syntax error code
Error data element position
Error component data element
position
Number of segments in themessage
Message reference number

Tag
UNH
UCI

Name
Message header
Interchange response

UCD

Data element error indication

C

99

C

1

UNT

Message trailer

M

1

M

1

Appendix 14-2-50

Field name (reference)
Message reference number
Interchange control reference
numberUser code
Action code
Syntax error code
Error segment tag

Table 14-2-7 CONTRL Mapping Table (with functional group)
CONTRL/Ver2.0/with functional group
UNH:MESSAGE HEADERTAG COMP
UNH
0062

S009

0068
S010

NAME
MESSAGE HEADERMESSAGE REFERENCE NUMBER

MESSAGE IDENTIFIER
0065 Message type0052 Message version number
0054 Message release number
0051 Controlling agency
0057 Association assigned code
COMMON ACCESS REFERENCESTATUS OF THE TRANSFER
0070 Sequence of transfers
0073 First and last transfer

UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORM
M T 1
M AT 1
M an..14
M an..13
Message reference
numberM
M an..6
M an..3
M an..3
M an..2
C an..6

M
M an..6
M an..3
M an..3
M an..2
X

C an..35

XC
M n..2
C a1

X
X
X

UNH+0000000000001+CONTRL:2:1:UN'

CONTRL
2
1
UN

Special Notes

UCI:INTERCHANGE RESPONSE
TAG COMP

UCI
0020

S002

S003

NAME

INTERCHANGE RESPONSE
INTERCHANGE CONTROLREFERENCE

Special Notes
UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORM
T
AT
M
1
M
1
M an..14
M an..14
Interchange control
Set the UNB-0020 value of thereference number
processing request message.

INTERCHANGE SENDER
0004 Sender identification

M
M an..35

M
M an..50007 Identification code qualifier
0008 Address for reverse routing

C an..4
C an..14

X
X

INTERCHANGE RECIPIENT
0010 Recipient identification
0007 Identification code qualifier
0014 Address for reverse routing

M
M an..35
C an..4
C an..14

M
M an..5
X
X

User code

Set the UNB S002-0004 value ofthe processing request message.

NACCS[NACCS]

0083

ACTION, CODED

M an..3

M an..3

Action code

0085

SYNTAX ERROR, CODED

C an..3

C an..3

Syntax error code

0013

SERVICE SEGMENT TAG, CODED

C a3

C a3

Error segment tag

S011

DATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
positionC
M n..3

X
X

C n..3X

UCI+NACCS123456789+1ABBC+NACCS+7'

Appendix 14-2-52

---SEGMENT GROUP 3---

C

999999 C

99

UCF:GROUP RESPONSE
TAG COMP

UCF
0048

S006

S007

NAME

GROUP RESPONSE
FUNCTIONAL GROUP REFERENCENUMBER

Special Notes
UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORM
T
AT
M
1
M
1
M an..14
M an..14
Functional group
Set the UNG-0020 value of thereference number
processing request message.

APPLICATION SENDER'S
IDENTIFICATION
0040 Sender identification

M

M

M an..35

M an..50007 Sender identification qualifier

C an..4XAPPLICATION RECIPIENT'S
IDENTIFICATION
0044 Recipient's identification
0007 Recipient's identification qualifierMM

M an..35
C an..4

User code

Set the UNB S006-0040 value ofthe processing request message.

M an..5
X

NACCS[NACCS]

Action code

0083

ACTION, CODED

M an..3

M an..30085

SYNTAX ERROR, CODED

C an..3

X

0013

SERVICE SEGMENT TAG, CODED

C a3

X

S011

DATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
positionC
M n..3

X
X

C n..3X

UCF+NACCS987654321+1ABBC+NACCS+7'

Appendix 14-2-53

---SEGMENT GROUP 4---

C

999999 C

99

UCM:MESSAGE RESPONSE
TAG COMP

UCM
0062

S009

NAME

MESSAGE RESPONSEMESSAGE REFERENCE NUMBER

Special Notes
UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORM
T
AT
M
1
M
1
M an..14
M an..14
Message reference
Set the UNH 0062 value of thenumberprocessing request message.

MESSAGE IDENTIFIER
0065 Message type

M
M an..6

M
M an..6

Subset name0052 Message version number
0054 Message release number

M an..3
M an..3

M an..3
M an..3

D
Message version

0051 Controlling agency
0057 Association assigned code

M an..2
C an..6

M an..2
M an..6

UN
NAC10

0083

ACTION, CODED

M an..3

M an..3

Action code

0085

SYNTAX ERROR, CODED

C an..3

X

0013

SERVICE SEGMENT TAG, CODED

C a3

X

S011

DATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
positionC
M n..3

X
X

C n..3X

UCM+NACCS123456789+VBX110:D:98B:UN:NAC10+4'

Appendix 14-2-54

Set the UNH S009-0065 value ofthe processing request message.
Set the message version
corresponding to the subset.
[NAC10]---SEGMENT GROUP 5---

C

999

C

1

UCS:SEGMENT ERROR INDICATION

009

UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORMT
AT
SEGMENT ERROR INDICATION
M
1
M
1
M n..6
Segment position
SEGMENT POSITION IN MESSAGE M n..60085

SYNTAX ERROR, CODEDTAG COMP

UCS

NAME

C an..3

C an..3

UCS+7'

Appendix 14-2-55

Syntax error code

Special Notes

---SEGMENT GROUP 5---

C

999

C

1

UCD:DATA ELEMENT ERROR INDICATIONTAG COMP

UCD
0085
S011

NAME

DATA ELEMENT ERROR INDICATIONSYNTAX ERROR, CODEDDATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
position

UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORM
T
AT
C
99
C
1
M an..3
M an..3
Syntax error codeM
M n..3M
M n..3

C n..3

C n..3

UCD+12+3:2'

Appendix 14-2-56

Error data element
positionError component data
element position

Special Notes

UNT:MESSAGE TRAILER

UNT
0074

MESSAGE TRAILERNUMBER OF SEGMENTS IN THE
MESSAGE

UN/EDIFACTNACCS Item No.Field name/Setting ValueS FORMA S FORM
T
AT
M
1
M
1
M n..6
M n..6
Number of segments inthe message

0062

MESSAGE REFERENCE NUMBER

M an..14

TAG COMPNAME

M an..13

UNT+7+0000000000001'

CONTRL:SAMPLE MESSAGE
UNH+0000000000001+CONTRL:2:1:UN'
UCI+NACCS123456789+1ABBC+NACCS+7'
UCF+NACCS987654321+1ABBC+NACCS+7'
UCM+NACCS123456789+VBX110:D:98B:UN:NAC10+4'
UCS+7'
UCD+12+3:2'
UNT+7+0000000000001'

Appendix 14-2-57

Message reference
numberSpecial Notes

Table 14-2-8 CONTRL Segment Table (without functional group)<CONTRL(Ver2.0)／without functional group>
UN/EDIFACT
S
R
M
1
M
1

NACCS
S
R
M
1
M
1

Segment group 1
Message response
UCM

C
M

999999
1

C
M

99
1

Message response group
Message reference number
Subset name
Action code
Syntax error code
Error segment tag

Segment group 2
Segment error indication
UCS

C
M

999
1

C
M

1
1

C

99

C

1

Segment response group
Segment position in the message
Syntax error code
Syntax error code
Error data element position
Error component data element
position

Segment group 3Group response
UCF

C
M

9999991

X
X

Segment group 4
Message response
UCM

C
M

9999991

X
X

Segment group 5
Segment error indication
UCS
Data element error indication
UCD
Message trailer
UNT

C
M
C
M

999
1
99
1

X
X
X
M

Tag
UNH
UCI

UCD

Name
Message header
Interchange response

Data element error indication

Appendix 14-2-58

1

Field name (reference)
Message reference number
Interchange control reference
numberUser code
Action code
Syntax error code
Error segment tag

Number of segments in themessage
Message reference number

Table 14-2-9 CONTRL Mapping Table (without functional group)
CONTRL (Ver2.0) / without functional group
UNH:MESSAGE HEADERTAG COMP

UNH
0062

S009

0068
S010

NAME

MESSAGE HEADERMESSAGE REFERENCE NUMBER

MESSAGE IDENTIFIER
0065 Message type0052 Message version number
0054 Message release number
0051 Controlling agency
0057 Association assigned code
COMMON ACCESS REFERENCESTATUS OF THE TRANSFER
0070 Sequence of transfers
0073 First and last transfer

UN/EDIFACT NACCS Item No.Field name/Setting ValueS FORMAT S FORM
AT
M
1
M
1
M an..14
M an..13
Message reference
numberM
M an..6
M an..3
M an..3
M an..2
C an..6

M
M an..6
M an..3
M an..3
M an..2
X

C an..35

XC
M n..2
C a1

X
X
X

UNH+0000000000001+CONTRL:2:1:UN'

Appendix 14-2-59

CONTRL
2
1
UN

Special Notes

UCI:INTERCHANGE RESPONSE
TAG COMP

UCI
0020

S002

S003

NAME

INTERCHANGE RESPONSE
INTERCHANGE CONTROLREFERENCE

Special Notes
UN/EDIFACT NACCS Item No.Field name/Setting ValueS FORMAT S FORM
AT
M
1
M
1
M an..14
M an..14
Interchange control
Set the UNB-0020 value of thereference number
processing request message.

INTERCHANGE SENDER
0004 Sender identification

M
M an..35

M
M an..50007 Identification code qualifier
0008 Address for reverse routing

C an..4
C an..14

X
X

INTERCHANGE RECIPIENT
0010 Recipient identification
0007 Identification code qualifier
0014 Address for reverse routing

M
M an..35
C an..4
C an..14

M
M an..5
XX

1-5

User code

Set the UNB S002-0004 valueof the processing request
message.

NACCS[NACCS]

0083

ACTION, CODED

M an..3

M an..3

Action code

0085

SYNTAX ERROR, CODED

C an..3

C an..3

Syntax error code

0013

SERVICE SEGMENT TAG, CODED

C a3

C a3

Error segment tag

S011

DATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
positionC
M n..3

X
X

C n..3X

UCI+NACCS123456789+1ABBC+NACCS+7'

Appendix 14-2-60

---SEGMENT GROUP 1---

C

999999

C

99

UCM:MESSAGE RESPONSE
TAG COMP

UCM
0062

S009

NAME

MESSAGE RESPONSEMESSAGE REFERENCE NUMBER

Special Notes
UN/EDIFACT NACCS Item No.Field name/Setting ValueS FORMAT S FORM
AT
M
1
M
1
M an..14
M an..14
Message reference
Set the UNH 0062 value of thenumberprocessing request message.

MESSAGE IDENTIFIER
0065 Message type

M
M an..6

M
M an..6

Subset name0052 Message version number
0054 Message release number

M an..3
M an..3

M an..3
M an..3

D
Message version

0051 Controlling agency
0057 Association assigned code

M an..2
C an..6

M an..2
M an..6

UN
NAC10

0083

ACTION, CODED

M an..3

M an..3

Action code

0085

SYNTAX ERROR, CODED

C an..3

C an..3

Syntax error code

0013

SERVICE SEGMENT TAG, CODED

C a3

C a3

Error segment tag

S011

DATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
positionC
M n..3

X
X

C n..3X

UCM+NACCS123456789+VTX110:D:98B:UN:NAC10+4'

Appendix 14-2-61

Set the UNH S009-0065 valueof the processing request
message.
Set the message version
corresponding to the subset.

[NAC10]---SEGMENT GROUP 2---

C

999

C

1

UCS:SEGMENT ERROR INDICATIONUCSSEGMENT ERROR INDICATION

009

SEGMENT POSITION IN

UN/EDIFACT NACCS Item No.Field name/Setting ValueS FORMAT S FORM
AT
M
1
M
1
M n..6
M n..6
Segment position

0085

SYNTAX ERROR, CODED

C an..3

TAG COMPNAME

C an..3

UCS+7'

Appendix 14-2-62

Syntax error code

Special Notes

---SEGMENT GROUP 2---

C

999

C

1

UCD:DATA ELEMENT ERROR INDICATIONTAG COMP

UCD
0085
S011

UN/EDIFACT NACCS Item No.Field name/Setting ValueS FORMAT S FORMATDATA ELEMENT ERROR INDICATION C
99C
1SYNTAX ERROR, CODED
M an..3
M an..3
Syntax error code
NAME

DATA ELEMENT IDENTIFICATION
0098 Erroneous data element position insegment
0104 Erroneous component data element
positionM
M n..3M
M n..3

C n..3

C n..3

UCD+12+3:2'

Appendix 14-2-63

Error data element
positionError component data
element position

Special Notes

UNT:MESSAGE TRAILER

UNT
0074

MESSAGE TRAILERNUMBER OF SEGMENTS IN THE
MESSAGE

UN/EDIFACT NACCS Item No.Field name/Setting ValueS FORMAT S FORM
AT
M
1
M
1
M n..6
M n..6
Number of segments inthe message

0062

MESSAGE REFERENCE NUMBER

M an..14

TAG COMPNAME

M an..13

UNT+6+0000000000001'

CONTRL:SAMPLE MESSAGE
UNH+0000000000001+CONTRL:2:1:UN'
UCI+NACCS123456789+1ABBC+NACCS+7'
UCM+NACCS123456789+VTX110:D:98B:UN:NAC10+4'
UCS+7'
UCD+12+3:2'
UNT+6+0000000000001'

Appendix 14-2-64

Message reference
numberSpecial Notes

Table 14-2-10 APERAK Segment Table
NACCS -> EDIFACT<APERAK(D98B)/Common messages>
Message header
Beginning of message

UN/EDIFACT
S
R
M
1
M
1

NACCS
S
R
M
1
M
1

DTM
FTX

Date/time/period
Free text

C
C

9
9

X
M

CNT

Control total

C

9

X

Segment group 1
Reference
RFF
Date/time/period
DTM

C
M
C

9
1
9

C
M
X

Segment group 2Name and address
NAD
Contact information
CTA
Communication contact
COM

C
M
C
C

9
1
9
9

X
X
X
X

Segment group 3
Application error information
ERC
Free text
FTX

C
M
C

99999
1
1

Segment group 4
Reference
RFF
Free text
FTX
Message trailer
UNT

C
M
C
M

9
1
9
1

Tag
UNH
BGM

Name

Appendix 14-2-65

Field name (reference)
Message reference number
1. Output common field (output
information code)

1

1. Output common field (message
control information)
1. Output common field (message tag)1
1

Input message ID

M
M
M

1
1
1

Processing result

X
X
X
M

1

Number of segments in the message
Message reference number

1. Output common field (input message
ID)**.1 (Used as a dummy)
2. Processing result code

Table 14-2-11 APERAK Mapping Table
NACCS ->EDIFACT<APERAK(D98B)/Common messages>
UNH:MESSAGE HEADERTAG COMP
UNH
0062

NAME
MESSAGE HEADERMESSAGE REFERENCE NUMBER

S009
0065
0052
0054
0051
0057
0068
S010
0070
0073

Item
Field name/Setting
UN/EDIFACT NACCS
S FORMAT S FORMA No.
Value
M
1M
1
M an..14
M an..13
Message reference
numberMESSAGE IDENTIFIER
Message typeMessage version number
Message release number
Controlling agency
Association assigned codeM
M an..6
M an..3
M an..3
M an..2
C an..6

M
M an..6
M an..3
M an..3
M an..2
M an..6

COMMON ACCESS REFERENCE

C an..35

X

STATUS OF THE TRANSFER
Sequence of transfers
First and last transfer

C
M n..2C a1

X
X
X

UNH+ABCDE12345678+APERAK:D:98B:UN:NAC10'

Appendix 14-2-66

APERAK
D
98B
UN
NAC10

Special Notes[NAC10]BGM:BEGINNING OF MESSAGE

1001
1131
3055
1000

BEGINNING OF MESSAGE
DOCUMENT/MESSAGE NAME
Document/message name, coded
Code list qualifier
Code list responsible agency, coded
Document/message name

Item
Field name/Setting
UN/EDIFACT NACCS
S FORMAT S FORMA No.
Value
M
1M
1
C
M
C an..3
M an..3
963
C an..3
X
C an..3
X
C an..35
M an..7
1*CCMSG

1004
1056
1060

DOCUMENT/MESSAGE
Document/message number
Version
Revision numberC
C an..35
C an..9
C an..6

X
X
X
X

1225

MESSAGE FUNCTION, CODED

C an..3

M an1

4343

RESPONSE TYPE, CODED

C an..3

X

TAG COMP
BGM
C00

C10

NAME

BGM+963:::*CCMSG++9'

Appendix 14-2-67

9Special Notes

963=Error response (Customs)

Output information code[*CCMSG] = Common message

9=OriginalFTX:FREE TEXT

FTX
4451

FREE TEXTTEXT SUBJECT QUALIFIER

Item
Field name/Setting
UN/EDIFACT NACCS
S FORMAT S FORMA No.
Value
C
9M
1
M an..3
M an..3
NHI

4453

TEXT FUNCTION, CODED

C an..3

X

4441
1131
3055

TEXT REFERENCE
Free text identification
Code list qualifier
Code list responsible agency, codedC
M an..17
C an..3
C an..3

X
X
X
X

4440

TEXT LITERALFree textC
M an..70

M
M an..8

14440Free text

C an..70

C an..26

1

4440
4440
4440

Free text
Free text
Free text

C an..70
C an..70
C an..70

X
X
X

3453

LANGUAGE, CODED

C an..3

X

4447

TEXT FORMATTING, CODED

C an..3

X

TAG COMP

C107

C108

NAME

FTX+NHI+++000ER:1ABC2C20010407092530000001'

Appendix 14-2-68

Message control
information
Message tag

Special Notes[NHI] = NACCS header

Output common fields (See the
EDI specification.)
Output common fields (See the
EDI specification.)

---SEGMENT GROUP 1---

C

9C

1

RFF:REFERENCE

REFERENCE
REFERENCE

Item
UN/EDIFACT NACCS
S FORMAT S FORMA No.
M
1M
1
M
M

1153

Reference qualifier

M an..3

M an..3

1154

Reference number

C an..35

M an..10

1156
4000
1060

Line number
Reference version number
Revision number

C an..6
C an..35
C an..6

X
X
X

TAG COMP
RFF
C50
6

NAME

RFF+ACW:ZYXWV98765'

Appendix 14-2-69

1

Field name/Setting
Value

Special Notes

ACW

ACW=Reference number toprevious message

Input message ID

Output common fields (See the
EDI specification.)

---SEGMENT GROUP 3---

C

99999 M

1

ERC:APPLICATION ERROR INFORMATIONTAG COMP
ERC
C90
9321
1131
3055

NAME
APPLICATION ERROR INFORMATIONAPPLICATION ERROR DETAIL
Application error identification
Code list qualifier
Code list responsible agency, coded

Item
Field name/Setting
UN/EDIFACT NACCS
S FORMAT S FORMA No.
Value
M
1M
1
M
M
M an..8
M an1
1
C an..3
X
C an..3
X

ERC+1'

Appendix 14-2-70

Special Notes

Used as a dummy

---SEGMENT GROUP 3---

C

99999 M

1

FTX:FREE TEXT

FTX
4451

FREE TEXTTEXT SUBJECT QUALIFIER

Item
Field name/Setting
UN/EDIFACT NACCS
S FORMAT S FORMA No.
Value
C
1M
1
M an..3
M an..3
AAP

4453

TEXT FUNCTION, CODED

C an..3

X

4441
1131
3055

TEXT REFERENCE
Free text identification
Code list qualifier
Code list responsible agency, codedC
M an..17
C an..3
C an..3

X
X
X
X

4440

TEXT LITERALFree textC
M an..70

M
M an..15

2

4440
4440
4440
4440

Free text
Free text
Free text
Free text

C an..70
C an..70
C an..70
C an..70

C an..15
C an..15
C an..15
C an..15

2
2
2
2

3453

LANGUAGE, CODED

C an..3

X

4447

TEXT FORMATTING, CODED

C an..3

X

TAG COMP

C107

C108

NAME

FTX+AAP+++A0004-0000-0000'

Appendix 14-2-71

Processing result code
(Processing result code)
(〃)
(〃)
(〃)
(〃)

Special Notes

AAP=Response(free text)

UNT:MESSAGE TRAILER

UNT
0074

MESSAGE TRAILERNUMBER OF SEGMENTS IN THE
MESSAGE

Item
Field name/Setting
UN/EDIFACT NACCS
S FORMAT S FORMA No.
Value
M
1M
1
M n..6
M n..6
Number of segments inthe message

0062

MESSAGE REFERENCE NUMBER

M an..14

TAG COMPNAME

M an..13

UNT+7+NACCS12345678'

APERAK:SAMPLE MASSAGE
UNH+ABCDE12345678+APERAK:D:98B:UN:NAC10'
BGM+963:::*CCMSG++9'
FTX+NHI+++000ER:1ABC2C20010407092530000001'
RFF+ACW:ZYXWV98765'
ERC+1'FTX+AAP+++A0004-0000-0000'
UNT+7+NACCS12345678'

Appendix 14-2-72

Message reference
numberSpecial Notes

(Table 14-2-12)
Listed below are action codes and syntax error codes used in CONTRL messages used by
NACCS.

Action codes (Data element 0083)
CodeContent
value
4
There is an error in the pertinent level.
7

There is not an error in the pertinent level.

Syntax error codes (Data element 0085)
Code
value
13
No segments.

Content

15

Too many repetitions of segments.

16

Too many elements in the segment.

18

Unidentified error.

28

Control reference number error.

29

Control count error.

30

Unmatched hierarchy levels of UNG and UNH.

33

Invalid value exists outside the message or the group.

37

An invalid character, a character of a different attribute, or acharacter code invalid for the level is used.
Too large element length.

39

Appendix 14-2-73