# IDValidate Vision Data Access functions

This topic lists theVision Data Access functions that get values from an IDValid structure.

Note: All returned values are from a referenced IDValid structure which is created by the vision tool ValidateIDData. When the ValidateIDData function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. references a ReadIDMax function, the optional Index can reference an indexed string from the ReadIDMax function result table.

Function | Description
GetAIDescription(IDCode, Index) | Returns the Application Identifier (AI) description encoded in the Indexed field.
GetCAGECode(IDValid,[Index]) | Returns the CAGE Code in the DoD UID data.
GetCAGECodeID(IDValid,[Index]) | Returns the identifier representing CAGE Code in the DoD UID data.
GetDataFormat(IDValid, [Index]) | Returns the format used for encoding data.
GetDiagnosticCode(IDValid,[Index]) | Returns diagnostic code.
Diagnostic Code | Diagnostic Information Strings
04040000 | Data validated successfully.
04040001 | Invalid symbology identifier.
04040003 | Invalid field identifier.
04040004 | Invalid Application Identifier (AI).
04040005 | Invalid Data Identifier (DI).
04040006 | Invalid Text Element Identifier (TEI).
04040007 | Invalid field data.
04040008 | Invalid field separator.
04040009 | Data is not ISO 15434 compliant.
04040010 | Unsupported format.
04040011 | Invalid format code.
04040012 | ISO 15434 syntax not supported for this code.
04040013 | Field is invalid in this application.
04040014 | Application field is not currently supported.
04040015 | Invalid application data.
04040016 | Multiple formats present.
04040017 | Duplicate fields present.
04040018 | Invalid Construct #1 DoD UID data.
04040019 | Invalid Construct #2 DoD UID data.
04040020 | Invalid DoD UID data.
04040021 | Missing Format Trailer character.
04040022 | Missing Message Trailer character.
GetDiagnosticString(IDValid,[Index]) | Returns an applicable diagnostic information string.
Diagnostic Information Strings
Data validated successfully.
Invalid symbology identifier.
Invalid field identifier.
Invalid Application Identifier (AI).
Invalid Data Identifier (DI).
Invalid Text Element Identifier (TEI).
Invalid field data.
Invalid field separator.
Data is not ISO 15434 compliant.
Unsupported format.
Invalid format code.
ISO 15434 syntax not supported for this code.
Field is invalid in this application.
Application field is not currently supported.
Invalid application data.
Multiple formats present.
Duplicate fields present.
Invalid Construct #1 DoD UID data.
Invalid Construct #2 DoD UID data.
Invalid DoD UID data.
Missing Format Trailer character.
Missing Message Trailer character.
GetFieldData(IDValid, Index) | Returns the data encoded in the Indexed field.
GetFieldIdentifier(IDValid, Index) | Returns the Application Identifier (AI) encoded in the indexed field. See Application Identifiers (AI) and corresponding descriptions.
Application Identifier | Application Identifier Description
--- | ---
00 | Serial Shipping Container Code (SSCC)
01 | Global Trade Item Number (GTIN)
02 | GTIN of Contained Trade Items
10 | Batch or Lot Number
11 | Production Date
12 | Due Date
13 | Packaging Date
15 | Best Before Date
161 | Sell By Date (YYMMDD)
17 | Expiration Date
20 | Variant Number
21 | Serial Number
22 | Secondary Data Fields
240 | Additional Item Identification
241 | Customer Part Number
242 | Made-to-Order Variation Number
250 | Secondary Serial Number
251 | Reference to Source Entity
253 | Global Document Type Identifier (GDTI)
254 | GLN Extension Component
30 | Count of Items
310 | Net weight, kilograms
311 | Length of first dimension, meters
312 | Width, diameter, or second dimension, meters
313 | Depth, thickness, height, or third dimension, meters
314 | Area, square meters
315 | Net volume, liters
316 | Net volume, cubic meters
320 | Net weight, pounds
321 | Length or first dimension, inches
322 | Length or first dimension, feet
323 | Length or first dimension, yards
324 | Width, diameter, or second dimension, inches
325 | Width, diameter, or second dimension, feet
326 | Width, diameter, or second dimension, yards
327 | Depth, thickness, height, or third dimension, inches
328 | Depth, thickness, height, or third dimension, feet
329 | Depth, thickness, height, or third dimension, yards
330 | Logistic weight, kilograms
331 | Length or first dimension, meters
332 | Width, diameter, or second dimension, meter
333 | Depth, thickness, height, or third dimension, meters
334 | Area, square meters
335 | Logistic volume, liters
336 | Logistic volume, cubic liters
337 | Kilograms per square meter
340 | Logistic weight, pounds
341 | Length or first dimension, inches
342 | Length or first dimension, feet
343 | Length or first dimension, yards
344 | Width, diameter, or second dimension
345 | Width, diameter, or second dimension
346 | Width, diameter, or second dimension
347 | Depth, thickness, height, or third dimension
348 | Depth, thickness, height, or third dimension
349 | Depth, thickness, height, or third dimension
350 | Area, square inches
351 | Area, square feet
352 | Area, square yards
353 | Area, square inches
354 | Area, square feet
355 | Area, square yards
356 | Net weight, troy ounces
357 | Net weight (or volume), ounces
360 | Net volume, quarts
361 | Net volume, gallons U.S.
362 | Logistic volume, quarts
363 | Logistic volume, gallons U.S.
364 | Net volume, cubic inches
365 | Net volume, cubic feet
366 | Net volume, cubic yards
367 | Logistic volume, cubic inches
368 | Logistic volume, cubic feet
369 | Logistic volume, cubic yards
370 | Count of Trade Items
390 | Applicable Amount Payable, local currency
391 | Applicable Amount Payable with ISO Currency Code
392 | Applicable Amount Payable, single monetary area
393 | Applicable Amount Payable with ISO Currency Code
400 | Customer's Purchase Order Number
401 | Consignment Number
402 | Shipment Identification Number
403 | Routing Code
410 | Ship to - Deliver to Global Location Number
411 | Bill to - Invoice to Global Location Number
412 | Purchased from Global Location Number
413 | Ship for - Deliver for - Forward to Global Location Number
414 | Identification of a Physical Location - Global Location Number
415 | Global Location Number of the Invoicing Party
420 | Ship to - Deliver to Postal Code Within a Single Postal Authority
421 | Ship to - Deliver to Postal Code with ISO Country Code
422 | Country of Origin of a Trade Item
423 | Country of Initial Processing
424 | Country of Processing
425 | Country of Disassembly
426 | Country Covering full Process Chain
7001 | NATO Stock Number (NSN)
7002 | UN/ECE Meat Carcasses and Cuts Classification
7030-7039 | Approval Number of Processor with ISO Country Code
8001 | Roll Products (Width, Length, Core diameter, Direction, Splices)
8002 | Cellular Mobile Telephone Identifier
8003 | Global Returnable Asset Identifier (GRAI)
8004 | Global Individual Asset Identifier (GIAI)
8005 | Price Per Unit of Measure
8006 | Identification of the Components of a Trade I
8007 | International Bank Account Number (IBAN)
8008 | Date and Time of Production
8018 | Global Service Relation Number (GSRN)
8020 | Payment Slip Reference Number
8100 | GS1-128 Coupon Extended Code
8101 | GS1-128 Coupon Extended Code
8102 | GS1-128 Coupon Extended Code
90 | Information Mutually Agreed Between Trading Partners
91 to 99 | Company Internal Information
GetGTIN(IDValid,[Index]) | Returns the GTIN (CAGE Code + Original Part Number within CAGE Code) in the DoD UID data.
GetGTINID(IDValid,[Index]) | Returns the identifier representing GTIN (CAGE Code + Original Part Number within CAGE Code) in the DoD UID data.
GetInvalidDataLength(IDValid,[Index]) | Returns the length of the data substring that is in error.
GetInvalidDataPosition(IDValid,[Index]) | Returns the start position of the data substring that is in error.
GetNumDataFormats(IDValid,[Index]) | Returns the number of formats used to encode data.
GetNumFields(IDValid,[Index]) | Returns the number of fields encoded in the data.
GetPartNum(IDValid,[Index]) | Returns the Part Number in the DoD UID data.
GetPartNumID(IDValid,[Index]) | Returns the identifier representing Part Number in the DoD UID data.
GetSerialNum(IDValid,[Index]) | Returns the Serial Number in the DoD UID data.
GetSerialNumID(IDValid,[Index]) | Returns the identifier representing Serial Number in the DoD UID data.
GetUID(IDValid,[Index]) | Returns the UID in the DoD UID data.
GetUIDID(IDValid,[Index]) | Returns the identifier representing UID in the DoD UID data.
GetValid(IDValid,[Index]) | Returns whether the referenced data is valid. Value 0 is not valid, 1 is valid.