Upload a Critical List
Upload a critical list (a CSV of business-critical transactions and programs) to the SeaLights application that a pipeline belongs to.
A critical list is a CSV file that names the executables — transactions, views, and programs — that are business-critical for your application. The upload critical_list command sends this file to the SeaLights application that the pipeline is linked to (the pipeline's --appname).
The ABAP Agent server reads the file, checks it, and uploads it to SeaLights. The command waits until the server has finished and then reports the number of rows that were uploaded.
Upload a critical list
slabapcli upload critical_list
Uploads a critical-list CSV file for a pipeline. The command exits with code 0 when the upload succeeds and with a non-zero code when it fails.
slabapcli.exe upload critical_list --pipeline <pipeline> --path <file.csv>.\slabapcli.exe upload critical_list --pipeline <pipeline> --path <file.csv>--pipeline
—
Yes
The name of the pipeline, as shown by pipeline list. The critical list is uploaded to the SeaLights application that this pipeline is linked to.
--path
—
Yes
Path to the critical-list CSV file. The file must exist and must have the .csv extension. A relative path is resolved against the directory you run the command from.
File format
The file must meet all of the following requirements. The server checks them before it uploads anything, so a file that does not meet them is not uploaded.
The file extension is
.csv. Any other extension is rejected.The file is UTF-8 encoded.
The first row is the header, and it is exactly
Name,Type(two columns, in this order, with this capitalization).Every data row has exactly two columns:
NameandType. Both values are required.Typeis one ofTCOD,ISVW, orPROG. The value is not case-sensitive (progis accepted), but it must not contain leading or trailing spaces.Fields can be enclosed in double quotes, for example when a name contains a comma.
Blank rows are ignored.
The file contains at least one data row.
Example file:
The file is uploaded as it is; the agent does not change its content.
Example
The row count is the number of data rows in the file, not counting the header and blank rows.
If the upload fails
When the upload fails, the command prints the reason in red (when the output goes to a terminal) and exits with a non-zero code. The most common failures are:
Critical list CSV is invalid or empty.
The file does not meet the file format requirements — for example, the header is not exactly Name,Type, a row has a missing or extra column, a Type value is not TCOD, ISVW, or PROG, or there are no data rows. The server log names the first row that failed.
Critical list file was not found.
The server could not open the file. Check the path, and check that the server's service account can read it.
PIPELINE_NOT_FOUND
No pipeline with that name is configured. Run slabapcli pipeline list and use the name shown there.
INVALID_REQUEST
The server rejected the request, for example because the file does not have the .csv extension.
Critical list upload failed during execution. See server logs for details.
The file was valid, but the upload to SeaLights failed — for example, because the SeaLights token is invalid or SeaLights is unreachable. Check the connection with slabapcli sealights test and see the server log.
The exit code identifies the type of failure, using the same codes as the other server tasks. For example, 12 means the ABAP Agent server is not running, 13 means the pipeline was not found, and 14 means the task itself failed. For the full list, see Watcher exit codes.
Only one critical-list upload can run for a pipeline at a time. If you start a second one while the first is still running, the second command fails with exit code 17.
If the --path file does not exist, the command stops immediately, before it contacts the server.
Last updated
Was this helpful?

