11. Tracr Loader
Last updated
Tracr Loader is a command line tool to upload diamond data to Tracr using the same CSV files as the Integration Tool.
On Windows, open a Command Prompt and type:
setx PATH "%PATH%;C:\tools\tracr\"TRACR_TC_APPROVAL You must set this variable to yes. It means you accept and agree to the Terms and Conditions (https://www.tracr.com/legal/terms-and-conditions).
TRACR_SECRET Authentication Token. Please contact support@project-tracr.com for more details.
TRACR_URL The URL to the Data Integration Tool service. Please contact support@project-tracr.com for more details.
On Windows, open a Command Prompt and type:
setx TRACR_TC_APPROVAL "yes"
setx TRACR_SECRET "<TOKEN_PROVIDED_BY_TRACR>"
setx TRACR_URL "<URL_PROVIDED_BY_TRACR>"On Windows, open a Command Prompt and type:
tracer-loader.exe --integration <integration_type> --csv <full_path_of_csv_file> --batch <internal_reference> --session_id <session_id_of_a_previous_session>Command-line arguments
Required:
-i, --integration [rough,split,polished,transfer]
-c, --csv full path to the csv file
Optional:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-b BATCH, --batch BATCH
-s SESSION_ID, --session_id SESSION_ID
Like the Data Integration Tool, create a CSV file to declare all the metadata of the diamonds to register.
Create the CSV file in a folder per session. The folder needs to contain all the additional files to be submitted (images, scans, reports, videos, and so on). You can organise the additional files in subfolders, or place all files together in the main folder.
Once a job is completed, the logs will be available in the subfolder tracr_output.
For example:
If Tracr Loader is interrupted when uploading files to Tracr, you can call Tracr Loader in recovery mode.
Last updated
tracr-loader.exe --csv C:\data\tracr\box_341\rough_box_341.csv --integration roughC:\data\tracr\box_341\tracr_output\tracr-loader-<date>.log.\tracr_output\tracr-loader_20201204-131417.log
...
04-Dec-20 13:14:18 - INFO - Tracr session id for new loader run is 44c978ad-957a-4bf6-9ce8-e2b63ddac305
...tracer-loader.exe --csv <path_to_csv> --integration <stage> --session_id 44c978ad-957a-4bf6-9ce8-e2b63ddac305