Error -12 (Incorrect Number of Columns)¶
This error can occur when an RDS report is used via report integration, and the two-dimensional variant array does not have the required number of columns in the second dimension.

It is ALWAYS a programming error.
- If this happens on all rows of the passed data, the most obvious cause is a changed number of RDS table columns in a report definition while the program code was not changed.
- If this happens on some rows, the source code probably contains a conditional area causing some of the RDS array rows not to be filled correctly.
Solution¶
- The error shows the N-th element of the variant array that has an incorrect number of columns. Check the report definition against the source code and compare the number of elements put in the variant array against the report definition.