Product Information > JADE Error Messages and System Messages > 1300 through 1399 - Collection Exception Errors > 1308 - Cannot update an array during iteration

1308   Cannot update an array during iteration

Cause

This error occurs when iterating over an array if entries are added to or removed from the array during the iteration. Adding and removing entries from an array causes entries above the insertion or removal point to be moved up or down, which renders the iteration invalid.

Array entries can be removed or added automatically by the JADE Object Manager if the array is an automatic inverse property.

Action

If it is necessary to update an array while accessing its elements sequentially, use array indexing instead of an iteration.