Validation and error messages
Validation is performed when you execute the NextPlanningEngine macro. If validation
fails, the macro execution is stopped, and the related error message is reported in the audit
log.
These are the validation rules:
- If validation fails, the Stop on end Status parameter determines
whether the macro step can be skipped or stop the macro execution. These are the levels of
validation:
- None: The macro step can be skipped if a validation failure occurs.
- Warning: The macro execution stops if the macro step encounters a Warning or Error validation failure.
- Error: The macro execution stops if the macro step encounters
an Error validation failure. Note: The macro execution is not stopped if other validation failure (such as Warning) occurs.
This table list the error messages displayed for various validation failures:
Validation Condition | Error Message |
---|---|
Checks that the Cycle exits. | Next Planning Engine cannot be run. Cycle {1} cannot be found. |
Checks that the Cycle has a planning engine with the Master status, if the planning engine name is not specified. | Next Planning Engine cannot be run. Cycle {1} does not have an associated Planning Engine with status master. |
Checks that the planning engine name exists for the Cycle. | Next Planning Engine cannot be run. Cycle {1} does not have an associated Planning Engine {2} |
Checks that the next planning engine name is unique. | Cannot Create Next Planning Engine {1}. The Planning Engine already exists |
Checks that the next period is on the calendar. | Cannot Create Next Planning Engine {1}. Next Period {2} does not exist in Calendar {3} |
Checks that the master planning definition exists when Refresh Planning Engine Definition is set to True. | Cannot Create Next Planning Engine {1}. Cannot find Planning Engine Definition {2} |
If specified, checks that the planning engine has the Master or Running status. | Next Planning Engine cannot be run. Planning Engine {1} does not have status of Master or Running. |
Checks that the status of the master planning definition is set to Ready when Refresh Planning Engine Definition is set to True. | Cannot Create Next Planning Engine {1}. Planning Engine Definition {2} is invalid |