Create Reports Using SQL
Use the OPUS Track and Trace Lakehouse SQL table to create custom reports in OPUS Reports and Dashboards (ORD). The table provide access to Lakehouse serialization data, including event, product, lot, serial number, location, and transaction information. Use the table reference in this section to identify the fields and data types available for reporting, and use the sample query as a starting point for retrieving and organizing Lakehouse data based on specific reporting requirements.
OPUS Track and Trace Lakehouse displays reports that are created and configured in OPUS Reports and Dashboards. For more information about creating and configuring reports using SQL, see the OPUS Reports and Dashboards help center.
WITH recent_events AS (
SELECT
f.epochEventDateTime,
f.epochWorkflowProcessedTimestamp,
f.correlationIdentifier,
f.eventName,
f.packagingItemCode,
f.packagingItemCodeType,
f.lotNumber,
f.serialNumberState,
f.itemState,
f.locationIdentifierValue,
f.locationIdentifierType,
f.locationAddress.businessName AS eventBusinessName,
f.shipToLocation.businessIdentifiers AS shipToBusinessIdentifiers,
f.shipToLocation.businessName AS shipToBusinessName,
f.serialNumberInformationList
FROM ttlm_lakehouse.lakeHouseSerializationEvent f
WHERE f.epochEventDateTime >= DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH)
AND f.epochEventDateTime < DATE_ADD(CURRENT_DATE(), INTERVAL 1 DAY)
),
ranked_serial_events AS (
SELECT
sn.serial_info.serialNumber AS serialNumber,
e.eventName,
e.packagingItemCode,
e.packagingItemCodeType,
e.lotNumber,
e.serialNumberState,
e.itemState,
e.locationIdentifierValue,
e.locationIdentifierType,
e.eventBusinessName,
e.shipToBusinessIdentifiers,
e.shipToBusinessName,
ROW_NUMBER() OVER (
PARTITION BY sn.serial_info.serialNumber
ORDER BY
e.epochEventDateTime DESC,
e.epochWorkflowProcessedTimestamp DESC,
e.correlationIdentifier DESC
) AS event_rank
FROM recent_events e,
UNNEST(e.serialNumberInformationList) AS sn(serial_info)
),
location_identifiers AS (
SELECT
r.serialNumber,
r.locationIdentifierValue,
r.locationIdentifierType,
r.eventBusinessName AS businessName,
r.packagingItemCode,
r.packagingItemCodeType,
r.lotNumber,
r.serialNumberState,
r.itemState
FROM ranked_serial_events r
WHERE r.event_rank = 1
AND r.eventName NOT IN ('SHIPMENT', 'RECEIPT')
UNION ALL
SELECT
r.serialNumber,
identifier.identifierValue AS locationIdentifierValue,
identifier.locationIdentifierType AS locationIdentifierType,
r.shipToBusinessName AS businessName,
r.packagingItemCode,
r.packagingItemCodeType,
r.lotNumber,
r.serialNumberState,
r.itemState
FROM ranked_serial_events r,
UNNEST(r.shipToBusinessIdentifiers) AS ids(identifier)
WHERE r.event_rank = 1
AND r.eventName IN ('SHIPMENT', 'RECEIPT')
)
SELECT
locationIdentifierValue,
locationIdentifierType,
businessName,
packagingItemCode,
packagingItemCodeType,
lotNumber,
serialNumberState,
itemState,
COUNT(DISTINCT serialNumber) AS serialNumberCount
FROM location_identifiers
GROUP BY
locationIdentifierValue,
locationIdentifierType,
businessName,
packagingItemCode,
packagingItemCodeType,
lotNumber,
serialNumberState,
itemState
ORDER BY
businessName,
locationIdentifierType,
locationIdentifierValue,
packagingItemCode,
packagingItemCodeType,
lotNumber,
serialNumberState,
itemState;
| Field | Type | Nullable | Source Key Flag | Description |
|---|---|---|---|---|
| reportingPartyIdentifierType | VARCHAR(65533) | YES | false | Reporting Party Identifier Type associated with the record. |
| isShipmentEvent | BOOLEAN | YES | false | Flag indicating whether the record represents a shipment event. |
| contractType | VARCHAR(65533) | YES | false | Contract Type associated with the record. |
| deliveryInspectionNote | VARCHAR(65533) | YES | false | Delivery Inspection Note associated with the record. |
| parentSerialNumber | VARCHAR(65533) | YES | false | Parent Serial Number associated with the record. |
| eventRetractionReason | VARCHAR(65533) | YES | false | Event Retraction Reason associated with the record. |
| productName | VARCHAR(65533) | YES | false | Product Name associated with the record. |
| commissionLineManagerName | VARCHAR(65533) | YES | false | Commission Line Manager Name associated with the record. |
| serialNumberEncodingEnum | VARCHAR(65533) | YES | false | Serial Number Encoding Enum associated with the record. |
| shipToLocation | STRUCT<`country` VARCHAR(65533), `lscaddressidentifier` VARCHAR(65533), `address2` VARCHAR(65533), `city` VARCHAR(65533), `address1` VARCHAR(65533), `postalcode` VARCHAR(65533), `businessname` VARCHAR(65533), `defaultfrommasterdata` VARCHAR(65533), `housenumber` VARCHAR(65533), `premisescode` VARCHAR(65533), `businesstaxregistrationcode` VARCHAR(65533), `contactdetail` STRUCT<`contacttitle` VARCHAR(65533), `faxnumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contactemail` VARCHAR(65533), `contactname` VARCHAR(65533), `contactfaxnumber` VARCHAR(65533), `telephonenumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contacturl` VARCHAR(65533), `contacttype` VARCHAR(65533), `contactphone` VARCHAR(65533)>, `district` VARCHAR(65533), `businessidentifiers` ARRAY<STRUCT<`locationidentifiertype` VARCHAR(65533), `identifiervalue` VARCHAR(65533)>>, `state` VARCHAR(65533), `businesstype` VARCHAR(65533), `village` VARCHAR(65533), `fax` VARCHAR(65533), `township` VARCHAR(65533), `licensenumberdetails` ARRAY<STRUCT<`licenseissuingagency` VARCHAR(65533), `lsclicenseidentifier` VARCHAR(65533), `licensestateorregion` VARCHAR(65533), `action` VARCHAR(65533), `licensecountry` VARCHAR(65533), `licensenumber` VARCHAR(65533)>>> | YES | false | Destination location, including address, contacts, identifiers, and licenses. |
| productDescription | VARCHAR(65533) | YES | false | Product Description associated with the record. |
| isInferred | BOOLEAN | YES | false | Flag indicating whether the event is inferred. |
| epochDeliveryInspectionDateTime | DATE | YES | false | Delivery inspection date; stored as DATE. |
| unitPrice | VARCHAR(65533) | YES | false | Unit price represented as text in the supplied schema. |
| valueAddedTax | DOUBLE | YES | false | Value–added tax value; whether this is an amount or rate is unspecified. |
| referenceIdentifier | VARCHAR(65533) | YES | false | Reference Identifier associated with the record. |
| transactionIdentifiers | ARRAY<STRUCT<`transactionidentifierdatetimestamp` BIGINT, `transactionidentifiervalue` VARCHAR(65533), `transactionidentifiertype` VARCHAR(65533)>> | YES | false | List of transaction identifiers, types, and timestamps. |
| transportationCarrier | ARRAY<STRUCT<`country` VARCHAR(65533), `lscaddressidentifier` VARCHAR(65533), `address2` VARCHAR(65533), `city` VARCHAR(65533), `address1` VARCHAR(65533), `postalcode` VARCHAR(65533), `businessname` VARCHAR(65533), `defaultfrommasterdata` VARCHAR(65533), `housenumber` VARCHAR(65533), `premisescode` VARCHAR(65533), `businesstaxregistrationcode` VARCHAR(65533), `contactdetail` STRUCT<`contacttitle` VARCHAR(65533), `faxnumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contactemail` VARCHAR(65533), `contactname` VARCHAR(65533), `contactfaxnumber` VARCHAR(65533), `telephonenumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contacturl` VARCHAR(65533), `contacttype` VARCHAR(65533), `contactphone` VARCHAR(65533)>, `district` VARCHAR(65533), `businessidentifiers` ARRAY<STRUCT<`locationidentifiertype` VARCHAR(65533), `identifiervalue` VARCHAR(65533)>>, `state` VARCHAR(65533), `businesstype` VARCHAR(65533), `village` VARCHAR(65533), `fax` VARCHAR(65533), `township` VARCHAR(65533), `licensenumberdetails` ARRAY<STRUCT<`licenseissuingagency` VARCHAR(65533), `lsclicenseidentifier` VARCHAR(65533), `licensestateorregion` VARCHAR(65533), `action` VARCHAR(65533), `licensecountry` VARCHAR(65533), `licensenumber` VARCHAR(65533)>>>> | YES | false | List of transportation carriers using the location/party structure. |
| rowIdentifier | VARCHAR(65533) | YES | false | Row identifier; no uniqueness constraint is supplied. |
| packagingCode | VARCHAR(65533) | YES | false | Packaging Code associated with the record. |
| packagingCodeType | VARCHAR(65533) | YES | false | Packaging Code Type associated with the record. |
| isAttemptDisaggregation | BOOLEAN | YES | false | Flag indicating an attempted disaggregation. |
| applicationContext | VARCHAR(65533) | YES | false | Application Context associated with the record. |
| customerDataDetails | ARRAY<STRUCT<`customerdataname` VARCHAR(65533), `customerdatavalue` VARCHAR(65533)>> | YES | false | List of customer–defined name/value pairs. |
| destructionMethod | VARCHAR(65533) | YES | false | Destruction Method associated with the record. |
| shipToLocationLabel | VARCHAR(65533) | YES | false | Ship To Location Label associated with the record. |
| shipFromLocationLabel | VARCHAR(65533) | YES | false | Ship From Location Label associated with the record. |
| isDropShipment | BOOLEAN | YES | false | Flag indicating a drop shipment. |
| soldToParty | STRUCT<`country` VARCHAR(65533), `lscaddressidentifier` VARCHAR(65533), `address2` VARCHAR(65533), `city` VARCHAR(65533), `address1` VARCHAR(65533), `postalcode` VARCHAR(65533), `businessname` VARCHAR(65533), `defaultfrommasterdata` VARCHAR(65533), `housenumber` VARCHAR(65533), `premisescode` VARCHAR(65533), `businesstaxregistrationcode` VARCHAR(65533), `contactdetail` STRUCT<`contacttitle` VARCHAR(65533), `faxnumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contactemail` VARCHAR(65533), `contactname` VARCHAR(65533), `contactfaxnumber` VARCHAR(65533), `telephonenumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contacturl` VARCHAR(65533), `contacttype` VARCHAR(65533), `contactphone` VARCHAR(65533)>, `district` VARCHAR(65533), `businessidentifiers` ARRAY<STRUCT<`locationidentifiertype` VARCHAR(65533), `identifiervalue` VARCHAR(65533)>>, `state` VARCHAR(65533), `businesstype` VARCHAR(65533), `village` VARCHAR(65533), `fax` VARCHAR(65533), `township` VARCHAR(65533), `licensenumberdetails` ARRAY<STRUCT<`licenseissuingagency` VARCHAR(65533), `lsclicenseidentifier` VARCHAR(65533), `licensestateorregion` VARCHAR(65533), `action` VARCHAR(65533), `licensecountry` VARCHAR(65533), `licensenumber` VARCHAR(65533)>>> | YES | false | Buyer party, including address, contacts, identifiers, and licenses. |
| serialNumberCount | INT | YES | false | Count of serial numbers. |
| saleType | VARCHAR(65533) | YES | false | Sale Type associated with the record. |
| eventSource | VARCHAR(65533) | YES | false | Event Source associated with the record. |
| actionEPCIS | VARCHAR(65533) | YES | false | EPCIS action associated with the event. |
| businessStep | VARCHAR(65533) | YES | false | Business process step associated with the event. |
| commissionPlantLocationIdentifier | VARCHAR(65533) | YES | false | Commission Plant Location Identifier associated with the record. |
| epochExpirationDateTime | DATE | YES | false | Expiration date; stored as DATE. |
| productLabelDetail | VARCHAR(65533) | YES | false | Product Label Detail associated with the record. |
| soldToPartyLabel | VARCHAR(65533) | YES | false | Sold To Party Label associated with the record. |
| userIdentifier | VARCHAR(65533) | YES | false | User Identifier associated with the record. |
| marketCountryCode | VARCHAR(65533) | YES | false | Market Country Code associated with the record. |
| supplyType | VARCHAR(65533) | YES | false | Supply Type associated with the record. |
| userEmail | VARCHAR(65533) | YES | false | User Email associated with the record. |
| reasonCode | VARCHAR(65533) | YES | false | Reason Code associated with the record. |
| sourceApplication | VARCHAR(65533) | YES | false | Source Application associated with the record. |
| shipFromCountryCode | VARCHAR(65533) | YES | false | Ship From Country Code associated with the record. |
| shipFromLocation | STRUCT<`country` VARCHAR(65533), `lscaddressidentifier` VARCHAR(65533), `address2` VARCHAR(65533), `city` VARCHAR(65533), `address1` VARCHAR(65533), `postalcode` VARCHAR(65533), `businessname` VARCHAR(65533), `defaultfrommasterdata` VARCHAR(65533), `housenumber` VARCHAR(65533), `premisescode` VARCHAR(65533), `businesstaxregistrationcode` VARCHAR(65533), `contactdetail` STRUCT<`contacttitle` VARCHAR(65533), `faxnumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contactemail` VARCHAR(65533), `contactname` VARCHAR(65533), `contactfaxnumber` VARCHAR(65533), `telephonenumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contacturl` VARCHAR(65533), `contacttype` VARCHAR(65533), `contactphone` VARCHAR(65533)>, `district` VARCHAR(65533), `businessidentifiers` ARRAY<STRUCT<`locationidentifiertype` VARCHAR(65533), `identifiervalue` VARCHAR(65533)>>, `state` VARCHAR(65533), `businesstype` VARCHAR(65533), `village` VARCHAR(65533), `fax` VARCHAR(65533), `township` VARCHAR(65533), `licensenumberdetails` ARRAY<STRUCT<`licenseissuingagency` VARCHAR(65533), `lsclicenseidentifier` VARCHAR(65533), `licensestateorregion` VARCHAR(65533), `action` VARCHAR(65533), `licensecountry` VARCHAR(65533), `licensenumber` VARCHAR(65533)>>> | YES | false | Origin location, including address, contacts, identifiers, and licenses. |
| isCorrectiveShipment | BOOLEAN | YES | false | Flag indicating a corrective shipment. |
| portalAccessCode | VARCHAR(65533) | YES | false | Portal Access Code associated with the record. |
| serialNumberInformationList | ARRAY<STRUCT<`serialnumber` VARCHAR(65533), `serialnumberencoding` VARCHAR(65533), `electronicproductcode` VARCHAR(65533)>> | YES | false | List of serial numbers, encodings, and electronic product codes. |
| packagingItemCode | VARCHAR(65533) | YES | false | Packaging Item Code associated with the record. |
| lotNumber | VARCHAR(65533) | YES | false | Lot Number associated with the record. |
| isDisaggregateFromParent | BOOLEAN | YES | false | Flag indicating disaggregation from a parent. |
| deliveryInspection | VARCHAR(65533) | YES | false | Delivery Inspection associated with the record. |
| marketList | ARRAY<VARCHAR(65533)> | YES | false | List of market values. |
| locationIdentifierValue | VARCHAR(65533) | YES | false | Location Identifier Value associated with the record. |
| disposition | VARCHAR(65533) | YES | false | Disposition associated with the event. |
| productPackageSize | VARCHAR(65533) | YES | false | Product Package Size associated with the record. |
| productCode | VARCHAR(65533) | YES | false | Product Code associated with the record. |
| correlationIdentifier | VARCHAR(65533) | YES | false | Correlation Identifier associated with the record. |
| entryPort | VARCHAR(65533) | YES | false | Entry Port associated with the record. |
| currencyCode | VARCHAR(65533) | YES | false | Currency Code associated with the record. |
| parentPackagingLevel | VARCHAR(65533) | YES | false | Parent Packaging Level associated with the record. |
| packagingLevel | VARCHAR(65533) | YES | false | Packaging Level associated with the record. |
| reasonText | VARCHAR(65533) | YES | false | Reason Text associated with the record. |
| epochEffectiveDateTime | DATE | YES | false | Effective date; stored as DATE. |
| isSerialized | BOOLEAN | YES | false | Flag indicating whether the item is serialized. |
| orderItemTransactionIdentifiers | ARRAY<STRUCT<`transactionidentifierdatetimestamp` BIGINT, `transactionidentifiervalue` VARCHAR(65533), `transactionidentifiertype` VARCHAR(65533)>> | YES | false | List of order–item transaction identifiers, types, and timestamps. |
| itemState | VARCHAR(65533) | YES | false | Item State associated with the record. |
| grossPrice | DOUBLE | YES | false | Gross price represented as DOUBLE. |
| epochOrderTime | BIGINT | YES | false | Order time as a BIGINT; epoch unit is unspecified. |
| infoExchangeFileName | VARCHAR(65533) | YES | false | Info Exchange File Name associated with the record. |
| purchaseOrderLineItem | VARCHAR(65533) | YES | false | Purchase Order Line Item associated with the record. |
| eventName | VARCHAR(65533) | YES | false | Event name stored in the table; separate from the API response header eventName. |
| isDeliveryComplete | BOOLEAN | YES | false | Flag indicating whether delivery is complete. |
| soldFromParty | STRUCT<`country` VARCHAR(65533), `lscaddressidentifier` VARCHAR(65533), `address2` VARCHAR(65533), `city` VARCHAR(65533), `address1` VARCHAR(65533), `postalcode` VARCHAR(65533), `businessname` VARCHAR(65533), `defaultfrommasterdata` VARCHAR(65533), `housenumber` VARCHAR(65533), `premisescode` VARCHAR(65533), `businesstaxregistrationcode` VARCHAR(65533), `contactdetail` STRUCT<`contacttitle` VARCHAR(65533), `faxnumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contactemail` VARCHAR(65533), `contactname` VARCHAR(65533), `contactfaxnumber` VARCHAR(65533), `telephonenumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contacturl` VARCHAR(65533), `contacttype` VARCHAR(65533), `contactphone` VARCHAR(65533)>, `district` VARCHAR(65533), `businessidentifiers` ARRAY<STRUCT<`locationidentifiertype` VARCHAR(65533), `identifiervalue` VARCHAR(65533)>>, `state` VARCHAR(65533), `businesstype` VARCHAR(65533), `village` VARCHAR(65533), `fax` VARCHAR(65533), `township` VARCHAR(65533), `licensenumberdetails` ARRAY<STRUCT<`licenseissuingagency` VARCHAR(65533), `lsclicenseidentifier` VARCHAR(65533), `licensestateorregion` VARCHAR(65533), `action` VARCHAR(65533), `licensecountry` VARCHAR(65533), `licensenumber` VARCHAR(65533)>>> | YES | false | Seller party, including address, contacts, identifiers, and licenses. |
| removalFromCirculationReasonCode | VARCHAR(65533) | YES | false | Removal From Circulation Reason Code associated with the record. |
| deliveryNumber | VARCHAR(65533) | YES | false | Delivery Number associated with the record. |
| parentFilterValue | VARCHAR(65533) | YES | false | Parent Filter Value associated with the record. |
| reasonDescription | VARCHAR(65533) | YES | false | Reason Description associated with the record. |
| locationIdentifierType | VARCHAR(65533) | YES | false | Location Identifier Type associated with the record. |
| epochOrderDate | DATE | YES | false | Order date; stored as DATE. |
| epochWorkflowProcessedTimestamp | DATE | YES | false | Workflow processing date; stored as DATE. |
| tlEventIdentifier | VARCHAR(65533) | YES | false | TraceLink event identifier; no uniqueness constraint is supplied. |
| contractNumber | VARCHAR(65533) | YES | false | Contract Number associated with the record. |
| infoExchangeIdentifier | VARCHAR(65533) | YES | false | Info Exchange Identifier associated with the record. |
| commissionProductionLineIdentifier | VARCHAR(65533) | YES | false | Commission Production Line Identifier associated with the record. |
| parentFormat | VARCHAR(65533) | YES | false | Parent Format associated with the record. |
| tlEventType | VARCHAR(65533) | YES | false | Tl Event Type associated with the record. |
| packagingItemCodeType | VARCHAR(65533) | YES | false | Packaging Item Code Type associated with the record. |
| filterValue | VARCHAR(65533) | YES | false | Filter Value associated with the record. |
| shipToCountryCode | VARCHAR(65533) | YES | false | Ship To Country Code associated with the record. |
| orderItemNumber | VARCHAR(65533) | YES | false | Order Item Number associated with the record. |
| workOrderNumber | VARCHAR(65533) | YES | false | Work Order Number associated with the record. |
| isExternalSerializationManagement | BOOLEAN | YES | false | Flag indicating external serialization management. |
| transactionIdentifiersList | VARCHAR(65533) | YES | false | Transaction identifier list represented as text; encoding is unspecified. |
| fundingSource | VARCHAR(65533) | YES | false | Funding Source associated with the record. |
| targetMarkets | VARCHAR(65533) | YES | false | Target markets represented as text; encoding is unspecified. |
| isShortReceiptAllowed | BOOLEAN | YES | false | Flag indicating whether short receipt is allowed. |
| companyPrefix | VARCHAR(65533) | YES | false | Company Prefix associated with the record. |
| aggregationInspection | VARCHAR(65533) | YES | false | Aggregation Inspection associated with the record. |
| originalQuantity | INT | YES | false | Original quantity; unit of measure is unspecified. |
| exitPort | VARCHAR(65533) | YES | false | Exit Port associated with the record. |
| soldFromPartyLabel | VARCHAR(65533) | YES | false | Sold From Party Label associated with the record. |
| locationAddress | STRUCT<`country` VARCHAR(65533), `lscaddressidentifier` VARCHAR(65533), `address2` VARCHAR(65533), `city` VARCHAR(65533), `address1` VARCHAR(65533), `postalcode` VARCHAR(65533), `businessname` VARCHAR(65533), `defaultfrommasterdata` VARCHAR(65533), `housenumber` VARCHAR(65533), `premisescode` VARCHAR(65533), `businesstaxregistrationcode` VARCHAR(65533), `contactdetail` STRUCT<`contacttitle` VARCHAR(65533), `faxnumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contactemail` VARCHAR(65533), `contactname` VARCHAR(65533), `contactfaxnumber` VARCHAR(65533), `telephonenumbers` ARRAY<STRUCT<`countryphonecode` VARCHAR(65533), `phonenumbervalue` VARCHAR(65533), `countrycode` VARCHAR(65533), `areaphonecode` VARCHAR(65533)>>, `contacturl` VARCHAR(65533), `contacttype` VARCHAR(65533), `contactphone` VARCHAR(65533)>, `district` VARCHAR(65533), `businessidentifiers` ARRAY<STRUCT<`locationidentifiertype` VARCHAR(65533), `identifiervalue` VARCHAR(65533)>>, `state` VARCHAR(65533), `businesstype` VARCHAR(65533), `village` VARCHAR(65533), `fax` VARCHAR(65533), `township` VARCHAR(65533), `licensenumberdetails` ARRAY<STRUCT<`licenseissuingagency` VARCHAR(65533), `lsclicenseidentifier` VARCHAR(65533), `licensestateorregion` VARCHAR(65533), `action` VARCHAR(65533), `licensecountry` VARCHAR(65533), `licensenumber` VARCHAR(65533)>>> | YES | false | Event location address, contacts, identifiers, and licenses. |
| countryDrugCode | VARCHAR(65533) | YES | false | Country Drug Code associated with the record. |
| productStrength | VARCHAR(65533) | YES | false | Product Strength associated with the record. |
| productDosage | VARCHAR(65533) | YES | false | Product Dosage associated with the record. |
| epochManufacturingDateTime | DATE | YES | false | Manufacturing date; stored as DATE. |
| valueAddedTaxCurrencyCode | VARCHAR(65533) | YES | false | Value Added Tax Currency Code associated with the record. |
| eventTimeZoneOffset | VARCHAR(65533) | YES | false | Event timezone offset represented as text; format is unspecified. |
| comments | VARCHAR(65533) | YES | false | Comments associated with the record. |
| reportingPartyIdentifierValue | VARCHAR(65533) | YES | false | Reporting Party Identifier Value associated with the record. |
| voidedQuantity | INT | YES | false | Voided quantity; unit of measure is unspecified. |
| countryDrugCodeType | VARCHAR(65533) | YES | false | Country Drug Code Type associated with the record. |
| lineManagerName | VARCHAR(65533) | YES | false | Line Manager Name associated with the record. |
| serialNumberState | VARCHAR(65533) | YES | false | Serial Number State associated with the record. |
| parentCompanyPrefix | VARCHAR(65533) | YES | false | Parent Company Prefix associated with the record. |
| purchaseOrderNumber | VARCHAR(65533) | YES | false | Purchase Order Number associated with the record. |
| grossPriceCurrencyCode | VARCHAR(65533) | YES | false | Gross Price Currency Code associated with the record. |
| internalMaterialCode | VARCHAR(65533) | YES | false | Internal Material Code associated with the record. |
| productionLineIdentifier | VARCHAR(65533) | YES | false | Production Line Identifier associated with the record. |
| ext_TRACELINK_serializedItemTypeDef | ARRAY<STRUCT<`serialnumber` VARCHAR(65533), `orderitemnumber` VARCHAR(65533), `isupdated` BOOLEAN, `barcodecontent` VARCHAR(65533), `lotnumber` VARCHAR(65533), `serialnumbernamespace` VARCHAR(65533), `epochexpirationdate` DATE>> | YES | false | TraceLink extension containing serialized–item details. |


