Enabling validation of the business start date on CSV import
By default, the effective date specified in the Business Start column of a CSV file is not validated during the import. Thus, previously exported artifacts can be imported without causing errors even if their start date is in the past. However, you might want to prevent import of artifacts with an explicitly specified start date in the past. In this case, you can enable the validation of the value in the Business Start column.
- Required role
- To complete this task, you must be an administrator of the project (namespace) where you deployed the IBM Knowledge Catalog service.
To change the setting, complete the following steps:
- Log into the cluster by running the following command:
Alternatively, you can use ssh to log in to the cluster.oc login <OpenShift_URL>:port - Edit the
wkc-glossary-servicedeployment to open the deployment file:oc edit deployment wkc-glossary-service - Add the
BG_IMPORT_BUSINESS_START_VALIDATION_ENABLEDflag to the deployment file and set it totrue. - Find the
envsection in the section labeledcontainers. The section contains multiple lines of key-value pairs. Add the following entry anywhere in theenvsection. Use spaces to match the current indentation level when you add the flag. Do not use the Tab key.- name: BG_IMPORT_BUSINESS_START_VALIDATION_ENABLED value: "true" - Save the deployment file and exit it. The pod is automatically restarted.
- Wait for the new
wkc-glossary-service podto be created and running. - Log out of the cluster.
The date specified in the Business Start column of a CSV import file is now validated during the import. If the date is in the past, the respective artifact is not imported.