Oracle Error Message
PLS-00219: label ‘string’ reference is out of scope
Reason for the Error
A block or loop label was used to qualify a variable (as in outer_block.date) that was not declared or is not within the scope of the label. The variable name might be misspelled, its declaration might be faulty, or the declaration might be placed incorrectly in the block structure.
Solution
Check the spelling and declaration of the variable name. Also confirm that the declaration is placed correctly in the block structure.