I want to extract invoice lines from the CMS 1500 document, and I am using a form extractor to pull the table from the document

I am struggling to achieve accuracy with my form extractor because the position of the Invoice Line table varies in different documents. Is there a way to implement this using anchors or another method?

Hi @Ayushi2
Welcome to the community

You can try this approach

You can use Anchor-Based Table Extraction in UiPath Form Extractor. Here’s how:
1 Identify stable column headers in the table, e.gDescription, Item, Qty
2 In the Form Extractor, define your InvoiceLines table field.
3 Set an anchor on the header text:
Anchor Text: “Description” (or “Item”)
Direction: Below
4 Use Extract Tables activity → output a DataTable.
5 Optional: clean the table by removing empty rows or repeated headers.
6 Now you can loop through the DataTable or export to Excel.

If solution works for you please mark as solution and let me know if u have any douthz happy to help

Thanks & Happy Automations

@Ayushi2

Welcome to the community

Form extractor is suited for fixed layouts and not variable

Better try with combination or keyword or model based

Cheers

Thank you for helping
Definately I will let you know

Sure
Thank you so much for helping

1 Like

Sure , if solution works for you please mark as solution so it’s helps others too

Thanks & Happy Automations

1 Like

Hi @Ayushi2
if solution works for you please mark as solution so it’s helps others too

Thanks & Happy Automations