Skip to main content
vaishals
January 26, 2023
Question

An Error Has OccurredA grid component [label=""] has an invalid value for "totalCount". "totalCount" must not be null or less than the number of items in any of the "data" arrays, but "totalCount" was

  • January 26, 2023
  • 6 replies
  • 1 view

Hi All,

I have created record from a view. By default  filtered to bring only data which is active and in "Edit List" I configured columns and set "rows to display" as 50. Am getting below error message .

But when i change the "rows to display" equal to or less than 33, error is not popping up.

Can anyone suggest why this is happening? Thanks in advance

6 replies

stefanhelzle0001
Brainy
January 26, 2023

I think the error message is very clear. How do you query the data? Is this a grid field? How do you pass the data to the grid? What is the value of totalCount in the datasubset?

vaishals
vaishalsAuthor
January 26, 2023

Hi Stefan Helzle (stefanh0002) Am not using any function to query data.. here am trying to create "record list" in record type object so am not seeing any parameter called "totalCount" to pass the value.

stefanhelzle0001
Brainy
January 26, 2023

Could it be that your view returns more data than requested? Appian tries to only fetch the data for a single page.

April 20, 2023

I think this is due to Primary key. Did you select a primary key in the CDT? If selected does that primary key column has unique values? Records filters the data based on primary key and its values. If PK column has unique values without any duplicate values then it should work.

harshitb6843
April 22, 2023

How can a PK anyway have duplicate values? Isn't that an implicit property of a PK to have unique and not-null values?