Validation and error messages

Validation is performed when you execute the DeleteScenarios macro. If validation fails, the macro is aborted, and the related error message is displayed.
This table lists the error messages displayed for various validation failures:
Parameter Validation Condition Error Message Severity
Scenario If not populated, check to ensure that all Cycle Periods have a published scenario. Cycle Period {0} does not have a published scenario. Warn
Cycle Period If not populated, check to ensure that at least 1 Cycle Period has status Completed. If not, issue a Warning as the macro does not perform any deletion. Cycle {0} does not have a Completed cycle period. No scenarios were deleted. Warn
Cycle Period If populated, check to ensure that it has the status of Running or Completed. Cycle period {0}-{1} is not in status Running or Completed. Error
Scenario If populated, checks that all scenarios in the macro passed parameter context of Cycle, Cycle Period and Module are all set to unpublished. The Scenario {1} in Cycle Period {2}-{3} and Module {4} is set to Published. No scenarios were deleted. Error
Cycle Period If populated, ensure the value exists at the stated Cycle. Cycle Period {0} cannot be found for Cycle {1} Error
Scenario If Scenario and Cycle Period are populated, check that the scenario exists. Scenario {0} cannot be found for Cycle Period {1} Error
Module If populated, check that the module exists at the specified Cycle. Module {0} cannot be found for Cycle {1} Error
All If all parameters are populated (Cycle, Cycle Period, Scenario and Module), checks that the scenario exists at such a combination. Scenario {0} cannot be found for Cycle {1}, Cycle Period {2} and Module {3} Error
Scenario If not populated, checks that all scenarios in the Cycle Period are not set to Published. All scenarios for Cycle Period {0}-{1} are set to published. No scenarios were deleted. Warn