Business colleagues discussing paperwork around an office table
Illustrative stock photograph. Pexels. Not a product screenshot or evidence of a test.

AI Builder Exports Only the First Table Row: Inspect the Flow Loop

A recognized table must be handled as a collection of rows, rather than as one document-level value. If AI Builder shows several line items but the destination receives only the first, trace the table collection and the scope of the write action before retraining the model.

Use a harmless sample with clearly different rows. Keep the destination isolated from purchasing, payment or other production workflows. This guide concerns AI Builder's document-processing output in Power Automate, not a promise that every input table will be recognized correctly.

Compare recognition with export

Inspect the model's test result and a controlled flow run. Count the rows available in the returned table, then count the records written to the destination. If recognition already returned only one row, investigate the model and source document; if several rows are present, focus on flow handling.

Microsoft's document processing flow guidance includes iterating through table output and using individual column values. Follow the actual table collection returned by your model rather than selecting a similarly named scalar field.

Make the rows distinguishable

Use invented descriptions such as a notebook, a folder and a pen with different quantities. Repeated identical descriptions can hide a loop that writes the same first row several times. Keep a known expected output beside the test document.

Check the table name and schema

Confirm the flow uses the published model and the intended table. A changed model definition can leave downstream mappings referring to older fields. Inspect current dynamic outputs rather than assuming a familiar display label is still the same data path.

Place the write inside the intended row scope

Review the loop's input collection and the values used within it. A write outside the loop may run once, while a value referencing a fixed first element may repeat that row on every iteration. Read the run history for each iteration rather than only the overall success status.

The official custom model definition guide describes defining tables and their columns. Use that source schema to map the destination deliberately. A column's confidence score and its extracted value are different outputs and should not be swapped because their names are adjacent.

Observed destinationWhat to inspect
One row from a multi-row resultWrite action location and selected collection
First row repeatedFixed-element references inside the loop
Rows present but columns shiftedColumn mapping and current model schema
No recognized rowsInput quality, table definition and model result
Office workers and equipment illustrating a digital document workflow
Illustrative stock photograph of workplace activity, not a product screenshot or a test result. Photo: Pexels.

Preserve the parent document relationship

Each exported line should remain associated with the correct source record. Include an approved parent identifier in the destination design. Do not assume a row number alone identifies a line item across different documents or repeated processing attempts.

Keep quantities and amounts interpretable

Inspect how the destination expects numbers and decimal separators. A string extracted from a document may need validated conversion before a numeric write. Do not silently remove punctuation or guess a locale when financial meaning could change.

Handle empty tables explicitly

Test a document with no relevant table and a document containing only a heading. Decide whether the flow should produce an exception, a valid empty result or a review task. An empty loop completing successfully should not automatically mark the document as fully processed.

Verify the completed export

For the three-row sample, compare every destination row and column with the known expected values. Check the parent identifier and ordering requirements too. Repeat with a one-row document so the flow handles both shapes without assuming a minimum of several rows.

If the destination is a SharePoint-based register, our metadata schema guide can help distinguish document-level fields from line-level records. Keep the data model clear before adding more automation.

Only after this non-production check should the owner review retry handling and duplicate prevention. A correct loop can still create duplicate lines if the same document is processed again without a defined state policy.

Include the expected row count in the sample's acceptance note, alongside the field values checked.

Check extracted values before accepting exported table rows. The companion workflow is AI Builder Confidence vs Required-Field Validation.

Keep a concise mapping of table collection, row values, parent identifier and destination fields. The useful acceptance test is complete, correctly related rows, rather than a flow run marked successful after exporting only the first visible line.