80
FORGE Batch Application Generator User Guide
3.8 ACTION WHEN RECORD FORMAT IS WRONG
The [Action when the format of record is wrong] group box features a few actions for the
application template to take when a lookup file of wrong data format is sent to the mobile
computer. The crucial factors for a lookup file’s data format are usually the separation of
data fields, i.e. fixed length and delimiter.
3.8.1 STOP THE DOWNLOAD PROCESS
With “Stop the download process” selected, a warning message will be displayed on
the mobile computer to indicate which line is found format mismatching if a lookup file
with wrong format is detected. The downloading process is stopped then. You will need to
correct the data format. For example, remove any empty record (line) at the end of the
lookup file. And then download the lookup file again.
The following table lists the actions taken by the application template when the incoming
lookup file’s format is wrong:
(Note: An application template is marked as “.AGX”.)
Fixed Length
Conditions Action
Record length in source file is greater than that specified in .AGX Stop download
Record length in source file is less than that specified in .AGX Stop download
Delimiter
Cause of Failure Action
The number of fields in the source lookup file is more than that specified
in .AGX
Stop download
The number of fields in the source lookup file is less than that specified
in .AGX
Stop download
The field length in the source lookup file is more than that specified
in .AGX
Stop download
The field length in the source lookup file is less than that specified
in .AGX
Allow download
Note
Note: If the max data length specified in the application template is more than the field
length in the source lookup file, the data field in the lookup file will be padded with
blank space when it is sent to the mobile computer.