batchSize" issue

Certified Associate Developer

Hi, I am getting this issue when selecting value from dropdown for one particular user
 
at function a!gridField_19r1 [line 71]: A grid component [label=""] has an invalid value for "columns" and "value". All "data" arrays must not contain more items than the specified "batchSize", but "batchSize" was 10 and the largest column data array had 17 items.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    I would suggest updating to the modern Paging Grid - it is far more flexible and has better error handling (in general) when a data set has unexpected properties.  It looks in your case like you've passed a Paging Info variable with a batch size of 10, but then passed (perhaps the incorrect) data set with 17 rows, which breaks the grid.  If you're using a View, you might also want to ensure the column indicated in the CDT as being the "primary key" does not have duplicates across ANY number of rows, as even the modern paging grid displays a similar-looking error if it sees the same primary key used across multiple rows.

Reply
  • 0
    Certified Lead Developer

    I would suggest updating to the modern Paging Grid - it is far more flexible and has better error handling (in general) when a data set has unexpected properties.  It looks in your case like you've passed a Paging Info variable with a batch size of 10, but then passed (perhaps the incorrect) data set with 17 rows, which breaks the grid.  If you're using a View, you might also want to ensure the column indicated in the CDT as being the "primary key" does not have duplicates across ANY number of rows, as even the modern paging grid displays a similar-looking error if it sees the same primary key used across multiple rows.

Children
No Data