List of rules

RULE G0001

Description (EN)
If at least one <CONSIGNMENT-HOUSE CONSIGNMENT-ADDITIONAL INFORMATION.Code> is EQUAL to ’30600’ in the declaration, then for the specific <CONSIGNMENT-HOUSE CONSIGNMENT> the Data Group CONSIGNEE shall not be used AND <CONSIGNMENT-CONSIGNEE> shall not be used. For the rest of the repetitions of <CONSIGNMENT-HOUSE CONSIGNMENT> the specific IF statement (“If at least one <CONSIGNMENT-HOUSE CONSIGNMENT-ADDITIONAL INFORMATION.Code> is EQUAL to ’30600’”) shall be re-validated.
During the Transitional Period same approach shall be followed for the <CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-ADDITIONAL INFORMATION.Code>.

RULE G0002

Description (EN)
XSD contains a non-standard regular expression for this data item.

RULE G0005

Description (EN)
The maximum value is 1999 as defined in the XSD pattern.

RULE G0006

Description (EN)
<TRANSPORT EQUIPMENT-GOODS REFERENCE.Declaration goods item number> is filled in with the item number of the goods concerned as provided in Declaration goods item number.

RULE G0014

Description (EN)
Eastern longitude and Northern latitude will use the optional '+' sign.
Western longitude and Southern latitude will use the '-' sign.

RULE G0017

Description (EN)
'State of seals' = 1 in case that Seals are in good state (i.e. present and not damaged)
'State of seals' = 0 in case that Seals are not in good state (i.e. not present or damaged).

RULE G0020

Description (EN)
Refers to the mode of transport corresponding to the active means of transport which is expected to be used on exit from or entry into the Safety and Security area.

RULE G0021

Description (EN)
A zero '0' is to be considered as a valid number in this field.

RULE G0024

Description (EN)
D.I. will be filled if the value is provided.

RULE G0026

Description (EN)
This D.G. can be used only  
         - in case of Export followed by transit (maximum one MRN included per one House Consignment) 
     AND 
         - if the <TRANSIT OPERATION.Additional Declaration Type> is EQUAL to 'A'.

RULE G0030

Description (EN)
If a consignment is moving from one Member State to another Member State via a third country which is not in set of CL009 (CountryCodesCommonTransit) then a <CUSTOMS OFFICE OF TRANSIT (DECLARED)> shall be declared and located in the specific Member States.

RULE G0033

Description (EN)
The Data Item <AUTHORISATION.Reference number> must be valid in CDMS or in the National Decision Management System.

RULE G0042

Description (EN)
This D.G./D.I. is not used to report discrepancies. The Control Message always reports back D.G./D.I as at declaration message.

RULE G0045

Description (EN)
The information in this Data Group/Data Item will override the information included in the CC015C (or in the latest CC013C, if any).

RULE G0050

Description (EN)
The Reference number shall include the ARC number or the fallback eAD reference number when the
‘Type’ of the ‘Additional reference’ is C651 or C658 respectively.

RULE G0057

Description (EN)
Common Code List can be extended or restricted at national level. Purely national codes are not included in Common Domain messages.

RULE G0058

Description (EN)
When /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/type is in SET {C651, C658} the Unique Body Reference (UBR) is required to be recorded in this field.

RULE G0061

Description (EN)
The information presented in in this D.G. is related to Safety & Security and to the Binding Itinerary. In case of Binding itinerary, the information entered must include the list of codes of the countries between the Office of Departure and the Office of Destination. If more information is available about the countries visited by the means of transport since it's first place of loading until the last place of unloading, it should also be added for Safety & Security purpose only.

RULE G0062

Description (EN)
The rules R0506 and R0507 are applied on CC015C and CC013C to ensure that the declaration does not include unnecessary and repetitive information. They must be enforced by all NTA. Considering the possibility that one Goods Item is taken out from the declaration during the control, the message CC029C and CD001C may have different content from CC015C (or CC013C or CC170C). Consequently, those rules R0506 and R0507 shall not be strictly enforced on the Common Domain messages. Certainly not by the recipient of the CD message, likely not by the sender of the CD message.

RULE G0068

Description (EN)
The Data Group <CONSIGNMENT- HOUSE CONSIGNMENT- CONSIGNMENT ITEM- ADDITIONAL
REFERENCE> will be also used to include the information of EMCS consignment exported from one
EU member state into a Non-EU-Member state, in case of Export Followed by Transit (where in
messages CC013C or CC015C the <CONSIGNMENT- HOUSE CONSIGNMENT- PREVIOUS
DOCUMENT.Type> = ‘N830’ AND <CONSIGNMENT- HOUSE CONSIGNMENT- CONSIGNMENT
ITEM- ADDITIONAL REFERENCE.Type> is in SET CL234 (DocumentTypeExcise)).
In this case, the Data Group <GOODS SHIPMENT- GOODS ITEM- PREVIOUS DOCUMENT> of the
Export declaration, will be mapped with the Data Group <CONSIGNMENT- HOUSE CONSIGNMENTCONSIGNMENT ITEM- ADDITIONAL REFERENCE> of the Transit declaration.

RULE G0069

Description (EN)
The Data Group <CONSIGNMENT- HOUSE CONSIGNMENT- CONSIGNMENT ITEM- SUPPORTING
DOCUMENT>, can be also used to include the information related to EMCS consignment (where
<CONSIGNMENT- HOUSE CONSIGNMENT- CONSIGNMENT ITEM- SUPPORTING
DOCUMENT.Type> is in SET CL234 (DocumentTypeExcise)), transported from one EU member state
into another EU member state via a CTC country.

RULE G0071

Description (EN)
In case of Export Followed by Transit (i.e. <CONSIGNMENT-HOUSE CONSIGNMENT- PREVIOUS
DOCUMENT.Type> = ‘N830’), all and only the goods items declared in <GOODS SHIPMENT-GOODS
ITEM> as defined in the related Export declaration (identified by the MRN) must be included in
<CONSIGNMENT-HOUSE CONSIGNMENT- CONSIGNMENT ITEM> Data Group.

RULE G0072

Description (EN)
In case of Export Followed By Transit (<CONSIGNMENT-HOUSE CONSIGNMENT- PREVIOUS
DOCUMENT.Type> = ‘N830’),
-	all the goods items declared in <GOODS SHIPMENT-GOODS ITEM> as defined in the related Export
declaration (identified by the MRN) and
-	all the goods items declared in the <CONSIGNMENT-HOUSE CONSIGNMENT- CONSIGNMENT
ITEM> defined in the transit declaration
must be listed in the same order (with <GOODS SHIPMENT-GOODS ITEM.Declaration goods item
number> = <CONSIGNMENT-HOUSE CONSIGNMENT- CONSIGNMENT ITEM.Goods item
number>). Keeping the order of the goods item is required to enable the automatic validation of the
matching of the goods in the context of Export followed by Transit.

RULE G0088

Description (EN)
When <CONSIGNMENT.Inland mode of transport> is EQUAL to '3', the identification number of the trailer must also be provided (where applicable).

RULE G0089

Description (EN)
During the Transitional Period (TP), the native CC015C, CC013C and CC170C sent to the National Transit Application shall not include the value ‘99’. This value ‘99’ is valid in CL750 during TP, only in case the value ‘99’ is the result of the upgrade by the National Transit Application of a legacy message (e.g. CC015B upgraded into CC015C).

RULE G0091

Description (EN)
During the Transitional Period (TP), the native CC015C, CC013C and CC170C sent to the National Transit Application shall not include the value ‘99’. This value ‘99’ is valid in CL750 during TP, only in case the value ‘99’ is the result of the upgrade by the National Transit Application of a legacy message (e.g. CC015B upgraded into CC015C).

RULE G0100

Description (EN)
If <TRADER AT DESTINATION.Communication language at destination> is PRESENT, then the indicated language is used as the basic language in any further communication between the Trader and the Customs system. If <TRADER AT DESTINATION.Communication language at destination> is not PRESENT then the Customs system will use the default language of the Office concerned; 

If <TRANSIT OPERATION.Communication language at transit> is PRESENT, then the indicated language is used as the basic language in any further communication between the Trader and the Customs system. If <TRANSIT OPERATION.Communication language at transit> is not PRESENT then the Customs system will use the default language of the Office concerned;  

If <TRANSIT OPERATION.Communication language at departure> is PRESENT, then the indicated language is used as the basic language in any further communication between the Trader and the Customs system. If <TRANSIT OPERATION.Communication language at departure> is not PRESENT then the Customs system will use the default language of the Office concerned.

RULE G0102

Description (EN)
For each type of authorisation, the authorisation is valid for the whole declaration (i.e. for the different HOUSE CONSIGNMENTS).

RULE G0103

Description (EN)
Each iteration of this data group shall include:
-Either the transport equipment information for the containerised goods with seals OR without seals with reference to those goods; 
-OR the transport equipment information for the non containerised but sealed goods (e.g. goods carried by truck with seals) with reference to those goods; 
Note: the non containerised and unsealed goods shall not be recorded under this data group.

RULE G0105

Description (EN)
Information recorded under this data group is solely for communication purposes. No legal liabilities exist upon the specific contact person.

RULE G0112

Description (EN)
If IMO ship identification number (type ‘10’) exists for that ship, it must be used and the Name of the sea-going vessel (type ‘11’) shall not be used.

RULE G0113

Description (EN)
Technical Description:
N/A
Functional Description:
The country code used to define the ‘Country of destination’ can be different from the country code used in the data item ‘Country’ included in the address of the ‘Consignee’.

RULE G0114

Description (EN)
The Data Item “/*/AUTHORISATION/type” shall include the value ‘C521’ when the transit declaration is submitted under simplified procedure (authorised consignor) and only in this case.

RULE G0115

Description (EN)
This Data Item is required as per UCC-DA (Annex B) but may be waived for modes of transport other than rail in case the transit movement does not cross the external border of the Union.

RULE G0116

Description (EN)
During the Transitional Period, the data item “Customs office at border reference number”, is required for ‘native CC015C’ and ‘native CC013C’ and optional if CC013C or CC015C is the outcome of the upgraded CC013B or CC015B respectively. After the end of the Transitional Period, the data item will be always required.

RULE G0117

Description (EN)
Common Code List can be extended at national level. Purely national codes are not included in Common Domain messages.

RULE G0118

Description (EN)
IF the declaration is lodged without Safety and Security data then: 	
-where goods are carried in multimodal transport units, such as containers, swap bodies and semi trailers, the customs authorities may authorise the holder of the transit procedure not to provide this information where the logistical pattern at the point of departure may prevent the identity and nationality of the means of transport from being provided at the time the goods are released for transit, providing multimodal transport units bear unique numbers and such numbers are indicated in D.E. 19 07 063 000 Container identification number 
-In the following cases, Member States shall waive the obligation to enter this information on a transit declaration lodged at the office of departure in relation with the means of transport on which the goods are directly loaded:
  -where the logistical pattern does not allow this data element to be provided and the holder of the transit procedure has the AEOC status and 
   -where the relevant information may be traced where needed by the customs authorities via the records of the holder of the transit procedure.

RULE G0119

Description (EN)
This Data Group is “Required” except where one of the following conditions apply:
-For the declaration that include Inland Mode Of Transport with the value ‘5’;
-Where goods are carried in multimodal transport units, such as containers, swap bodies and semi trailers, the customs authorities may authorise the holder of the transit procedure not to provide this information where the logistical pattern at the point of departure may prevent the identity and nationality of the means of transport from being provided at the time the goods are released for transit, providing multimodal transport units bear unique numbers and such numbers are indicated in the Data Item ‘Container identification number’;
-For the means of transport on which the goods are directly loaded:
    	-the logistical pattern does not allow this data element to be provided and the holder of the transit procedure has the appropriate status (AEOC in EU) and 
    -the relevant information may be traced where needed by the customs authorities via the records of the holder of the transit procedure.

RULE G0120

Description (EN)
The Data Item ‘Identification number’ is required for the Data Group ‘HOLDER OF THE TRANSIT PROCEDURE’, except for:
- economic operators residing outside of the common transit countries (outside CL009), and 
- private individuals for which an identification number may be used but is not required.

RULE G0123

Description (EN)
This Data Group must be provided when different from the ‘HOLDER OF THE TRANSIT PROCEDURE’.
IF the unique ‘CONSIGNOR’ of the consignment is different from the ‘HOLDER OF THE TRANSIT PROCEDURE’ 
THEN the Data Group <CONSIGNMENT -CONSIGNOR> must include this ‘CONSIGNOR’;
IF the ‘CONSIGNOR’ of one or more house consignment(s) is different from the ‘HOLDER OF THE TRANSIT PROCEDURE’ 
THEN the Data Group <CONSIGNMENT -HOUSE CONSIGNMENT -CONSIGNOR> must include this ‘CONSIGNOR’.

RULE G0131

Description (EN)
IF discrepancies have been found the Data Group will be filled in with new values amending initial declaration.

RULE G0142

Description (EN)
<CUSTOMS OFFICE OF TRANSIT (DECLARED)> shall be declared when switching from a contracting party to a different contracting party.

RULE G0165

Description (EN)
IF the declaration is submitted under simplified procedure AND the authorisation of which foresees the use of seals,
THEN <CONSIGNMENT-TRANSPORT EQUIPMENT.Number of seals> is GREATER than '0'.

RULE G0167

Description (EN)
In case of pre-lodged declaration, the Authorisation should be still valid until the PRESENTATION NOTIFICATION FOR THE PRE-LODGED DECLARATION message (CC170C) is submitted when it will be revalidated.

RULE G0186

Description (EN)
<UNLOADING REMARK.Unloading completion> is used as a flag and it can contain 2 possible values:
     ‘0’ = ‘NO’ This means that the unloading of the goods is not yet completed;
     ‘1’ = ‘YES’ This means that the goods are completely unloaded.

RULE G0196

Description (EN)
This data group must contain the full transport equipment details and not only what is different compared to the data declared in the customs declaration.

RULE G0200

Description (EN)
The value of the Data Item <UNLOADING REMARK.State of seals> is '1' ('Yes') when the Seals are in good state (i.e. present and not damaged);
The value of the Data Item <UNLOADING REMARK.State of seals> is '0' ('No') when the Seals are not in good state (i.e. not present or damaged).

RULE G0201

Description (EN)
Rule R0840 shall be validated only by MS. IF the sender is a CTC country THEN the <CUSTOMS OFFICE OF TRANSIT> in MS, that detects the violation of R0840, should request a new ENS declaration before it authorizes the goods to enter the EU. The message CD050C or CD115C from a CTC country may not be rejected if R0840 is violated.

RULE G0205

Description (EN)
<UNLOADING REMARK.Conform> is used as a flag and it can contain 2 possible values:
       ‘0’ = ‘NO’ there are unloading remarks;
       ‘1’ = ‘YES’ no unloading remarks present.

RULE G0300

Description (EN)
The UN Number must be present if the commodity includes dangerous goods that are listed in the United Nations Dangerous Goods Code (UNDG).

RULE G0301

Description (EN)
The Data Item <CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-COMMODITY.CUS code> can be used when the CL016 (CUSCode) in CS/RD2 includes [CUS code & CN code] where the CN code matches with the <CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-COMMODITY-COMMODITY CODE. Harmonized System sub-heading code> & <CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-COMMODITY-COMMODITY CODE.Combined nomenclature code>.

RULE G0321

Description (EN)
This Data Item can take the value '0' (zero) in the following cases:
a. a document number is missing (i.e. it shall not be filled in with a dummy number);
b. the length of a document number exceeds the allowed 70 characters (i.e. it shall not be truncated).
A missing document reference number (due to the above or any other case) is not a valid reason for
the rejection of this message.

RULE G0332

Description (EN)
IF <Container indicator> is NOT PRESENT then data group <TRANSPORT EQUIPMENT> shall NOT be PRESENT, too. <Container indicator> functions as the governing data item for data group <TRANSPORT EQUIPMENT>.

RULE G0414

Description (EN)
In case of excise goods where <CONSIGNMENT.HOUSE CONSIGNMENT.CONSIGNMENT
ITEM.SUPPORTING DOCUMENT.Type> is EQUAL to 'C651 -AAD -Administrative Accompanying
Document (EMCS)', the Administrative Reference Code (ARC number) shall be recorded in this field;
In case of excise goods where <CONSIGNMENT.HOUSE CONSIGNMENT.CONSIGNMENT
ITEM.SUPPORTING DOCUMENT.Type> is EQUAL to 'C658 -FAD -Fallback e-AD (EMCS)', the
national Fallback registration number shall be recorded in this field.

RULE G0424

Description (EN)
In case of excise goods where <CONSIGNMENT.HOUSE CONSIGNMENT.CONSIGNMENT
ITEM.ADDITIONAL REFERENCE.Type> is EQUAL to 'C651 -AAD -Administrative Accompanying
Document (EMCS)', the
Administrative Reference Code (ARC number) shall be recorded in this field;
In case of excise goods where <CONSIGNMENT.HOUSE CONSIGNMENT.CONSIGNMENT
ITEM.ADDITIONAL REFERENCE.Type> is EQUAL to 'C658C -FAD -Fallback e-AD (EMCS)’, the
national Fallback registration number shall be recorded in this field.

RULE G0500

Description (EN)
The exact content of the CL326 (QualifierOfTheIdentification) is defined nationally, considering -for example -that only in some NAs the value 'T' must only be used in case “House number” and “Postcode” or only “Postcode” define an exact and unique location.

RULE G0670

Description (EN)
If all goods items are related a single container, the data group can be omitted.
Otherwise all the goods items related to this container (if present) must be declared.
All the non-containerised goods items related to this seals information (if present) must be declared as well.

RULE G0789

Description (EN)
The ’Customs office at border reference number’ identifies the border crossing point (BCP) where the ‘Active border transport means’ will be present. It is either the ‘Reference number’ of one of the ‘CUSTOMS OFFICE OF TRANSIT (DECLARED)’ or the ‘Reference number’ of one of the ‘CUSTOMS OFFICE OF EXIT FOR TRANSIT (DECLARED)’ or the ‘Reference number’ of the ‘CUSTOMS OFFICE OF DESTINATION (DECLARED)’. By using this Data Item, it is possible (after the end of the Transitional Period) to identify which transport means will be present at which border crossing point, in case of multiple BCP and multiple changes of active transport means.

RULE G0825

Description (EN)
- Consignment related information shall be recorded under
<CONSIGNMENT-ADDITIONAL SUPPLY CHAIN ACTOR>
<CONSIGNMENT-PREVIOUS DOCUMENT>
<CONSIGNMENT-SUPPORTING DOCUMENT>
<CONSIGNMENT-TRANSPORT DOCUMENT>
<CONSIGNMENT-ADDITIONAL REFERENCE>
<CONSIGNMENT-ADDITIONAL INFORMATION>
- House Consignment related information shall be recorded under+
<CONSIGNMENT-HOUSE CONSIGNMENT- ADDITIONAL SUPPLY CHAIN ACTOR>
<CONSIGNMENT-HOUSE CONSIGNMENT-PREVIOUS DOCUMENT>
<CONSIGNMENT-HOUSE CONSIGNMENT-SUPPORTING DOCUMENT>
<CONSIGNMENT-HOUSE CONSIGNMENT-TRANSPORT DOCUMENT>
<CONSIGNMENT-HOUSE CONSIGNMENT-ADDITIONAL REFERENCE>
<CONSIGNMENT-HOUSE CONSIGNMENT-ADDITIONAL INFORMATION>
- Goods item related information shall be recorded under
<CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-ADDITIONAL SUPPLY CHAIN
ACTOR>
<CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-PREVIOUS DOCUMENT>
<CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-SUPPORTING DOCUMENT>
<CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-ADDITIONAL REFERENCE>
<CONSIGNMENT-HOUSE CONSIGNMENT-CONSIGNMENT ITEM-ADDITIONAL INFORMATION>

RULE G0850

Description (EN)
This Data Group must be filled in if a <REPRESENTATIVE> is used by the <HOLDER OF THE TRANSIT PROCEDURE>.

RULE G0988

Description (EN)
The Country of dispatch can be different from the Country defined in the address of the Consignor.

RULE G0991

Description (EN)
During the Transitional Period, the value ‘N830’ (Goods declaration for exportation) is defined as valid in codelist CL214 (PreviousDocumentType). From the end date of the Transitional Period, the value ‘N830’ will become valid ONLY in the CL228 (PreviousDocumentExportType) to indicate the “Export Followed by Transit” procedure in the Data Group <CONSIGNMENT-HOUSE CONSIGNMENT-PREVIOUS DOCUMENT>.

RULE GN001

Description (EN)
The LRN must be unique for each trader.

RULE GN003

Description (EN)
IF element netMass is empty, THEN group Packaging must be filled in.
IF group Packaging is empty, THEN element netMass must be filled in.

RULE GRN

Description (EN)
GRN shall fulfil check algorithm specified in ISO 6346.

RULE R0003

Description (EN)
Each /*/CustomsOfficeOfTransitDeclared/referenceNumber is unique throughout the declaration.

RULE R0005

Description (EN)
The value of /*/arrivalDateAndTimeEstimated field is considered valid only if it is not LESS than or EQUAL to /*/Message/Preparation date and time

RULE R0006

Description (EN)
IF the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in set CL112   
THEN the first two characters of at least one instance of /*/CustomsOfficeOfTransitDeclared/referenceNumber shall be EQUAL to the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber;
If the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in set CL112 AND If the
first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in set CL010
THEN the first two characters of at least one instance of
/*/CustomsOfficeOfTransitDeclared/referenceNumber shall be in SET CL010.

RULE R0007

Description (EN)
Each /*/Consignment/HouseConsignment/ConsignmentItem/declarationGoodsItemNumber is unique throughout the declaration. The items shall be numbered in a sequential fashion, starting from '1' for the first item and increment the numbering by '1' for each following item.

RULE R0023

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalReference/type is in SET CL234
(DocumentTypeExcise)
THEN /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalReference/referenceNumber
shall not be ‘0’ (zero)

RULE R0028

Description (EN)
The structure of this Data Item is validated as specified in DDCOM. The check digit must follow the ISO 6346 standard. (Country code validated in CL170)

RULE R0060

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/
CommodityCode/combinedNomenclatureCode is PRESENT 
THEN the concatenation of the Data Items /*/Consignment/HouseConsignment/
ConsignmentItem/Commodity/CommodityCode/harmonizedSystemSubHeadingCode (an6) and /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/
CommodityCode/combinedNomenclatureCode (an2) must be a valid code in the TARIC database (validated only by the EU countries).

RULE R0076

Description (EN)
IF /*/Consignment/ActiveBorderTransportMeans/typeOfIdentification is in SET {10,21,30,40,41,80}
THEN /*/Consignment/ActiveBorderTransportMeans/identificationNumber shall not contain lowercase letters.

RULE R0103

Description (EN)
IF /*/CustomsOfficeOfExitForTransitDeclared is PRESENT 
THEN 
/*/CustomsOfficeOfExitForTransitDeclared/referenceNumber is NOT EQUAL to 
/*/CustomsOfficeOfTransitDeclared/referenceNumber AND is NOT EQUAL to /*/CustomsOfficeOfDestinationDeclared/referenceNumber

RULE R0106

Description (EN)
/*/TransportEquipment/numberOfSeals is EQUAL to the ‘maximum value of /*/TransportEquipment/Seal/sequenceNumber’.

RULE R0107

Description (EN)
/*/TransportEquipment/Seal/Identifier is unique in the whole declaration.

RULE R0165

Description (EN)
IF the declaration is submitted under simplified procedure AND the authorisation of which foresees the use of seals
THEN /*/Consignment/TransportEquipment/numberOfSeals> is GREATER than '0'.

RULE R0219

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages is EQUAL to '0' (zero)
THEN no further data group /*/Consignment/HouseConsignment/ConsignmentItem/Packaging with a value not equal to "0" (zero) in the data item /*/Consignment/HouseConsignment/ConsignmentItem/Packaging /numberOfPackages is specified for this data group /*/ HouseConsignment/ConsignmentItem.

RULE R0220

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages is EQUAL to '0' (zero)
THEN /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/typeOfPackages shall not be in SET CL182 for this data group /*/ Consignment/HouseConsignment/ConsignmentItem.

RULE R0221

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages is EQUAL to ‘0’ 
THEN 
      for this CONSIGNMENT ITEM
      /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/grossMass is EQUAL to ‘0’
AND
      for this HOUSE CONSIGNMENT at least one CONSIGNMENT ITEM must exist with
      /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/grossMass having a value different from ‘0’
ELSE for this CONSIGNMENT ITEM 
      /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/grossMass must be different from ‘0’.

RULE R0223

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/grossMass is GREATER THAN ‘0’ (zero)
THEN /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/netMass must be LESS THAN OR EQUAL to /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/grossMass.

RULE R0315

Description (EN)
Where /*/Consignment/mode OfTransportAtTheBorder is EQUAL to '4' the (IATA/ICAO) flight number shall be indicated and shall have a format an..8:
  - an..3: mandatory prefix identifying the airline/operator
  - n..4: mandatory number of the flight
  - a1: optional suffix

RULE R0318

Description (EN)
IF /*/Guarantee/guaranteeType is EQUAL to '4'
THEN the format of /*/Guarantee/GuaranteeReference/GRN is 'an24'
ELSE the format of /*/Guarantee/GuaranteeReference/GRN is 'an17'

RULE R0350

Description (EN)
IF /*/TransitOperation/reducedDatasetIndicator> is EQUAL to '1'
AND /*/Consignment/inlandModeOfTransport is in SET {1, 2, 4} 
THEN 
at least one /*/Authorisation/type is EQUAL to 'C524'

RULE R0352

Description (EN)
IF /*/TransitOperation/reducedDatasetIndicator> is EQUAL to '1'
AND /*/Consignment/inlandModeOfTransport is in SET {1, 2, 4}  
THEN 
this Data Item includes at least one <Authorisation number> for a valid Authorisation for Reduced Data Set owned by the Holder of the Transit Procedure

RULE R0364

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages is EQUAL to
‘0’ (zero)
THEN for THIS HOUSE CONSIGNMENT at least one other CONSIGNMENT ITEM must exist with
(the same /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/shippingMarks AND /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages having a value GREATER than ‘0’ (zero) AND /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/typeOfPackages having a value NOT IN SET {CL181, CL182}).

RULE R0416

Description (EN)
The Data Item /*/Consignment/HouseConsignment/PreviousDocument/referenceNumber must include a valid export MRN. The 17th character must be in SET {A, B, E}.

RULE R0448

Description (EN)
IF /*/Consignment/TransportEquipment/containerIdentificationNumber is NOT PRESENT
THEN the R0021 is not applicable (i.e. the value '0' is not valid) for
/*/Consignment/TransportEquipment/numberOfSeals;

RULE R0472

Description (EN)
IF /*/Consignment/inlandModeOfTransport is in SET {1,2,3,4,8} 
THEN 
      IF /*/Consignment/DepartureTransportMeans is PRESENT 
      THEN  
            the first digit of /*/Consignment/DepartureTransportMeans/typeOfIdentification shall be 
            EQUAL to /*/Consignment/inlandModeOfTransport 
      ELSE IF /*/Consignment/HouseConsignment/DepartureTransportMeans is PRESENT 
      THEN  
            the first digit of 
             /*/Consignment/HouseConsignment/DepartureTransportMeans/typeOfIdentification 
             shall be EQUAL to /*/Consignment/inlandModeOfTransport

RULE R0473

Description (EN)
IF /*/Consignment/DepartureTransportMeans is PRESENT AND /*/Consignment/DepartureTransportMeans/typeofIdentification is in SET {10,20,21,30,31,40,41,80}
THEN /*/Consignment/DepartureTransportMeans/IdentificationNumber shall not contain lowercase letters
ELSE 
IF /*/Consignment/HouseConsignment/DepartureTransportMeans is PRESENT AND /*/Consignment/HouseConsignment/DepartureTransportMeans/typeofIdentification is in SET {10,20,21,30,31,40,41,80}
THEN /*/Consignment/HouseConsignment/DepartureTransportMeans/IdentificationNumber shall not contain lowercase letters

RULE R0474

Description (EN)
IF /*/Consignment/inlandModeOfTransport is EQUAL to '3'
THEN the first data group iteration /*/Consignment/DepartureTransportMeans/typeOfIdentification must be EQUAL to '30';
IF /*/Consignment/inlandModeOfTransport is EQUAL to '3'
AND /*/Consignment/House Consignment/DepartureTransportMeans is PRESENT
THEN for this House Consignment, the first data group iteration   /*/Consignment/HouseConsignment/DepartureTransportMeans/typeOfIdentification must be EQUAL to '30'.

RULE R0476

Description (EN)
IF /*/Consignment/inlandModeOfTransport is EQUAL to '3'
THEN 
       IF the multiplicity of the data group /*/Consignment/DepartureTransportMeans is 
        more than 1x
        THEN the iteration 2 and the iteration 3 (if present) of the data group 
         /*/Consignment/DepartureTransportMeans must include 
        /*/Consignment/DepartureTransportMeans/typeOfIdentification that is EQUAL to 
        '31'
        ELSE IF the multiplicity of the data group 
        /*/Consignment/HouseConsignment/DepartureTransportMeans is more than 1x
        THEN the iteration 2 and the iteration 3 (if present) of the data group 
        /*/Consignment/HouseConsignment/DepartureTransportMeans must include 
        /*/Consignment/HouseConsignment/DepartureTransportMeans/typeOfIdentification 
        that is EQUAL to '31'

RULE R0506

Description (EN)
IF /*/Consignment/HouseConsignment/Consignor is PRESENT for all /*/Consignment/HouseConsignment/ 
THEN at least one occurrence of /*/Consignment/HouseConsignment/Consignor must be different from the others;

IF /*/Consignment/HouseConsignment/Consignee is PRESENT for all /*/Consignment/HouseConsignment/ 
THEN at least one occurrence of /*/Consignment/HouseConsignment/Consignee must be different from the others;

IF /*/Consignment/HouseConsignment/DepartureTransportMeans is PRESENT for all /*/Consignment/HouseConsignment 
THEN at least one occurrence of /*/Consignment/HouseConsignment/DepartureTransportMeans must be different from the others;

IF /*/Consignment/HouseConsignment/TransportCharges is PRESENT for all /*/Consignment/HouseConsignment
THEN at least one occurrence of /*/Consignment/HouseConsignment/TransportCharges must be different from the others;

IF /*/Consignment/HouseConsignment/referenceNumberUCR is PRESENT for all /*/Consignment/HouseConsignment/ 
THEN at least one occurrence of /*/Consignment/HouseConsignment/referenceNumberUCR must be different from the others;

IF /*/Consignment/HouseConsignment/countryOfDestination is PRESENT for all /*/Consignment/HouseConsignment/
THEN at least one occurrence of /*/Consignment/HouseConsignment/countryOfDestination must be different from the others;

IF /*/Consignment/HouseConsignment/countryOfDispatch is PRESENT for all /*/Consignment/HouseConsignment/ 
THEN at least one occurrence of /*/Consignment/HouseConsignment/countryOfDispatch must be different from the others.

RULE R0507

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDispatch is PRESENT for all 
           /*/Consignment/HouseConsignment/ConsignmentItem 
THEN at least one occurrence of 
           /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDispatch must be different from the others; 
IF /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination is PRESENT for all 
          /*/Consignment/HouseConsignment/ConsignmentItem 
THEN at least one occurrence of 
         /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination must be different from the others; 
IF /*/Consignment/HouseConsignment/ConsignmentItem/referenceNumberUCR is PRESENT for all 
         /*/Consignment/HouseConsignment/ConsignmentItem 
THEN at least one occurrence of 
         /*/Consignment/HouseConsignment/ConsignmentItem/referenceNumberUCR must be different from the others; 
IF /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is PRESENT for all 
        /*/Consignment/HouseConsignment/ConsignmentItem 
THEN at least one occurrence of 
        /*/Consignment/HouseConsignment/ConsignmentItem/declarationType must be different from the others

RULE R0601

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalReference/type is in SET CL234 (DocumentTypeExcise)
(i.e. Export of excise goods followed by transit (EMCS&AES+NCTS))
THEN
   IF /*/Consignment/HouseConsignment/PreviousDocument/type is EQUAL to ‘N830’)
   THEN
         IF /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is PRESENT
         THEN /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is EQUAL to ‘T1’
         ELSE /*/TransitOperation/declarationType is in SET {‘T1’, ‘TIR’};
   ELSE 
        IF /*/Consignment/HouseConsignment/ConsignmentItem/SupportingDocument/type is in SET CL234
              (DocumentTypeExcise)   (i.e. Transit movement of EU goods under excise suspension (EMCS+NCTS))
        THEN
              IF /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is PRESENT
              THEN /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is in SET {T2, T2F}
         ELSE /*/TransitOperation/declarationType is in SET {T2, T2F}

RULE R0789

Description (EN)
IF/*/CustomsOfficeOfTransitDeclared is PRESENT
THEN the multiplicity of /*/Consignment/ActiveBorderTransportMeans is up to 9x 
ELSE the multiplicity of /*/Consignment/ActiveBorderTransportMeans is 1x

RULE R0790

Description (EN)
IF (/CC015C/CustomsOfficeOfTransitDeclared is PRESENT)
     THEN the multiplicity of /CC170C/Consignment/ActiveBorderTransportMeans is up to 9x
      ELSE
               IF (/CC013C/CustomsOfficeOfTransitDeclared is PRESENT) 
               THEN the multiplicity of /CC170C/Consignment/ActiveBorderTransportMeans is up  to 9x
                ELSE the multiplicity of /CC170C/Consignment/ActiveBorderTransportMeans is 1x

RULE R0840

Description (EN)
Only a valid EORI or TCUIN shall be used. The EORI shall be validated only by EU MS. The TCUIN shall be validated by EU MS and by the country where the TCUIN is defined.

RULE R0849

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to ‘TIR’ 
THEN /*/TransitOperation/reducedDatasetIndicator = “0”

RULE R0850

Description (EN)
IF sender is in EU (CL010)
THEN the value must be a valid EORI or TCUIN (validated by receiver, if located in EU),
ELSE (sender is not in EU) the value must be a TIN number (validated by the message sender only).
The EORI/TCUIN values should comply with the following pattern: <xs:pattern value=" [A-Z]{2}[\x21-\x7E]{1,15}"/>

RULE R0851

Description (EN)
The Identification number can be validated if the Consignee is located in the same contracting party as the Recipient.

RULE R0855

Description (EN)
IF /*/Consignment/inlandModeOfTransport is EQUAL to ‘3’
THEN the multiplicity of /*/Consignment/DepartureTransportMeans AND /*/Consignment/HouseConsignment/DepartureTransportMeans can be up to '3x'
ELSE IF /*/Consignment/inlandModeOfTransport is EQUAL to ‘2’  (Rail transport)
THEN the multiplicity of /*/Consignment/DepartureTransportMeans AND /*/Consignment/HouseConsignment/DepartureTransportMeans can be more than '1x'
ELSE the multiplicity of /*/Consignment/DepartureTransportMeans AND /*/Consignment/HouseConsignment/DepartureTransportMeans is '1x'

RULE R0859

Description (EN)
IF /*/TransitOperation/reducedDatasetIndicator = “1” 
THEN at least one /*/Authorisation/type is EQUAL TO ‘C524’ 
ELSE /*/Authorisation/type shall not be EQUAL TO ‘C524’

RULE R0900

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to 'TIR'
THEN /*/Guarantee/guaranteeType is EQUAL to 'B'
ELSE IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL010 OR is EQUAL to 'SM' OR is EQUAL to 'AD'
THEN /*/Guarantee/guaranteeType must be in SET CL230
ELSE /*/Guarantee/guaranteeType must be in SET CL229

RULE R0901

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to 'TIR'
THEN the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL010 
AND the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL010

RULE R0904

Description (EN)
IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET {AD, SM}
THEN the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL553

RULE R0905

Description (EN)
IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL112
THEN the two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is NOT in SET{AD, SM}

RULE R0906

Description (EN)
IF the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is EQUAL to ‘AD’
THEN the first two characters of /*/CustomsOfficeOfDTransitDeclared/referenceNumber is EQUAL to ‘AD’;
IF the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is EQUAL to ‘AD’
THEN the first two characters of /*/CustomsOfficeOfDTransitActual/referenceNumber is EQUAL to ‘AD’

RULE R0909

Description (EN)
IF the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is EQUAL to 'SM'
THEN
        IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to 'IT',
        THEN /*/TransitOperation/declarationType is EQUAL to 'T2SM' 
        ELSE
                 IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL010 
                         AND NOT EQUAL to 'IT'
                 THEN /*/TransitOperation/declarationType is in SET {T2, T2F} OR
                           /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is in SET {T2, T2F};
IF the first two characters of /*/CustomsOfficeOfDestinationActual/referenceNumber is EQUAL to 'SM'
THEN
        IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to 'IT',
        THEN /*/TransitOperation/declarationType is EQUAL to 'T2SM' 
        ELSE
               IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL010
                          AND NOT EQUAL to 'IT'
               THEN /*/TransitOperation/declarationType is in SET {T2, T2F} OR
                          /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is in SET {T2, T2F}

RULE R0911

Description (EN)
IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to 'SM' AND 
         the first two characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL010
THEN /*/TransitOperation/declarationType is in SET {T2, T2F}; 
IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to 'SM' AND 
         the first two characters of /*/CustomsOfficeOfDestinationActual/referenceNumber is in SET CL010
THEN /*/TransitOperation/declarationType is in SET {T2, T2F}

RULE R0983

Description (EN)
/*/Consignment/HouseConsignment/grossMass must be GREATER than OR EQUAL to the sum of /*/Consignment/HouseConsignmentConsignmentItem/Commodity/GoodsMeasure/grossMass available for all Consignment Items included in that House Consignment

RULE R0987

Description (EN)
Each <Sequence number> is unique for the Data Group it belongs to. The sequence numbers shall be sequential, starting from '1' for the first iteration of the Data Group and increasing by '1' for each iteration.

RULE R0988

Description (EN)
Each < Goods item number> is unique for the Data Group it belongs to. The Goods item number shall be sequential, starting from '1' for the first iteration of the Data Group and increasing by '1' for each iteration.

RULE R0990

Description (EN)
The /*/TransitOperation/TIRCarnetNumber must have the format an10 or an11 and must follow the algorithm defined by IRU, see DDNTA Main Document.

RULE R0994

Description (EN)
The value of /*/Consignment/grossMass must be GREATER than or EQUAL to the sum of /*/Consignment/HouseConsignment/grossMass for all house consignments.

RULE R3060

Description (EN)
IF /*/Consignment/countryOfDestination is in SET CL009 
OR at least one /*/Consignment/HouseConsignment/countryOfDestination is in SET CL009 
OR at least one /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination is in SET CL009
THEN /*/Consignment/AdditionalInformation/code shall not be EQUAL to '30600'

RULE R3061

Description (EN)
The Data Item /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalInformation/code shall not be EQUAL TO '30600'

RULE R3062

Description (EN)
IF /*/Consignment/countryOfDestination is in SET CL009 
OR at least one /*/Consignment/HouseConsignment/countryOfDestination is in SET CL009
OR at least one /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination is in SET CL009
THEN /*/Consignment/HouseConsignment/AdditionalInformation/code shall not be EQUAL to '30600'

RULE RN001

Description (EN)
Authorisation for communication with Customs offices of departure/destination, which was filled into Envelope, 
must correspond with Holder of the procedure/Representative (in case of direct representation) at Customs office of departure
or with Trader at Destination.

RULE RN002

Description (EN)
If in envelope of message is specified the element MRN, 
then the value of this element must be the same like value in the element MRN in group TransitOperation of message.

RULE RN003

Description (EN)
This element cannot be greater than current date.

RULE RN004

Description (EN)
Limit date cannot be less than current declaration date.

RULE RN005

Description (EN)
One guarantee, indicate by GRN, cannot be declared more than once in the transit declaration.

RULE RN006

Description (EN)
Limit date cannot be less than current declaration date.

RULE RN007

Description (EN)
"Fallback procedure indicator" can be set to "1" only when Simplified procedure at departure is used.

RULE RN008

Description (EN)
Only Czech customs office is acceptable with this item

RULE RN009

Description (EN)
Only CZK is valid vaule.

RULE RN010

Description (EN)
One guarantee, indicate by otherGuaranteeReference, cannot be declared more than once in the transit declaration.

RULE RN011

Description (EN)
IF /*/Guarantee/guaranteeType is EQUAL to '3' 
THEN /*/Guarantee/otherGuaranteeReference
format shall be set to an10

RULE RN012

Description (EN)
IF Representative is filled THEN must be different from Holder of the procedure

RULE RN013

Description (EN)
 IF /*/Guarantee/guaranteeType is NOT in SET CL286
THEN the multiplicity of /*/Guarantee/GuaranteeReference is '1x'

RULE RN014

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/wasteType is EQUAL to 'WZE' 
THEN /*/Consignment/HouseConsignment/ConsignmentItem/wasteRecoveryMethod shall be in SET {R1,R2,...,R13}

RULE RN016

Description (EN)
The structure of this Data Item is validated as specified in DDCOM with exception that at the position of check digit must be value 'F'.

RULE RN018

Description (EN)
Combination of D.I. UnloadingRemark/Conform is true and UnloadingRemark/unloadingCompletion is false is impossible

RULE RN019

Description (EN)
"In case of Export followed by Transit and whenever the internal transit procedure is applied, the Declared Office of Destination needs to be ‘appropriate’, otherwise the initial submission and/or subsequent amendment requests of the transit declaration data as submitted by the Holder of the Transit Procedure to the Office of Departure has to be rejected. This can be validated as follows:
A/ In case the Declared Office of Destination belongs to EU MS (CL010- CountryCodesCommunity), and its Custom Office Reference Number is included in both CL172- CustomsOfficeDestination and CL194- CustomsOfficeExit, then it is considered ‘appropriate’ (otherwise is considered not ‘appropriate’);
B/ In case the Declared Office of Destination belongs to CTC (CL112- CountryCodesCTC) or AD or SM, it is considered by default ‘appropriate’."

RULE RN020

Description (EN)
There are allowed only bellow combination of value in Date Items /*/LocationOfGoods/typeOfLocation and /*/LocationOfGoods/qualifierOfIdentification: AV,BY,CY and DZ

RULE RN021

Description (EN)
The Data Item “/*/LocationOfGoods/typeOfLocation” shall contain the value ‘B’ (Authorised place) only in case when the transit declaration is
submitted under simplified procedure (authorised consignor) (/*/AUTHORISATION/type=C521).

RULE RN022

Description (EN)
The Data Item “/*/LocationOfGoods/typeOfLocation” shall contain the value ‘B’ (Authorised place) only in case of using simplified procedure (authorised consignee) (/*/TransitOperation/simplifiedProcedure=true).

RULE RN023

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/type=‘N830’ or /*/Consignment/HouseConsignment/PreviousDocument/type=‘N830’  or /*/Consignment/PreviousDocument/type=‘N830’ 
THEN /*/TransitOperation/additionalDeclarationType is EQUAL to 'A'

RULE RN024

Description (EN)
Each /*/Authorisation/type should be unique.

RULE RN025

Description (EN)
IF decision about unloading permission exists THEN
unloadingDate must be set between date of decision about unloading permission and today.
ELSE
Unloading must be set between date of release and today.

RULE RN026

Description (EN)
Data element can only contain the customs department of the current customs office.

RULE RN027

Description (EN)
IF */authorisationNumber is used,
THEN it must be temporary storage authorisation number.

RULE RN028

Description (EN)
IF /*/TemporaryStorage/LocationOfGoods/authorisationNumber does not include permission not to provide customs debt
THEN this element SHALL NOT contain the value '9NCK'.

RULE RN029

Description (EN)
Must be authorised for temporary storage

RULE RN031

Description (EN)
If declaration is in GuaranteeAmend state, this element can be 1.

RULE RN035

Description (EN)
The value of element "GuaranteeType" to guarantee the temporary storage must be "9110", "92ZL", "93CJ", "9ZD1" or "9NCK".

RULE RN053

Description (EN)
There are allowed only bellow combination of value in Date Items /*/LocationOfGoods/typeOfLocation and /*/LocationOfGoods/qualifierOfIdentification: "AV","AX","AZ","BY","CX","CZ" and "DZ"

RULE RN055

Description (EN)
IF /*/Guarantee/guaranteeType is EQUAL to '93CJ' 
THEN /*/Guarantee/otherGuaranteeReference format shall be set to an10

RULE RN056

Description (EN)
 IF /*/Guarantee/guaranteeType is EQUAL "93CJ"
THEN the multiplicity of /*/Guarantee/GuaranteeReference is '1x'

RULE RN057

Description (EN)
For simplified procedure, only bellow combination of value in Date Items is allowed /*/LocationOfGoods/typeOfLocation and /*/LocationOfGoods/qualifierOfIdentification: "BY"

RULE RN064

Description (EN)
This D.G. can be used only  if the <TRANSIT OPERATION.Additional Declaration Type> is EQUAL to 'A'.

RULE RN065

Description (EN)
Only one export MRN can be filled in this D.G.

RULE RN066

Description (EN)
Element is consistent with declared data

RULE RN067

Description (EN)
IF exists /*/Consignment/AdditionalReference/ group OR /*/Consignment.HouseConsignment/AdditionalReference/ group OR /*/Consignment.HouseConsignment/ConsignmentItem/AdditionalReference/ group
with element type from [Y022,Y023,Y025,Y026,Y027,Y028,Y029],
THEN element referenceNumber of this group must contain a valid AEO certificate number in line with value of element type:
Y022 = AEO certificate of Consignor or Exporter
Y023 = AEO certificate of Consignee
Y025 = AEO certificate of Representative
Y026 = AEO certificate of HolderOfTheTransitProcedure
Y027 = AEO certificate of AdditionalSupplyChainActor with role = WH
Y028 = AEO certificate of Carrier
Y029 = AEO certificate of AdditionalSupplyChainActor with role other then WH

RULE RN068

Description (EN)
Value "Y024" not allowed for 
/*/Consignment/AdditionalReference/type
/*/Consignment.HouseConsignment/AdditionalReference/type
/*/Consignment.HouseConsignment/ConsignmentItem/AdditionalReference/type

RULE RN069

Description (EN)
IF type of previous document = N337 or N355 (write off from temporary storage),
THEN quantity OR type and number of packages must be filled in. 

RULE RN070

Description (EN)
IF there is Simplified Procedure used 
THEN must be used at least one group PREVIOUS DOCUMENT with type of previous procedure  „N337", "N355“, „NMRN“, „N830“ or „NCLE“ 
	OR at least one group PREVIOUS DOCUMENT with any type of previous procedure ONLY IF at least two CO of transit are used and country of CO of Destination is EU coutry and declaration type is T2
ELSE Simplified Procedure can not be used.

RULE RN071

Description (EN)
IF Type of previous document is in SET {'N337','N355','N830','NMRN'}
THEN data item Reference number HAS to contain valid MRN

RULE RN072

Description (EN)
IF Type of previous document is EQUAL to 'NCLE'
THEN data item Reference number HAS to contain the reference number of authorization of entry to the declarant record, that belongs to the holder of the transit procedure

RULE RN074

Description (EN)
In this D.G., at most one of the data elements transportDocumentReferenceNumber and houseConsignmentSequenceNumber can be filled.

RULE RN076

Description (EN)
IF PreviousDocument/type is equal to "N830",
THEN at least one the AdditionalInformation/code element must be in ​​["20100", "20200", "20300"].

RULE RN077

Description (EN)
IF type of previous document = N337 or N355 (write off from temporary storage),
THEN the combination of the elements Reference number and Goods item number must be unique in the Previous document group.

RULE RN078

Description (EN)
This element can contain only 'N355' value

RULE RN079

Description (EN)
Value of /*/Transit operation/security must be in set {0, 2}.

RULE RN080

Description (EN)
IF first two letters of „CustomsOfficeOfTransit/refereneceNumber“ are in codelist CL147 (CountryCustomsSecurityAgreementArea)
THEN IF/*/TransitOperation/security is in SET {1, 3}
THEN at least one iteration of /*/Consignment/PreviousDocument/type must be EQUAL to 'N355' (ENS)
ELSE/*/Consignment/PreviousDocument/type can be EQUALto 'N355' (ENS)
ELSE /*/Consignment/PreviousDocument/type can't be EQUAL to 'N355' (ENS)

RULE RN081

Description (EN)
"Reference number" must contain at least 6 characters.

RULE RN082

Description (EN)
The date (/TransitOperation.arrivalNotificationDateAndTime)  must be equal or greater than release date.

RULE RN248

Description (EN)
This element can contain only paired numbers in interval from 1 to 20 [2,4,6,8,10,12,14,16,18,20].

RULE RN318

Description (EN)
IF /*/Guarantee/guaranteeType is EQUAL to '9ZD1'
THEN the format of /*/Guarantee/GuaranteeReference/GRN is 'an24'
ELSE the format of /*/Guarantee/GuaranteeReference/GRN is 'an17'

RULE RN416

Description (EN)
IF/*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/type is EQUAL to ‘N830’ 
THEN /*/Consignment/HouseConsignment/PreviousDocument/referenceNumber must include a valid export MRN.

RULE RN520

Description (EN)
This data element/data group cannot be amended with the exception of ContactPerson in Representatiive and HolderOfTheTtransitProcedure which can be changed.

RULE RN789

Description (EN)
The ’Customs office at border reference number’ identifies the border crossing point (BCP) where the 
‘Active border transport means’ will be present. It is either the ‘Reference number’ of one of the 
‘CUSTOMS OFFICE OF TRANSIT (DECLARED)’ or the ‘Reference number’ of one of the 
‘CUSTOMS OFFICE OF EXIT FOR TRANSIT (DECLARED)’ or the ‘Reference number’ of the 
‘CUSTOMS OFFICE OF DESTINATION (DECLARED)’ or the ‘Reference number’ of the 
‘CUSTOMS OFFICE OF DEPARTURE’. By using this Data Item, it is possible (after the end of the NCTS-P4/NCTS-P5 Transitional Period) to identify which transport means will be present at which border crossing point, in case of multiple BCP and multiple changes of active transport means.

List of conditions

Conditions

CONDITION C0001

Description (EN)
IF /*/Consignment/countryOfDestination is in SET CL009
THEN
     IF /*/Consignment/Consignee is PRESENT
     THEN
             /*/Consignment/HouseConsignment/Consignee = "N" 
           ELSE /*/Consignment/HouseConsignment/Consignee = "R"
ELSE IF at least one iteration of /*/Consignment/HouseConsignment/countryOfDestination is in SET CL009
THEN IF /*/Consignment/Consignee is PRESENT
           THEN /*/Consignment/HouseConsignment/Consignee = "N"
           ELSE /*/Consignment/HouseConsignment/Consignee = "R" for THIS House Consignment
ELSE IF at least one iteration of
/*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination is in SET CL009
THEN IF /*/Consignment/Consignee is PRESENT
          THEN /*/Consignment/HouseConsignment/Consignee = "N"
          ELSE /*/Consignment/HouseConsignment/Consignee = "R" for THIS House Consignment
that includes THIS Consignment Item
ELSE IF /*/TransitOperation/security is IN SET {0,1}
THEN
         IF /*/Consignment/Consignee is PRESENT
         THEN
                   /*/Consignment/HouseConsignment/Consignee = "N" 
                ELSE /*/Consignment/HouseConsignment/Consignee = "O"
ELSE IF at least one instance of /*/Consignment/AdditionalInformation/code is EQUAL TO '30600'
              THEN
                      /*/Consignment/Consignee = "N" AND
                      /*/Consignment/HouseConsignment/Consignee = "N" 
ELSE IF at least one instance of /*/Consignment/HouseConsignment/AdditionalInformation/code IS
EQUAL TO '30600'  
THEN
                       /*/Consignment/Consignee = "N" AND
                       THIS /*/Consignment/HouseConsignment/Consignee = "N"
ELSE
              IF /*/Consignment/Consignee is PRESENT
             THEN
              /*/Consignment/HouseConsignment/Consignee = "N"
                ELSE /*/Consignment/HouseConsignment/Consignee = "R"

CONDITION C0015

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalReference/type is in SET
CL234(DocumentTypeExcise)
THEN /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalReference/referenceNumber =
“R”
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/AdditionalReference/referenceNumber =
“O”

CONDITION C0030

Description (EN)
IF /*/TransitOperation/declarationType is in SET {TIR,T2SM}  
     THEN /*/CustomsOfficeOfTransitDeclared = "N"  
ELSE 
     IF (the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET 
     CL112) AND (the first two characters of 
     /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL112) AND (the first 
     two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to the first two 
     characters of /*/CustomsOfficeOfDestinationDeclared/referenceNumber)  
            THEN /*/CustomsOfficeOfTransitDeclared = "O"  
ELSE 
     IF /*/TransitOperation/declarationType is EQUAL to 'T2' 
             THEN /*/CustomsOfficeOfTransitDeclared = "R" 
ELSE 
     IF /*/TransitOperation/declarationType is EQUAL 'T' AND at least one instance of 
     /*/Consignment/HouseConsignment/ConsignmentItem/declarationType is EQUAL to 'T2' 
             THEN /*/CustomsOfficeOfTransitDeclared = "R" 
ELSE  
     IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET 
     CL112 OR the first two characters of 
     /*/CustomsOfficeOfDestinationDeclared/referenceNumber is in SET CL112 
             THEN /*/CustomsOfficeOfTransitDeclared = "R" 
ELSE 
     IF at least one instance of /*/CountryOfRoutingOfConsignment/country is in SET CL112 
             THEN /*/CustomsOfficeOfTransitDeclared = "R" 
ELSE 
     IF the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is EQUAL to 
     'AD' OR IF the first two characters of 
     /*/CustomsOfficeOfDestinationDeclared/referenceNumber is EQUAL to 'AD' 
             THEN /*/CustomsOfficeOfTransitDeclared = "R"  
ELSE 
     IF /*/CustomsOfficeOfExitForTransitDeclared is PRESENT  
     THEN /*/CustomsOfficeOfTransitDeclared = "R"  
ELSE  
     /*/CustomsOfficeOfTransitDeclared = "O"

CONDITION C0035

Description (EN)
IF (/*/Transit Operation/declarationType is in SET {T2, T2F}
AND the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL112)
THEN IF /*/Consignment/PreviousDocument is PRESENT
 THEN /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument = ‘O’
 ELSE /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument = ‘R’
 for all Consignment Items
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument = ‘O’;
IF (/*/Consignment/HouseConsignment/ConsignmentItem/declarationType is in SET {T2, T2F} AND
the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL112)
THEN IF /*/Consignment/PreviousDocument is PRESENT
 THEN /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument = ‘O’
 ELSE /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument = ‘R’
 for this Consignment Items
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument = ‘O’
for this Consignment Items

CONDITION C0045

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to 'T'
THEN /*/Consignment/HouseConsignment/ConsignmentItem/declarationType = "R"
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/declarationType = "N"

CONDITION C0055

Description (EN)
IF /*/Consignment/containerIndicator is EQUAL to '0' 
THEN /*/Consignment/TransportEquipment/containerIdentificationNumber = "N" 
ELSE at least one iteration of /*/Consignment/TransportEquipment/containerIdentificationNumber = "R" (for the rest of iterations is optional)

CONDITION C0060

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/typeOfPackages is in SET CL181
THEN
 /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/shippingMarks = "O" AND /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages = "N"
ELSE IF /*/Consignment/HouseConsignment/ConsignmentItem/Packaging/typeOfPackages is in SET CL182
THEN
/*/Consignment/HouseConsignment/ConsignmentItem/Packaging/shippingMarks = "O"
AND
/*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages = "R"
ELSE
/*/Consignment/HouseConsignment/ConsignmentItem/Packaging/shippingMarks ="R"
AND
/*/Consignment/HouseConsignment/ConsignmentItem/Packaging/numberOfPackages = "R"

CONDITION C0085

Description (EN)
IF /*/Guarantee/guaranteeType is in SET CL076
THEN /*/Guarantee/GuaranteeReference = "R"
ELSE /*/Guarantee/GuaranteeReference = "N"

CONDITION C0086

Description (EN)
IF /*/Guarantee/guaranteeType is in SET CL286
THEN /*/Guarantee/GuaranteeReference/GRN = "R" AND /*/Guarantee/GuaranteeReference/accessCode = "R"
ELSE /*/Guarantee/GuaranteeReference/GRN = "N" AND /*/Guarantee/GuaranteeReference/accessCode = "N"

CONDITION C0101

Description (EN)
IF /*/TransitOperation/reducedDatasetIndicator is EQUAL to '1'
THEN /*/Authorisation = "R"
ELSE /*/Authorisation = "O"

CONDITION C0102

Description (EN)
IF /*/TransitOperation/simplifiedProcedure is EQUAL to '1'
THEN /CC007C/Authorisation = "R"
ELSE /CC007C/Authorisation = "N"

CONDITION C0130

Description (EN)
IF /*/Guarantee/guaranteeType is in SET {3,8}
THEN /*/Guarantee/otherGuaranteeReference = "R"
ELSE /*/Guarantee/otherGuaranteeReference = "N"

CONDITION C0153

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to ‘TIR’ AND
    /*/Consignment/HouseConsignment/PreviousDocument/type IS NOT EQUAL to ‘N830’ (Goods
           declaration for exportation)
THEN /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/CommodityCode = "O"
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/Commodity/CommodityCode = "R"

CONDITION C0170

Description (EN)
IF /CC015C/TransitOperation/reducedDatasetIndicator IS EQUAL TO '1' 
          OR /CC013C/TransitOperation/reducedDatasetIndicator IS EQUAL TO '1'
THEN /CC170C/Consignment/inlandModeOfTransport = "N"
ELSE /CC170C/Consignment/inlandModeOfTransport = "O"

CONDITION C0186

Description (EN)
IF /*/TransitOperation/security is EQUAL to '0'
THEN /*/Consignment/HouseConsignment/TransportCharges = "N"
 AND /*/Consignment/HouseConsignment/ConsignmentItem/TransportCharges = "N"
ELSE /*/Consignment/HouseConsignment/TransportCharges = "O"
 AND /*/Consignment/HouseConsignment/ConsignmentItem/TransportCharges = "O"

CONDITION C0191

Description (EN)
IF /*/TransitOperation/security is in SET {1, 3}
THEN
/*/Consignment/PlaceOfUnloading = "R"
ELSE
IF /*/TransitOperation/security is EQUAL to ‘0’
THEN
/*/Consignment/PlaceOfUnloading = "N"
ELSE
/*/Consignment/PlaceOfUnloading = "O"

CONDITION C0215

Description (EN)
IF /CC141C/Enquiry/text is PRESENT
THEN
       IF /CC141C/CustomsOfficeOfDestinationActual is PRESENT
       THEN /CC141C/Consignment = "O"
        ELSE /CC141C/Consignment = "R"
ELSE /CC141C/CustomsOfficeOfDestinationActual = "N"
AND /CC141C/Consignment = "N"

CONDITION C0220

Description (EN)
IF /CC141C/Enquiry/TC11DeliveryDate is PRESENT
THEN /CC141C/Enquiry/text = "R"
ELSE /CC141C/Enquiry/text = "O"

CONDITION C0250

Description (EN)
IF /*/HolderOfTheTransitProcedure/identificationNumber is PRESENT 
AND /*/HolderOfTheTransitProcedure/identificationNumber is a valid identifier in the European EOS ((Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
     /*/HolderOfTheTransitProcedure/name="N" AND
     /*/HolderOfTheTransitProcedure/Address="N"
ELSE 
      /*/HolderOfTheTransitProcedure/name="R" AND 
      /*/HolderOfTheTransitProcedure/Address="R";

IF /*/Consignment/Consignor/identificationNumber is PRESENT 
AND /*/Consignment/Consignor/identificationNumber is a valid identifier in in the European EOS ((Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
         /*/Consignment/Consignor/name="N" AND 
        /*/Consignment/Consignor/Address="N"
ELSE 
       /*/Consignment/Consignor/name="R" AND 
      /*/Consignment/Consignor/Address="R";

IF /*/Consignment/Consignee/identificationNumber is PRESENT
AND /*/Consignment/Consignee/identificationNumber is a valid identifier in the European EOS (Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
       /*/Consignment/Consignee/name="N" AND 
       /*/Consignment/Consignee/Address="N"
ELSE 
      /*/Consignment/Consignee/name="R" AND 
     /*/Consignment/Consignee/Address="R";

IF /*/Consignment/HouseConsignment/Consignor/identificationNumber is PRESENT
AND /*/Consignment/HouseConsignment/Consignor/identificationNumber is a valid identifier in the European EOS ((Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
       /*/Consignment/HouseConsignment/Consignor/name="N" AND
      /*/Consignment/HouseConsignment/Consignor/Address="N"
ELSE 
     /*/Consignment/HouseConsignment/Consignor/name="R" AND
     /*/Consignment/HouseConsignment/Consignor/Address="R";


IF /*/Consignment/HouseConsignment/Consignee/identificationNumber is PRESENT
AND /*/Consignment/HouseConsignment/Consignee/identificationNumber is a valid identifier in the European EOS ((Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
       /*/Consignment/HouseConsignment/Consignee/name="N" AND
      /*/Consignment/HouseConsignment/Consignee/Address="N"
ELSE 
     /*/Consignment/HouseConsignment/Consignee/name="R" AND
    /*/Consignment/HouseConsignment/Consignee/Address="R";


IF /*/Consignment/HouseConsignment/ConsignmentItem/Consignee/identificationNumber is PRESENT 
AND /*/Consignment/HouseConsignment/ConsignmentItem/Consignee/identificationNumber is a valid identifier in the European EOS ((Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
         /*/Consignment/HouseConsignment/ConsignmentItem/Consignee/name="N" AND
        /*/Consignment/HouseConsignment/ConsignmentItem/Consignee/Address="N"
ELSE 
      /*/Consignment/HouseConsignment/ConsignmentItem/Consignee/name="R" AND
     /*/Consignment/HouseConsignment/ConsignmentItem/Consignee/Address="R";

IF /*/Guarantor/identificationNumber is PRESENT 
AND /*/Guarantor/identificationNumber is a valid identifier in the European EOS ((Economic Operators Systems) verified by the EU Member State receiving or sending this message), OR is a valid identifier in the DB of the CTC country receiving or sending this message
THEN 
      /*/Guarantor/name="N" AND 
     /*/Guarantor/Address="N"
ELSE 
     /*/Guarantor/name="R" AND 
    /*/Guarantor/Address="R";

CONDITION C0298

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/quantity> is PRESENT
THEN  /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/measurementUnitAndQualifier = "R"
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/measurementUnitAndQualifier = "N"

CONDITION C0315

Description (EN)
IF /CC141C/ENQUIRY/TC11DeliveryDate is PRESENT
THEN /CC141C/CustomsOfficeOfDestinationActual = "R"
ELSE /CC141C/CustomsOfficeOfDestinationActual= "O"

CONDITION C0337

Description (EN)
IF /*/Consignment/TransportCharges is PRESENT
THEN
/*/Consignment/HouseConsignment/TransportCharges = "N"
ELSE /*/Consignment/HouseConsignment/TransportCharges = "O"

CONDITION C0343

Description (EN)
IF /*/Consignment/countryOfDestination is PRESENT
THEN /*/Consignment/HouseConsignment/countryOfDestination = "N" AND
	      /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination = "N"
ELSE 	IF /*/Consignment/HouseConsignment/countryOfDestination is PRESENT
		THEN /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination = "N"
		ELSE /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDestination = "R"

CONDITION C0352

Description (EN)
IF /*/TransitOperation/releaseIndicator is in SET {2,3}
THEN /*/Consignment = ''R'' 
	IF /*/TransitOperation/releaseIndicator is EQUAL 4
	THEN /*/Consignment = ''N'' 
	ELSE /*/Consignment = ''O''

CONDITION C0353

Description (EN)
IF /*/Consignment/HouseConsignment/releaseType is EQUAL to '1' 
THEN /*/Consignment/HouseConsignment/ConsignmentItem = ''R''
ELSE /*/Consignment/HouseConsignment/ConsignmentItem = ''N''

CONDITION C0382

Description (EN)
IF /*/Consignment/LocationOfGoods/PostcodeAddress/country is in SET CL198
THEN /*/Consignment/LocationOfGoods/PostcodeAddress/houseNumber = ''O''
ELSE /*/Consignment/LocationOfGoods/PostcodeAddress/houseNumber = ''R''

CONDITION C0387

Description (EN)
IF /*/Consignment/PlaceOfLoading/UNLocode is PRESENT
THEN /*/Consignment/PlaceOfLoading/country = "O" AND 
/*/Consignment/PlaceOfLoading/location = "O"
ELSE /*/Consignment/PlaceOfLoading/country = "R" AND  
/*/Consignment/PlaceOfLoading/location = "R";

IF /*/Consignment/PlaceOfUnloading/UNLocode is PRESENT
THEN /*/Consignment/PlaceOfUnloading/country = "O" AND 
/*/Consignment/PlaceOfUnloading/location = "O"
ELSE /*/Consignment/PlaceOfUnloading/country = "R" AND  
/*/Consignment/PlaceOfUnloading/location = "R"

CONDITION C0394

Description (EN)
IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'Z'
THEN
/*/Consignment/LocationOfGoods/Address = "R"
AND /*/Consignment/LocationOfGoods/authorisationNumber = "N"
AND /*/Consignment/LocationOfGoods/UNLocode = "N"
AND /*/Consignment/LocationOfGoods/CustomsOffice = "N"
AND /*/Consignment/LocationOfGoods/GNSS = "N"
AND /*/Consignment/LocationOfGoods/EconomicOperator = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "O"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "N"
ELSE IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'X'
THEN
/*/Consignment/LocationOfGoods/EconomicOperator = "R"
AND /*/Consignment/LocationOfGoods/UNLocode = "N"
AND /*/Consignment/LocationOfGoods/CustomsOffice = "N"
AND /*/Consignment/LocationOfGoods/GNSS = "N"
AND /*/Consignment/LocationOfGoods/authorisationNumber = "N"
AND /*/Consignment/LocationOfGoods/Address = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "O"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "N"
ELSE IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'Y'
THEN
/*/Consignment/LocationOfGoods/authorisationNumber = "R"
AND /*/Consignment/LocationOfGoods/UNLocode = "N"
AND /*/Consignment/LocationOfGoods/CustomsOffice = "N"
AND /*/Consignment/LocationOfGoods/GNSS = "N"
AND /*/Consignment/LocationOfGoods/EconomicOperator = "N"
AND /*/Consignment/LocationOfGoods/Address = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "O"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "N"
ELSE IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'W'
THEN
/*/Consignment/LocationOfGoods/GNSS = "R"
AND /*/Consignment/LocationOfGoods/UNLocode = "N"
AND /*/Consignment/LocationOfGoods/CustomsOffice = "N"
AND /*/Consignment/LocationOfGoods/EconomicOperator = "N"
AND /*/Consignment/LocationOfGoods/authorisationNumber = "N"
AND /*/Consignment/LocationOfGoods/Address = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "O"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "N"
ELSE IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'V'
THEN
/*/Consignment/LocationOfGoods/CustomsOffice = "R"
AND /*/Consignment/LocationOfGoods/UNLocode = "N"
AND /*/Consignment/LocationOfGoods/GNSS = "N"
AND /*/Consignment/LocationOfGoods/EconomicOperator = "N"
AND /*/Consignment/LocationOfGoods/authorisationNumber = "N"
AND /*/Consignment/LocationOfGoods/Address = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "N"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "N"
ELSE IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'U'
THEN
/*/Consignment/LocationOfGoods/UNLocode = "R"
AND/*/Consignment/LocationOfGoods/CustomsOffice = "N"
AND/*/Consignment/LocationOfGoods/GNSS = "N"
AND/*/Consignment/LocationOfGoods/authorisationNumber = "N"
AND/*/Consignment/LocationOfGoods/EconomicOperator = "N"
AND/*/Consignment/LocationOfGoods/Address = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "O"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "N"
ELSE IF /*/Consignment/LocationOfGoods/qualifierOfIdentification is EQUAL to 'T'
THEN
/*/Consignment/LocationOfGoods/Address = "N"
AND /*/Consignment/LocationOfGoods/authorisationNumber = "N"
AND /*/Consignment/LocationOfGoods/UNLocode = "N"
AND /*/Consignment/LocationOfGoods/CustomsOffice = "N"
AND /*/Consignment/LocationOfGoods/GNSS = "N"
AND /*/Consignment/LocationOfGoods/EconomicOperator = "N"
AND /*/Consignment/LocationOfGoods/ContactPerson = "O"
AND /*/Consignment/LocationOfGoods/PostcodeAddress = "R"

CONDITION C0409

Description (EN)
IF /*/TransitOperation/additionalDeclarationType = "D"
THEN /*/Consignment/PlaceOfLoading = "O"
ELSE
   IF the first two characters of the /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL289
   THEN /*/Consignment/PlaceOfLoading = “O”
   ELSE /*/Consignment/PlaceOfLoading = “R"

CONDITION C0411

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to 'TIR' 
THEN /*/TransitOperation/TIRCarnetNumber = "R"
ELSE /*/TransitOperation/TIRCarnetNumber = "N"

CONDITION C0412

Description (EN)
IF (/CC015C/Consignment/PlaceOfLoading is PRESENT OR /CCA15D/Consignment/PlaceOfLoading is PRESENT OR 
/CC013C/Consignment/PlaceOfLoading is PRESENT OR /CCA13D/Consignment/PlaceOfLoading is PRESENT)
THEN /CC170C/Consignment/PlaceOfLoading = "O"
ELSE
IF (/CCA15D/TransitOperation/security is in SET {0,2} OR /CCA13D/TransitOperation/security is in SET {0,2}) AND
the first two characters of /*/CustomsOfficeOfDeparture/referenceNumber is in SET CL289
THEN /*/Consignment/PlaceOfLoading = "O"
ELSE /*/Consignment/PlaceOfLoading = "R"

CONDITION C0440

Description (EN)
IF /CC043C/Consignment/TransportEquipment/numberOfSeals is NOT EQUAL to '0'
OR /CC043C/Consignment/Incident/TransportEquipment/numberOfSeals is NOT EQUAL to '0'
THEN /CC044C/UnloadingRemark/stateOfSeals = "R"
ELSE /CC044C/UnloadingRemark/stateOfSeals = "N"

CONDITION C0467

Description (EN)
IF /CC028C/TransitOperation/declarationAcceptanceDate> is PRESENT
THEN
/*/TransitOperation/MRN = "R" AND
/*/TransitOperation/LRN = "N"
ELSE /*/TransitOperation/MRN = "N" AND
/*/TransitOperation/LRN = "R"

CONDITION C0502

Description (EN)
IF /*/Consignment/referenceNumberUCR is PRESENT
THEN /*/Consignment/HouseConsignment/referenceNumberUCR = "N" AND
          /*/Consignment/HouseConsignment/ConsignmentItem/referenceNumberUCR = "N"
ELSE 
            IF /*/Consignment/HouseConsignment/referenceNumberUCR is PRESENT
            THEN /*/Consignment/HouseConsignment/ConsignmentItem/referenceNumberUCR = "N"
            ELSE
                    IF (/*/Consignment/TransportDocument is PRESENT OR
                    /*/Consignment/HouseConsignment/TransportDocument is PRESENT)
                    THEN /*/Consignment/HouseConsignment/ConsignmentItem/referenceNumberUCR = "O" 
                     ELSE /*/Consignment/HouseConsignment/ConsignmentItem/referenceNumberUCR = "R"

CONDITION C0505

Description (EN)
IF /*/HolderOfTheTransitProcedure/Address/country is in SET CL505
THEN /*/HolderOfTheTransitProcedure/Address/postcode = "O"
ELSE /*/HolderOfTheTransitProcedure/Address/postcode = "R";

IF /*/Consignment/Consignor/Address/country is in SET CL505
THEN /*/Consignment/Consignor/Address/postcode = "O"
ELSE /*/Consignment/Consignor/Address/postcode = "R";

IF /*/Consignment/Consignee/Address/country is in SET CL505
THEN /*/Consignment/Consignee/Address/postcode = "O"
ELSE /*/Consignment/Consignee/Address/postcode = "R";

IF /*/Consignment/Incident/Location/country is in SET CL505
THEN /*/Consignment/Incident/Location/Address/postcode = "O"
ELSE /*/Consignment/Incident/Location/Address/postcode = "R";

IF /*/Consignment/LocationOfGoods/Address/country is in SET CL505
THEN /*/Consignment/LocationOfGoods/Address/postcode = "O"
ELSE /*/Consignment/LocationOfGoods/Address/postcode = "R";

IF /*/Consignment/HouseConsignment/Consignor/Address/country is in SET CL505
THEN /*/Consignment/HouseConsignment/Consignor/Address/postcode = "O"
ELSE /*/Consignment/HouseConsignment/Consignor/Address/postcode = "R";

IF /*/Consignment/HouseConsignment/Consignee/Address/country is in SET CL505
THEN /*/Consignment/HouseConsignment/Consignee/Address/postcode = "O"
ELSE /*/Consignment/HouseConsignment/Consignee/Address/postcode = "R";

IF /*/Guarantor/Address/country is in SET CL505
THEN /*/Guarantor/Address/postcode = "O"
ELSE /*/Guarantor/Address/postcode = "R";

IF /*/GuaranteeReference/Guarantor/Address/country is in SET CL505
THEN /*/GuaranteeReference/Guarantor/Address/postcode = "O"
ELSE /*/GuaranteeReference/Guarantor/Address/postcode = "R";

IF /*/GuaranteeReference/Guarantor/AgentInCountryOfCompetentAuthority/Address/country is in SET CL505
THEN /*/GuaranteeReference/Guarantor/AgentInCountryOfCompetentAuthority/Address/postcode = "O"
ELSE /*/GuaranteeReference/Guarantor/AgentInCountryOfCompetentAuthority/Address/postcode = "R";

IF /*/GuaranteeReference/Owner/Address/country is in SET CL505
THEN /*/GuaranteeReference/Owner/Address/postcode = "O"
ELSE /*/GuaranteeReference/Owner/Address/postcode = "R";

IF /*/Consignment/ConsigneeActual/Address/country is in SET CL505
THEN /*/Consignment/ConsigneeActual/Address/postcode = "O"
ELSE /*/Consignment/ConsigneeActual/Address/postcode = "R"

CONDITION C0531

Description (EN)
IF /*/TransitOperation/security is in SET {1,2,3} 
AND /*/Consignment/modeOfTransportAtTheBorder is EQUAL to ‘4’
THEN /*/Consignment/ActiveBorderTransportMeans/conveyanceReferenceNumber = "R"
ELSE /*/Consignment/ActiveBorderTransportMeans/conveyanceReferenceNumber = "O"

CONDITION C0542

Description (EN)
IF /*/TransitOperation/security is EQUAL to '0' AND /*/TransitOperation/reducedDatasetIndicator is EQUAL to '1'
THEN
/*/Consignment/Consignor = "N" AND /*/Consignment/HouseConsignment/Consignor = "N"
ELSE
      IF /*/Consignment/Consignor is PRESENT
      THEN /*/Consignment/HouseConsignment/Consignor = "N"
     	       ELSE /*/Consignment/HouseConsignment/Consignor = "O"

CONDITION C0569

Description (EN)
IF /*/Consignment/Incident/TransportEquipment/numberOfSeals is GREATER than '0'
THEN
/*/Consignment/Incident/TransportEquipment/Seal = "R"
ELSE
/*/Consignment/Incident/TransportEquipment/Seal = "N";

IF /*/Consignment/TransportEquipment/numberOfSeals is GREATER than '0'
THEN
/*/Consignment/TransportEquipment/Seal = "R"
ELSE
/*/Consignment/TransportEquipment/Seal = "N"

CONDITION C0586

Description (EN)
IF /*/TransitOperation/bindingItinerary is EQUAL to ‘1’ 
        THEN /*/Consignment/CountryOfRoutingOfConsignment = "R" 
ELSE IF /*/Transit Operation/security is in SET {1, 2, 3} 
       THEN /*/Consignment/CountryOfRoutingOfConsignment = "R" 
ELSE /*/Consignment/CountryOfRoutingOfConsignment = "O"

CONDITION C0587

Description (EN)
IF /*/TransitOperation/security is in SET {2,3}
THEN 
IF the first two characters of at least one iteration of the 
/*/CustomsOfficeOfTransitDeclared/referenceNumber is NOT in SET CL147
THEN /*/CustomsOfficeOfExitForTransitDeclared = "O"
ELSE /*/CustomsOfficeOfExitForTransitDeclared = "N"

CONDITION C0598

Description (EN)
IF /*/TransitOperation/security is in SET {1, 3} AND 
the first two characters of the /*/CustomsOfficeOfTransitDeclared/referenceNumber is in SET CL147
THEN /*/CustomsOfficeOfTransitDeclared/arrivalDateAndTimeEstimated ="R"
ELSE /*/CustomsOfficeOfTransitDeclared/arrivalDateAndTimeEstimated = "O"

CONDITION C0599

Description (EN)
IF /*/TransitOperation/security is in SET {1,2,3} AND
/*/TransitOperation/additionalDeclarationType is EQUAL to ‘A’
THEN /*/Consignment/modeOfTransportAtTheBorder = "R"
ELSE /*/Consignment/modeOfTransportAtTheBorder = "O"

CONDITION C0600

Description (EN)
IF  (/CC013C/TransitOperation/security is in SET {1,2,3}) OR (/CC015C/TransitOperation/security is in SET {1,2,3}) 
THEN
 /CC170C/Consignment/modeOfTransportAtTheBorder = "R"
ELSE /CC170C/Consignment/modeOfTransportAtTheBorder = "O"

CONDITION C0670

Description (EN)
IF /*/Consignment/TransportEquipment is PRESENT only once
THEN /*/Consignment/TransportEquipment/GoodsReference = "O"
ELSE /*/Consignment/TransportEquipment/GoodsReference = "R"

CONDITION C0671

Description (EN)
IF /*/Consignment/LocationOfGoods/EconomicOperator/identificationNumber is PRESENT
OR /*/Consignment/LocationOfGoods/authorisationNumber is PRESENT
THEN /*/Consignment/LocationOfGoods/additionalIdentifier = "O"
ELSE /*/Consignment/LocationOfGoods/additionalIdentifier = "N"

CONDITION C0806

Description (EN)
IF /*/Consignment/modeOfTransportAtTheBorder is EQUAL to '5'
THEN /*/Consignment/ActiveBorderTransportMeans = “N”
ELSE
IF (/*/TransitOperation/security is in SET {1,2,3} AND
/*/TransitOperation/additionalDeclarationType is EQUAL to ‘A’)
THEN /*/Consignment/ActiveBorderTransportMeans = “R”
ELSE /*/Consignment/ActiveBorderTransportMeans = “O”

CONDITION C0807

Description (EN)
IF /CC170C/Consignment/modeOfTransportAtTheBorder is EQUAL to '5'
THEN /CC170C/Consignment/ActiveBorderTransportMeans = “N” 
ELSE 
            IF /CC015C/TransitOperation/security is in SET {1,2,3}
            AND /CC013C/Consignment/ActiveBorderTransportMeans is NOT PRESENT
            AND /CC015C/Consignment/ActiveBorderTransportMeans is NOT PRESENT
            THEN /CC170C/Consignment/ActiveBorderTransportMeans = “R” 
            ELSE /CC170C/Consignment/ActiveBorderTransportMeans = “O”

CONDITION C0822

Description (EN)
IF /*/TransitOperation/additionalDeclarationType is EQUAL to 'D'
THEN /*/Consignment/containerIndicator = "O"
ELSE /*/Consignment/containerIndicator = "R"

CONDITION C0823

Description (EN)
IF /*/Consignment/containerIndicator is PRESENT
THEN
     IF /*/Consignment/containerIndicator is EQUAL to ‘1’
     THEN /*/Consignment/TransportEquipment = "R"
     ELSE /*/Consignment/TransportEquipment = "O"
ELSE /*/Consignment/TransportEquipment = "N"

CONDITION C0824

Description (EN)
IF /CC015C/Consignment/containerIndicator AND /CC013C/Consignment/containerIndicator is PRESENT 
THEN /CC170C/Consignment/containerIndicator = "O"
ELSE /CC170C/Consignment/containerIndicator = "R"

CONDITION C0826

Description (EN)
IF /*/Consignment/inlandModeOfTransport is EQUAL to '5'
THEN
/*/Consignment/DepartureTransportMeans = “N” AND /*/Consignment/HouseConsignment/DepartureTransportMeans = "N"
ELSE
IF /*/Consignment/DepartureTransportMeans is PRESENT
THEN /*/Consignment/HouseConsignment/DepartureTransportMeans = "N"
ELSE /*/Consignment/HouseConsignment/DepartureTransportMeans = "O"

CONDITION C0833

Description (EN)
IF /*/Consignment/inlandModeOfTransport is EQUAL to '5'
THEN
/CC170C/Consignment/DepartureTransportMeans = “N” AND
/CC170C/Consignment/HouseConsignment/DepartureTransportMeans = “N”
ELSE 
IF /CC015C/Consignment/DepartureTransportMeans is NOT PRESENT AND
/CC015C/Consignment/HouseConsignment/DepartureTransportMeans is NOT PRESENT AND  /CC013C/Consignment/DepartureTransportMeans is NOT PRESENT AND
/CC013C/Consignment/HouseConsignment/DepartureTransportMeans is NOT PRESENT
THEN
 IF /CC170C/Consignment/DepartureTransportMeans is PRESENT
THEN /CC170C/Consignment/HouseConsignment/DepartureTransportMeans = "N"
ELSE /CC170C/Consignment/HouseConsignment/DepartureTransportMeans = "O"

CONDITION C0837

Description (EN)
IF country regime of Montenegro is EU (
IF /*/Consignment/HouseConsignment/PreviousDocument/ is PRESENT
THEN
/*/Consignment/HouseConsignment/ConsignmentItem/Commodity/ GoodsMeasure ="R"
AND
/*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/netMass = "R"
ELSE IF /*/ TransitOperation/reducedDatasetIndicator is EQUAL TO ‘1’
THEN
/*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure = "O"
AND
/*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/netMass = "N"
ELSE
/*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure ="O"
AND
/*/Consignment/HouseConsignment/ConsignmentItem/Commodity/GoodsMeasure/netMass = "O"
)

CONDITION C0839

Description (EN)
IF /*/Authorisation/type is NOT EQUAL to 'C521' 
THEN 
        /*/TransitOperation/limitDate = “N”
ELSE 
       IF /*/TransitOperation/additionalDeclarationType is EQUAL to 'D'
       THEN 
              /*/TransitOperation/limitDate = “O”
        ELSE 
               /*/TransitOperation/limitDate = “R”

CONDITION C0840

Description (EN)
IF /CC015C/Authorisation/type is NOT EQUAL to 'C521' OR /CC013C/Authorisation/type is NOT EQUAL to 'C521' 
THEN /CC170C/TransitOperation/limitDate = “N”
ELSE
IF /CC015C/TransitOperation/limitDate is NOT PRESENT AND /CC013C/TransitOperation/limitDate is NOT PRESENT
THEN /CC170C/TransitOperation/limitDate = “R”
ELSE /CC170C/TransitOperation/limitDate = “O”

CONDITION C0904

Description (EN)
IF /*/TransitOperation/declarationType is PRESENT
THEN IF /*/TransitOperation/declarationType is EQUAL to 'TIR'
           THEN /*/HolderOfTheTransitProcedure/TIRHolderIdentificationNumber = "R"
           ELSE /*/HolderOfTheTransitProcedure/TIRHolderIdentificationNumber = "N"
ELSE IF /CC015C/TransitOperation/declarationType is EQUAL to 'TIR' OR 
/CC013C/TransitOperation/declarationType is EQUAL to 'TIR'
         THEN /*/HolderOfTheTransitProcedure/TIRHolderIdentificationNumber = "R"
         ELSE /*/HolderOfTheTransitProcedure/TIRHolderIdentificationNumber = "N"

CONDITION C0909

Description (EN)
IF /*/Consignment/countryOfDispatch is PRESENT
    THEN
    /*/Consignment/HouseConsignment/countryOfDispatch = "N" AND
    /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDispatch = "N"
    ELSE IF /*/Consignment/HouseConsignment/countryOfDispatch is PRESENT
    THEN
     /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDispatch = "N"
     ELSE
      /*/Consignment/HouseConsignment/ConsignmentItem/countryOfDispatch = "R"

CONDITION C0930

Description (EN)
IF /*/ControlResult/code is in {B1, A5}
THEN
(/*/Consignment = “R” AND /*/TransitOperation/otherThingsToReport = “O” ) OR (/*/Consignment = “O” AND /*/TransitOperation/otherThingsToReport = “R”) 
ELSE
/*/Consignment = “N” AND /*/TransitOperation/otherThingsToReport = “O”

CONDITION CN001

Description (EN)
IF TransitOperation.FallbackProcedure is true THEN the element SHALL be used ELSE the element CANNOT be used.

CONDITION CN002

Description (EN)
IF /*/Consignment/HouseConsignment/ConsignmentItem/wasteType is EQUAL to 'WZE' 
THEN /*/Consignment/HouseConsignment/ConsignmentItem/wasteRecoveryMethod = "R"
ELSE /*/Consignment/HouseConsignment/ConsignmentItem/wasteRecoveryMethod = "N"

CONDITION CN008

Description (EN)
D.I. must be used when UnloadingRemark/Conform is false

CONDITION CN012

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to  'TIR'
THEN
 /*/TransitOperation/TIRVoucherNumber = "R"
 /*/TransitOperation/TIRUnloadingCode = "R"
ELSE
 /*/TransitOperation/TIRVoucherNumber = "N"
 /*/TransitOperation/TIRUnloadingCode = "N"

CONDITION CN013

Description (EN)
IF /*/TransitOperation/bindingItinerary is EQUAL to true
THEN
 /*/TransitOperation/geographicalSpecification = "O"
ELSE
 /*/TransitOperation/geographicalSpecification = "N"

CONDITION CN019

Description (EN)
IF /*/TransitOperation/declarationType is EQUAL to  "T","T1","T2F","T2SM","TIR" and /*/FreeZone is empty
THEN /*/Consignment/TemporaryStorage = "R" 
Else /*/Consignment/TemporaryStorage = "0" 

CONDITION CN020

Description (EN)
This element is required for write-off from customs warehouse (PreviousDocument/type = ["NMRN"]).

CONDITION CN021

Description (EN)
IF PreviousDocument/type = "NMRN" exists, this element is required.

CONDITION CN029

Description (EN)
Required for write-off from temporary warehouse.

CONDITION CN030

Description (EN)
IF type of previous document = [N337, N355] (temporary warehouse)
THEN IF element quantity has value
	THEN this element can't be filled in
	ELSE this element is required

CONDITION CN031

Description (EN)
IF type of previous document = [N337, N355] (temporary warehouse)
THEN IF elements type of packages and number of packages have value
	THEN this element can't be filled in
	ELSE this element is required

CONDITION CN037

Description (EN)
IF /*/Guarantee/guaranteeType is EQUAL to "9110" or "9ZD1"
THEN /*/Guarantee/GuaranteeReference/accessCode = "R"
ELSE /*/Guarantee/GuaranteeReference/accessCode = "N"

CONDITION CN038

Description (EN)
IF Inland Mode Of Transport = 5, THEN group DepartureTransportMeans is not used.
IF the goods are shipped via containers, THEN DepartureTransportMean is optional. 
IF HolderOfTransit holds AEO or AEOC certificate (D.G. AdditionalReference contains item with type = "Y026"), THEN DepartureTransportMeans is optional. 
For all other data combinations, DepartureTransportMean is required.

CONDITION CN039

Description (EN)
Required for export followed by transit

CONDITION CN040

Description (EN)
IF /Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/type in [N355,N337] (write-off from temporary warehouse)
THEN /Consignment/HouseConsignment/ConsignmentItem/PreviousDocument/goodsItemNumber = "R"

CONDITION CN043

Description (EN)
IF the element PreviousDocument/type is equal "N830"
THEN the group AdditionalInformation must be used. 

CONDITION CN044

Description (EN)
IF CO of Departure filled in transit declaration is not set in security zone AND CO of Destination Actual equals CO of Transit filled in declaration
THEN it is CO of first entery and data group Consignment/PreviousENS = R, 
ELSE Consignment/PreviousENS = O

CONDITION CN045

Description (EN)
IF this iteration of PreviousDocument contains houseConsignmentSequenceNumber or transportDocumentReferenceNumber 
THEN this element is optional
ELSE this element is not used

CONDITION CN047

Description (EN)
IF this /*/GoodsShipment/GoodsItem/AdditionalReference/type is a code of licence
THEN  /*/GoodsShipment/GoodsItem/AdditionalReference/issuingCountry = "R"
ELSE   /*/GoodsShipment/GoodsItem/AdditionalReference/issuingCountry = "N"

CONDITION CN085

Description (EN)
IF /*/Guarantee/guaranteeType is in NOT "9NCK"
THEN /*/Guarantee/GuaranteeReference = "R"
ELSE /*/Guarantee/GuaranteeReference = "N"

CONDITION CN086

Description (EN)
IF je /*/Guarantee/guaranteeType is EQUAL "9ZD1", 
THEN /*/Guarantee/GuaranteeReference/amount="R", 
ELSE   /*/Guarantee/GuaranteeReference/amount="N".

CONDITION CN087_Representative

Description
 

CONDITION CN130

Description (EN)
IF /*/Guarantee/guaranteeType is EQUAL to "93CJ" and /*/Guarantee/GuaranteeReference/GRN is NOT present,
THEN /*/Guarantee/otherGuaranteeReference = "R",
ELSE 
   IF /*/Guarantee/guaranteeType is EQUAL to "93CJ" 
   THEN */Guarantee/otherGuaranteeReference = "O",
   ELSE */Guarantee/otherGuaranteeReference = "N"

CONDITION CN710

Description (EN)
IF /*/TransitOperation/Additional declaration type> is EQUAL to 'D'
THEN /*/Consignment/LocationOfGoods = "O"
ELSE /*/Consignment/LocationOfGoods = "R"

CONDITION S1018

Description (EN)
The validation of particular Data Group/Item shall be performed in the following sequence: C0215 > C0315
(Generated: 09.10.2026 15:00:55)