Skip to main content
June 9, 2025
Solved

batchSize" issue

  • June 9, 2025
  • 5 replies
  • 0 views

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.

Best answer by harshas2775

The error normally signifies the duplicates in a data set. By the looks of it the grid data fetched after dropdown data selection is returning 17 duplicate items. So start with checking the dataset rendering the grid. 

5 replies

venkatrea696188
June 9, 2025

Need more details on the exact issue , what's the data you have and where you are getting this error.

konduruc733182
June 9, 2025

Hello [mention:4b31df7bafd54c5cae8b22a98f323e7e:e9ed411860ed4f2ba0265705b8793d05] 

Please share the expression that you have configured and also provide more context on the data.

harshas2775
June 9, 2025

The error normally signifies the duplicates in a data set. By the looks of it the grid data fetched after dropdown data selection is returning 17 duplicate items. So start with checking the dataset rendering the grid. 

mikes0011
Brainy
June 9, 2025

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.

davidj137213
June 10, 2025

Why are you using an old version of the component?

ON the other hand,, I would suggest to check duplicates.