Import Data
Import Data
The fleet import data option allows the user to import data to specific tables or groups of tables. Refer to each sub menu option for further details.
Whole Table
Red Book Data
Red Book Photos
Glass Data
Contributions
1Link Approvals
Insurance Data
Contract Budgets
Service Profiles
Export Data
Main Page > FLEET > EXPORT DATA
The export data options allow the user to export:
Whole Tables of records
Report Data, specific pre-programmed reports of data
Exports are generated in a .csv format which can easily be opened using applications such as Microsoft Excel.
A future enhancement is to give users the ability to edit and save their own Structured Query Language (SQL) scripts for commonly run downloads.
Import Table Data
Create or update table records in the system by importing data files.
Audit records are created for these records and they are marked as external (X).
Visit the Data File page for more information about how to prepare a file for importing.
This function can also be run using the Request a table data import API.
This function can also be paired with a rules-based query used in the scheduler to update tables using the Method executeImportTableData.
Warning: 1. Importing data can disrupt tables in your system, so we recommend that only expert users use this feature. 2. Always test your upload files by uploading them to your Staging or Support first. 3. Contact your Account Manager for training on this feature.
Dependent Records
You can use a UUID placeholder in the import files to manage data where there are child records that have a key field dependency. Visit the Dependent Records page for the details of how to use this feature.
Field Descriptions
Module (List) - Select the module that the table you want to import belongs to. Example: fm - Fleet Management
Table (List) - Select the table you want to import. Some tables cannot be imported. Visit the Setup Table Data page for a list of restricted tables
Data File (Directory path) - Browse to select the import file or use drag and drop feature to add the file you are uploading
Validation Results (Number) - Displays the number of validated records
Import Results (Number) - Displays how many records updated
Action Buttons
Browse - The browse button is displayed next to "Upload File" field once you have nominated the table you want to import. Navigate your directory to select the desired file for uploading. Once you have selected the table you want to import, the "Select" upload button is enabled. Press "Select" to confirm your table choice and proceed
Upload - The upload button is enabled when the table to upload has been selected and the "Upload File" has been selected. If the process validates and then moves on to Import. If validation fails, the alert message "Data validation has failed..." will appear and Error Report and Re-Upload buttons appear
Error Report - Error Report will be enabled. If validation fails, the alert message "Data validation has failed..." will appear and Error Report and Re-Upload buttons appear
Re-Upload - Re-upload button will be enabled to correct all the errors based on the Validation File and re-upload the file
Import - The file validates and ready to import. If the validation is successful the alert message "Data validation has completed..."
Next - Next button is enabled to import another file if the user needs. By click on the next button Upload button will be enabled
Validations and Alerts
Timeout Control
The importtabledatatimeout global control governs how long an Upload or Import can run for before being stopped. A timeout is required to prevent large uploads from straining system resources. If this timeout happens you will be alerted.
The default setting for the control is 200 seconds (3.33 minutes) and can be increased to up to 1200 seconds (20 minutes).
Tip: Temporarily extend this timeout to upload a large file as an exceptional event. Upload large files out of hours or out of peak times of system use to avoid disruption to users.
Warning: Increasing this setting beyond 1200 is not recommended. Doing so may impair the system response times and slow down users' work.
Export Table Data
A sample or a complete data extract of the contents of the selected table can be exported to a CSV file.
If no records are stored in the table, the file will simply contain column headings. This can be used as a template for importing tables.
If the selected table contains encrypted fields, the columns containing encrypted data will be removed during the export process regardless of role.
This screen replaces an older variation of this feature located at Fleet / Export Data / Whole Table.
Field Descriptions
Module (List) - Select the table you want to export
Table (List) - List of tables appears in the selected module
Output Options
Include Field Headers (Check box) - This is checked by default
5 Sample Rows Only (Check box) - Check this to only export 5 sample rows
Remove Null Values (Check box) - Check this to remove 'null' from the export file fields that are 'null'. Do this if you are exporting a file for presentation. If it is to be used as the basis for creating an import file, leave this checked, as 'null' fields must be imported with the 'null' values intact
Action Buttons
Download (Button) - Click download button to export the selected file. This will be in .csv format
Validations and Alerts
Import Data to a Table
Qualifiers
You are updating existing records or adding new records to an existing system table
We recommend first testing your import file in the Staging or Support environment
Process
Go to Setup / Import Table Data
Module - select the module that the data belongs to
Table - select the table to import the data to
Drop or browse to import the data file
Click on Upload
The uploaded file content will be validated
If there are problems, the Error Report button will be enabled. Download the Error Report, review, fix your file
Re-Upload
A file validation message is displayed
Click on Import
Navigate to the system and check the data you have imported
Export Data From a Table
Qualifiers
You want to export all the records from a table to review what they all are
Use the data as a template to build a Data File so you can Import data to a table
File size limits to the export file process apply
Process
Go to Setup / Export Table Data
Module - select the module that the data belongs to
Table - select the table to import the data to
Include Field Headers - leave checked
5 Sample Rows Only - leave un-checked
Remove Null Values - leave un-checked
Click on Download
Save your file
Export Sample Data From a Table
Qualifiers
You want to export sample records from a table to use as a template to build a Data File so you can Import data to a table
Process
Go to Setup / Export Table Data
Module - select the module that the data belongs to
Table - select the table to import the data to
Include Field Headers - leave checked
5 Sample Rows Only - check
Remove Null Values - leave un-checked
Click on Download
Save your file
Import Or Export Files
Administrators can update the Drivers User Guide, Quotes using html, Forms and Screen Reports by uploading new templates here. Driver user guides can be configured and customized for Channels.
This is done by exporting and importing template files in the following formats: css, docx, pdf, html, xlsx, and xml.
Your Account Manager will configure the file settings you need and help you build your first set of documents (if required). Once established, you can maintain your own documents.
If you cannot see a file you are using and want to change it, contact your Account Manager to configure it so that you can access it here.
Warning: We recommend that you contact your Account Manager before making changes to files.
Field Descriptions
Import (Radio) - Select if you want to import a file
Export (Radio) - Select if you want to export a file
Platform (List) - Choose the platform the file relates to. This is normally 'Catch-e' (for this system), or 'Catch-e Driver Portal' for the Driver Portal. 'Catch-e' is the default entry
File Type (List) - Select the file type. Once selected, the "File Name" list will display all the available files. Only records with an active status will be shown. Files containing a .php or .phpo extension will be hidden
File Name (List) - Select the file you want to import or export. Only one file can be imported at a time. The name of the file being imported must match the "File Name" here exactly
Import Or Export File Options
Hints and Tricks for Creating Your Import File
To create a template of a particular table, download the existing table using the Export Table Data function and remove the columns not required.
Dates must be in one of the following formats:
D/M/YYYY
D/MM/YYYY
DD/M/YYYY
DD/MM/YYYY
YYYY-MM-DD
0000/00/00 will also be accepted. This will result in the relevant screen date displaying as blank
To import a NULL entry into a field, record the cell data as the word NULL in capitals.
Action Buttons
Audit (Icon) - An audit icon will appear when a particular file has been selected for Import or Export. The audit pop-up displays records for the file identifier (md5) and identifies the user who uploaded the file. Downloads are not recorded
Import - The import button is enabled when the radio button "Import" has been selected and the "Import File" has been selected
Export - The export button is enabled when the radio button "Export" has been selected
Import Failed
Bad setup! missing leading slash. Contact Catch-e Support - The paths contained in the table gbfiletypes must start with a leading slash "/" i.e. /clients/[client_name]/core/fleet/administration/quotes/templates
Bad setup! wrong client folder specified. Contact Catch-e Support - The paths contained in the table gbfiletypes must also contain the correct client name i.e. /clients/[client_name]/core/fleet/administration/quotes/templates
File must be called {file.ext} - The file name and extension must match the one selected on the screen. The name of the file being imported must match the "File Name" here exactly
File not found. Contact Catch-e Support - You've clicked on the Export radio button and selected a file that is configured, but has never been loaded into Catch-e
Identical File! Last imported by {user_name} on {timestamp} - A duplicate file cannot be imported. If the file is exactly the same, you will be alerted and the existing file will not be overwritten
Import Successful
File successfully imported - You'll see this if your import was successful
Export Failed
Bad setup! missing leading slash. Contact Catch-e Support - The paths contained in the table gbfiletypes must start with a leading slash "/" i.e. /clients/[client_name]/core/fleet/administration/quotes/templates
Bad setup! wrong client folder specified. Contact Catch-e Support - The paths contained in the table gbfiletypes must also contain the correct client name i.e. /clients/[client_name]/core/fleet/administration/quotes/templates
Troubleshooting
Tip: Visit the main Troubleshooting page for a list of all the available problem-solving tips.
I Can't See the File I Need
Some import or export files are marked as only editable by Catch-e staff.
If you cannot see the file you want to edit, contact Catch-e Support to update the access settings for the file.
Adding New File Type Records
Add a new record when required to set up new files
Check that the address is set up correctly. Files will not import if this is malformed. They must be set up to point to one of the two folders detailed below:
/clients/CLIENTNAME/.../templates
/clients/CLIENTNAME/.../attachments
Channels
Create a channel variation for a file by creating a new record for the channel and then the linked record. The record must contain the correct path in the directory path. Example: /clients/CLIENTNAME/channels/CHANNEL_CODE/core/fleet/reports/attachments
Adding New File Records
Add the required record that you want to use
Set as 'active'
The file can now be selected from the "File Name" drop-down list
Hiding File Records
Hide files if you are no longer using them
To stop a file from appearing in the "File Name" drop-down list, update to 'inactive'
Doing this will not prevent the files from being visible and available on the system screens. To remove them from user screens, the actual file must be deleted from the system folder. Contact your Account Manager to arrange this for you
Legacy Files
If you want to make changes to a file and cannot find it in the screen lists, you likely have a legacy file that is not stored in gbfiles
To enable changes, the old version must be removed from the application and replaced with a stored file here. Contact your Account Manager to arrange this for you
Catch-e Only Files
Access to some files are restricted to Catch-e staff only. This is the case when the super_flag field is set to 'yes'. When this flag is set to 'no', 'admin' users can manage the file.
Useful Queries
select * from gb_files; start transaction; update gb_files set super_flag = 'no' where name = 'file_name_here.xlsx'; commit;