Command Line Options
Invantive Data Loader is operated from its window; the command line carries the options shared by every Invantive program with a window: /help, /signal, and the five options which accept the licence agreement, provide the user and report the state. They are meant for automation and for support. Available from release 27.0.
An option is written as /name or /name=value. The forms -name and --name are accepted as well, and a colon may be used instead of the equals sign, so a command written for another Invantive product keeps working. A value holding spaces is put between double quotes, together with the name of the option. Options are not case sensitive and may be given in any order; an argument which is no option of the product is ignored.
Asking for the Usage
Invantive.Producer.DataLoader.exe /help
The usage is written to the console of the shell that started the program. Invantive Data Loader is a windows application and has no console of its own, so it attaches to the one of the shell; when it is started without a shell, for instance from the Start menu, the usage is shown in a window instead. The program ends directly afterwards. /? and /h do the same, as do -h and --help.
The usage lists exactly the options below: it is composed from the same declarations with which the product reads its command line, so the two can not drift apart.
Marking a Special Run
A run which is not a person going about their work - an automated run, a test, a demonstration, or a session driven by an assistant - can be marked, so the title bar of every window shows it:
Invantive.Producer.DataLoader.exe /signal="AI STARTED"
This is the same marker as the environment variable INVANTIVE_RUN_SIGNAL; the option marks this one run and leaves the environment of the shell alone. See Run Signal for what it does, which products carry it, and how a window without a title bar shows it. A /signal without a text is ignored, so a signal set in the environment variable stays in force.
Accepting the Agreement and Providing the User
Five options let a run without a person at the keyboard accept the licence agreement, provide the user and report what is left to answer. Available from release 27.0:
/acceptlicense=<variant code>: accept the agreement of the licence variant of the licence key in use. A code which is not that variant accepts nothing./personfirstname=<name>: the first name, used when the stored one is missing or not acceptable./personlastname=<name>: the last name, used in the same way./personphonework=<number>: the work phone number, used in the same way./licenseinfo: write the state of the licence, the agreement and the personal information as JSON and end, without changing anything.
The second spelling with dashes, such as /accept-license, is accepted as well, and so is the colon instead of the equals sign. Every option has an environment variable with the same effect, and the settings files record whether an answer was given in a window, on the command line or in the environment; see Unattended Start.
Tracing From the Start
Three options switch the trace on from the start of the product, so the start itself is traced without setting environment variables first. Available from release 27.0:
/trace: switch trace on./tracetofile: write the trace to a file as well, which also switches trace on./tracefolder=<folder>: the folder of the trace files as a full path, which also switches trace to file on. A folder which is not a full path ends the start withitgentsm009.
The second spelling with dashes, such as /trace-to-file, is accepted as well. Once the product runs, the pane "Trace" of the window "Preferences" changes the same settings without a restart. See Trace Settings.
Running a Load
A load definition can not be named on the command line, nor can a load be started from it: the load is chosen and run in the window. A load which is to run every night belongs in a statement executed by Invantive Data Hub; see Load Definitions for the reasoning.
See Also
Exit Code
The program ends with an exit code which a batch file or a scheduler reads to decide whether the next step may run. It returns 0, 4, 6 and 7; the meaning of every code is listed in Exit Codes. Code 6 is returned when the command line can not be read or the usage can not be shown. Code 4 is also returned when no connection is made at start-up, including when the log on window is closed; up to release 27.0.81 that ended with code 0.