Hi guys I found an error i just wanna compare with 2 file different excel one csv with no row and one xl with how it compare the file, if there is a blank or not and the data was same or no
hi it still not work The error was like Assign: The source contains no DataRows.
Where are you assigning a value to that variable?
Its indicating that it loaded no rows so something is going wrong there.
iam not sure bro can you teach me?
I’d need to see where you are assigning the variable bud.
Its hard to help unless you help us by providing information.
ShetDT1.AsEnumerable.Intersect(ShetDT2.AsEnumerable,System.Data.DataRowComparer.Default).CopyToDataTable this one bro
Thats where the error occurs, not where the variable is assigned, I need to know where you assign ‘ShetDT1’.
Nice, so thats some progress.
Use some break points and the locals window to confirm that variable has some rows loaded, then do the same for ShetDT2.
If both have rows loaded then it would suggest there are no matches between your two tables and the error is on the copytodatatable which cannot happen as there are no rows.
can you show me the example?
What do you want an example of?
Use some break points and the locals window to confirm that variable has some rows loaded, then do the same for ShetDT2.
If both have rows loaded then it would suggest there are no matches between your two tables and the error is on the copytodatatable which cannot happen as there are no rows.
this one bro, i dont really understand what is this how to do it its my first time doin this
Ok,
Here is some documentation and a video that explains debugging with an example
https://docs.uipath.com/studio/standalone/2023.4/user-guide/the-breakpoints-panel
https://docs.uipath.com/studio/standalone/2023.4/user-guide/about-debugging
For the Error received, we could handle it as mentioned in the below post :