Document Validation
Associated with each document type are validation rules. At the time of document generation, the document generation mechanism checks the document content against these rules. Validation rules are implemented as saved queries, so you can add additional rules or modify any existing rules associated with a document type. Validation rules can be defined using the Document Validation Rules power data page. Validation rules are associated with a document type, on the Document Type power data page.
The following rules are pre-defined for the AES_FILING document type:
- The declaration must have a date defined with the date qualifier ID of EXPORT DATE.
- The declaration must have a reference number with the reference number qualifier ID of SHIPMENT REFERENCE NUMBER.
- The declaration must have at least three remarks with the following remark qualifier IDs: RELATED COMPANY, EXPORT INFORMATION CODE, and FILING OPTION.
- The declaration must have a port defined using the port qualifier ID of PORT OF EXPORT and the port location must match a value from the Census Schedule-D list of locations.
- The declaration must have a transport mode.
- If the transport mode is one of VESSEL-CH, VESSEL-CO, or VESSEL-NO, the declaration must have a port with the port qualifier ID of PORT OF UNLADING and the port location must match a value from the AES Schedule-K list of locations.
- The declaration must have at least three involved parties, using the involved party qualifier IDs of USPPI, ULTIMATE CONSIGNEE, and CARRIER.
- The USPPI and ULTIMATE CONSIGNEE should have first name, last name, and address (including country) information. The ULTIMATE CONSIGNEE must have a consignee type defined in UTLIMATE CONSIGNEE TYPE.
- The declaration should have at least one reportable line, and up to a maximum of 999 reportable lines.
- Each reportable line can only have one control of reportable regimes.
- Each reportable line must have a quantity with the quantity qualifier ID of TOTAL GROSS WEIGHT.
- Each reportable line must have an HTS and/or Schedule-B classification code. If there is no Schedule-B classification code available, the HTS classification code on the line must be allowed by AES. An HTS classification code is allowed by AES, if that classification code has a classification code attribute of IS_AES_REPORTABLE with attribute value Yes.