I am trying to add data row from one table to another and I am getting the error: Add Data Row: Input array is longer than the number of columns in this table

ArrayRow is row.ItemArray
I cloned the DT

Thank you in advance

Hi mate,

Can you share more information or screenshots of workflow you are developing.

Hi Sahil. I am trying to add data row from one table to another. They have the same structure

It seems you are extracting datatable from pdf , first just check whether data table is coming properly or not.

Yes it is coming out properly, the only challenge is when I add page two of the pdf to the dataTable.

Please find the git repo link https://github.com/spchaane/dataScrapingWorkFlow.git

Mate,
Actually am not sure how to get datatable from second page of PDF, we can convert string to datatable but points is that your pdf seems that is contains some headings also.

Let’s see if someone better replies .

Hello Samuel,
In this video, I have 17 use-cases for extracting tables from PDF and write data in Excel:

Your PDF is at this time:
1:17:10 File 19 PDF with multiple pages and columns with multiple lines

Code:

Thanks,
Cristian Negulescu