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:

  1. The declaration must have a date defined with the date qualifier ID of EXPORT DATE.
  2. The declaration must have a reference number with the reference number qualifier ID of SHIPMENT REFERENCE NUMBER.
  3. The declaration must have at least three remarks with the following remark qualifier IDs: RELATED COMPANY, EXPORT INFORMATION CODE, and FILING OPTION.
  4. 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.
  5. The declaration must have a transport mode.
  6. 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.
  7. The declaration must have at least three involved parties, using the involved party qualifier IDs of USPPI, ULTIMATE CONSIGNEE, and CARRIER.
  8. 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.
  9. The declaration should have at least one reportable line, and up to a maximum of 999 reportable lines.
  10. Each reportable line can only have one control of reportable regimes.
  11. Each reportable line must have a quantity with the quantity qualifier ID of TOTAL GROSS WEIGHT.
  12. 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.