Fix an empty or incorrect data table
Find whether the failure is in the request, returned data, repeat expression, or cell scope.
Find whether the failure is in the request, returned data, repeat expression, or cell scope.
Also called: empty table, no data, blank rows.
Check the request first
Section titled “Check the request first”Preview the page and inspect Network. Find the request made by the Server Connect component. A missing request means the loader has not run; check its selected action and loading conditions. A failed request must be fixed before changing table bindings.
Inspect the returned JSON
Section titled “Inspect the returned JSON”Expand the response. Find the property containing the array of records. If it is products, bind to sc_products.data.products. If the action uses Paging, inspect its actual nested result and choose the array beneath it. Do not repeat the outer response object.
Distinguish an empty array from a missing value
Section titled “Distinguish an empty array from a missing value”An empty array means the request succeeded but returned no records. Check the active database target, query filters and test values. A missing property means the step name or Output setting differs from your binding. Show a no-results message for a valid empty result.
Check the repeat and the cells
Section titled “Check the repeat and the cells”Select the Table Body or repeated row. Leave one template row and one repeat mechanism. Select a cell inside that repeat and choose its field from the repeat scope. A fixed array index makes every row show the same record.
Verify the repair
Section titled “Verify the repair”Reload and compare the visible row count with the response. Check that two different records display different names. Then test an empty query result and confirm the page shows a useful empty state.
Check your result
Section titled “Check your result”The request or table behaves correctly for both valid data and an empty or invalid result.