Import National UPC File

Contents Show

The Import National UPC File screen is used to import national UPC database files.

Note

NOTE: For more information about National UPC Files and their layouts, see the National UPC File topic.

Import National UPC File screen

Screen Access

Screen Access

Interface Initialization

Upon initial display of the screen, the following occurs:

  • The title bar text is set to "Import National UPC File".

  • Informational Text is visible on the screen. The informational text displayed is read-only and cannot be changed.

  • The National UPC File Name text box is visible, enabled, and initially blank as the default.

  • The Browse button is visible and enabled as the default.

  • The Import Options radio button group is visible and contains the following control(s):

  • The Append New UPCs radio button iis visible, enabled, and initially selected as the default.

  • The Overwrite Records radio button is visible, enabled, and initially deselected as the default.

  • The File Type radio button group is visible and contains the following control(s):

  • The Text File radio button is visible, enabled, and initially selected as the default.

  • The Excel radio button is visible, enabled, and initially deselected as the default.

  • The Import button is visible and enabled.

  • The Cancel button is visible and enabled as the default.

  • The Result text and value label is not visible. The import process must be completed to display the Result text and value label.

Screen Elements

Unless otherwise stated below, all controls on the Import National UPC File screen are visible and enabled when:

If one or more special conditions exist that affect a control on the Import National UPC File screen, the condition(s) are documented for that specific control below.

Informational Text value label

  View the informational text on the screen in the Informational Text value label. Informational text provides information about the current process being performed on the screen.

The informational text displays as follows:

"Browse to the National UPC File and import the data into SPIRIT"

National UPC File Name text box

  Enter the path and file name of the National UPC File to import in the National UPC File Name text box.

The text box accepts alphabetic, numeric, and all special characters. The text box is initially blank.

Browse button

  Click the Browse button to locate and select a specific file.

A standard Windows Open screen displays when the button is clicked. Navigate to and locate the file, select it, and click Open. When clicked, the Windows Open screen is closed and the file name text box on the Import National UPC File screen is populated with the path and name of the selected file.

When there is limited space on the screen, the button label displays an ellipsis (...) as pictured below.

It does not have a mnemonic.

Note

NOTE: The type of file that the Windows Open screen attempts to locate when the Browse button is clicked depends on the radio button selection made File Type radio button group.

  • If the Text File radio button is selected when the Browse button is clicked, the Windows Open screen that displays searches for a .txt file.

  • If the Excel radio button is selected when the Browse button is clicked, the Windows Open screen that displays searches for an .xls or an .xlsx file.

Import Options radio button group

  Select an option in the Import Options radio button group.

Select one of the options in this radio button group to indicate whether the new UPC values imported with the National UPC File are appended to the existing UPC list or overwritten by the existing records. The title text of the radio button group is set to "Import Options". The following radio buttons are available:

Append New UPCs radio button

Select this radio button to append the new UPCs to the existing UPC list. When selected, the import will not deactivate UPC records prior to import. Instead, it will identify new UPC records on import and insert them into the EBTAUTHORIZEDUPC table.

Overwrite Records radio button

Select this radio button to overwrite the existing UPC list. When selected, the Import National UPC File will deactivate all UPC records prior to import by setting the UPC end date to today. The UPC end date is stored in the ENDDATE column in the EBTAUTHORIZEDUPC table. The process then inserts new records or updates existing ones, including the active date, during the import.

File Type radio button group

  Select an option in the File Type radio button group.

Select one of the options in this radio button group to indicate whether imported National UPC File will be in text or Excel file format. The title text of the radio button group is set to "File Type". The following radio buttons are available:

Text File radio button

Select the Text File radio button to import a text National UPC File.

Note

NOTE: If the Text File radio button is selected, the imported text file ignores Approved Product List (APL) types.

State Agencies must access the UPC screen in the Reference Utility application module and manually update the Approved Product List (APL) types for any UPCs imported.

Excel radio button

Select the Excel radio button to import an Excel spreadsheet into the EBTAUTHORIZEDUPC table.

Import button

  Click the Import button to import the National UPC File specified in the National UPC File Name text box.

It has a mnemonic of "I".

Upon selection of the Import button, the following processes occur:

a)       Prior to importing the National UPC File, the data in the EBTAUTHORIZEDUPC table of the SPIRIT database is inserted into the EBTAUTHORIZEDUPCHISTORY table with a common date/time stamp in the SAVEDDTTM column. The EBTAUTHORIZEDUPCHISTORY table stores snapshots of the last three (3) versions of the EBTAUTHORIZEDUPC table. This process also deletes old records from the EBTAUTHORIZEDUPCHISTORY table to ensure that only the most recent three (3) versions of the EBTAUTHORIZEDUPC table are stored at any given time within the SPIRIT database.

b)       If the National UPC File Name text box is blank, a standard error message (E0186) displays.

c)       If the National UPC File Name text box is not blank, the path and file name entered are validated to ensure that the file name specified exists. If the path and file name entered are not found, a standard error message (E0181) displays.

d)       If the path and file name entered in the National UPC File Name text box are found, the file is parsed to determine whether it is in a valid text-based, fixed-field length file format and then validated to determine that it contains only ASCII characters.

e)       If the Excel radio button was selected in the File Type radio button group, the following processes occur:

f)        UPC/PLU Check Digit Calculations are performed and verified, and the following processes occur:

g)       Upon successful completion of the processes above, the information within the imported National UPC File is extracted via the following two (2) passes through the imported file:

As a result, any Universal Product Code (UPC) that was removed from the National UPC database is effectively deactivated within the SPIRIT database since the end date of the UPC is in the past.

h)       Once the import process completes, the Result text and value label refreshes and displays the results of the import process.

Result text and value label

  View the results of the import process after the Import button is clicked in the Result text and value label.

The control is visible when:

Once the import process completes, the Result value label displays the following information:

Information in this control is read-only and cannot be changed.

Cancel button

Click the Cancel button to close the screen without processing or saving data.

It does not have a mnemonic. Its keyboard shortcut is the Esc (escape) key.

Processing

If data can be validated and saved on the screen, the following processes occur when the screen is processed:

If no data can be validated and saved on the screen:

Data Map

The Data Map defines the values saved for all controls on the screen. If available, any additional notes or comments are displayed in the Notes column.

Control Label

Required

National UPC File Name text box

X

Import Options radio button group

X

File Type radio button group

X

|

Reference Utility