All Collections
Versions 3.0 and 2.0
Troubleshooting FAQs
Why can't I get row counts with the /rest/batches endpoint in Portal 3.0?
Why can't I get row counts with the /rest/batches endpoint in Portal 3.0?
Elisa Dinsmore avatar
Written by Elisa Dinsmore
Updated over a week ago

This article is for Flatfile's Portal 3.0. If you'd like to check out the latest version of the Flatfile Data Exchange Platform, click here!

A few of our REST API endpoints can be used with both Portal 2.0 and Portal 3.0 to provide a bridge between both versions of Portal and provide a similar experience when importing to each version of our Portal product. However, since Portal 2.0 and Portal 3.0 are built differently, there are a few fields that are only relevant for one or the other. The countRows, countRowsInvalid, countRowsAccepted, and countColumns fields are examples of fields that only return values for Portal 2.0. This means when importing to Portal 3.0, you will see "null" values returned for these.

To retrieve your row counts for imports to Portal 3.0, we recommend using the getRowsFromEmbedBatch GraphQL query. This query will take your batchId and a filter, which can be "valid", "invalid", or "merged". If you don't use the filter argument, the records will be returned in a different format with a validations object on each row that will display an array of any present errors or warnings.

Did this answer your question?