Validation of code
Validation is performed when you select a script from the list. The validation process
verifies the script for completeness using run-time validation, without executing the full
script. Validation is performed in the Code tab after
validating the Mapping tab.
These messages are displayed during the validation process:
- If the Mapping is validated, clicking the
Code Validation requires script to be saved. Do you want to continue?
option displays this
message: - If the script is saved, this message is
displayed:
Code is validating. Record cannot be edited until this process is completed. It is recommended that you don't go back to list or close this screen until the validation process has completed so that you can view any errors with the Code. Leaving this screen will result in no errors being displayed here and can only be seen via My Jobs.
- If validation is successful, the Code validation status is set to
Valid, and this message is displayed:
Code validation Code is valid.
- If validation is unsuccessful, the Code validation status is set to
Invalid, and this message is
displayed:
Code validation Code is invalid
This table lists the error messages displayed for various validation failures:
Validation condition | Error message |
---|---|
If the Mapping is empty. | Mapping Definition has not been defined. Please define and validate Mapping before proceeding with Code changes. |
If the Mapping is populated and not validated. | Mapping Definition has been updated. Please validate Mapping before proceeding with Code changes. |
If the Mapping is populated and not valid. | Mapping Definition is invalid. Please address errors and then validate Mapping before proceeding with Code changes. |
These conditions are applicable during the validation process:
- The specified code is a valid python code. You can use these libraries:
- Pandas
- YAML
- The standard python libraries
- The code (user) must have the correct header (initialization codes) and footer (returned variables) parts.
- All application variables are defined in the database and enclosed in single or double quotes.
Note: The Validation Errors text box in the Code tab provides a list of validation errors related to code.