Validation and error messages
This table lists the Destination Cycle Period status and the related
validation messages:
Destination Cycle Period Status | Destination Scenario Status | Can Execute? | Validation Message |
---|---|---|---|
Pending | N/A | No | Cannot run macro {0} because Cycle Period has status "Pending" |
Running | WIP | Yes | N/A |
Running | Review, Rejected, Stopped, Approved, Published | No | Cannot run macro {0} because Scenario has status {1} |
Paused | Any | No | Cannot run macro {0} because Cycle Period has status "Paused" |
Completed | Any | No | Cannot run macro {0} because Cycle Period has status "Completed" |
Aborted | Stopped | No | Cannot run macro {0} because Cycle Period has status "Aborted" |
Archived | Any | No | Cannot run macro {0} because Cycle Period has status "Archived" |
Validation is performed when you execute the CopyLastPeriodMeasure 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:
Field | Validation Condition | Error Message |
---|---|---|
Check that the previous cycle period is defined for the current cycle period. Else, the macro step execution fails with a warning message written to the job log. | The CopyLastPeriodMeasure command was attempted for a cycle period without a previous cycle period defined. | |
Check that the source cycle period is available. Else, the macro step execution fails with a warning message written to the job log. | Source cycle period "{0}"-"{1}" is not available (Archived). | |
To measure Code | Ensure that the specified To measure is valid for this Cycle Period and enabled. | destination measure "{0}" cannot be found. |
Period Label |
If specified, ensure that the period node is valid in the appropriate cycle period. When Use Destination Period Label = False, the period label must exist in the Source/previous cycle period. When Use Destination Period Label = True, the period label must exist in the Destination/current cycle period. |
period label {0} cannot be found. |
Overwrite | If specified, ensure that the Overwrite flag is valid. The value must be True or False. | Invalid parameter value {0}. Must be true or false. |
To measure | If specified and the ‘To measure’ is of Transactional Data/Order type, the ‘From measure’ must also be of Transactional data type. | Cannot copy from a non Transactional Data/Order Measure to a Transactional Data/Order Measure. |
To measure | If specified and the ‘To measure’ is of Market Intelligence type, the ‘From measure’ must also be of Market Intelligence type. | Cannot copy from a non Market Intelligence Measure to a Market Intelligence Measure. |