Error when setting a value of 1k on batchSize

Hi Team, I'm getting an error below when setting a value of 1k on the batchSize (but when setting the batchSize to -1; there's no error).
*Note that I'm using an array of ids as a data in the gridField.

Please help if there's workaround for this? Thanks in advance!

*Error:
Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error at function a!gridField:
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 1,000 and the largest column data array had 51,913 items.

*Code
load(
local!pgInfo: a!pagingInfo(
startIndex: 1,
batchSize: 1000

),
with(
local!ids: {1,2,3..... } /* 51k of data (id) */,
a!gridField(
totalCount: count(local!ids),
value: local!pgInfo,
saveInto: local!pgInfo,
columns...

OriginalPostID-220010

OriginalPostID-220010

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data