PowerBuilder · Runtime error

R0006: Invalid DataWindow row or column specified

What does R0006: Invalid DataWindow row or column specified mean in PowerBuilder?

A DataWindow method referenced a row or column number that does not exist in the current result set or object definition.

R0006: Invalid DataWindow row or column specifiedPowerBuilder Classic · Appeon PowerBuilder

Condition

A DataWindow method referenced a row or column number that does not exist in the current result set or object definition.

Fix

Check the row number against RowCount() and the column number or name against the DataWindow object's actual column definitions, especially after a Retrieve() that may have returned fewer rows than the script assumes.

Pending source verification. Not yet checked against official documentation.

Related runtime error