UiPath- How to Compare two Data Tables| Output the similar and dissimilar rows |Faster method

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024

ความคิดเห็น • 42

  • @akkijain1000
    @akkijain1000 ปีที่แล้ว

    thanks very much really helpful looking for this only

  • @juanpiedra1048
    @juanpiedra1048 ปีที่แล้ว

    Thanks a lot Rahul!

  • @mharish83
    @mharish83 ปีที่แล้ว

    Very useful video, it will be a guide for future references.

  • @BrianPiret
    @BrianPiret ปีที่แล้ว

    Really useful! Thanks for sharing!

  • @somasekhararchakam3825
    @somasekhararchakam3825 2 ปีที่แล้ว

    Thank you for sharing the video.I found this very useful

  • @pratheep-prem
    @pratheep-prem ปีที่แล้ว

    Hi sir, can you pls tell how to do this same match/unmatch comparing only one column and ignoring other columns for comparision?

    • @autobotbyrahul
      @autobotbyrahul  ปีที่แล้ว

      @pratheep-prem Please raise it in forum.uipath.com and share me the link plz.. I can respond there.

    • @pratheep-prem
      @pratheep-prem ปีที่แล้ว

      @@autobotbyrahul i have raised the question pls respond sir . Thanks

    • @autobotbyrahul
      @autobotbyrahul  ปีที่แล้ว

      Can plz share the link here

  • @marcelalugo5435
    @marcelalugo5435 2 ปีที่แล้ว

    Super helpful! thanks a lot for making this video :)

  • @UiPathUser
    @UiPathUser ปีที่แล้ว

    The condition for this is both the tables need to have same and equal column names?

    • @autobotbyrahul
      @autobotbyrahul  ปีที่แล้ว

      We can modify the column names.. Can plz explain your requirement?

  • @ArnelTerblanche
    @ArnelTerblanche 8 หลายเดือนก่อน

    Hi Rahul, my value to save: dt_FinancialsFinal.AsEnumerable.Except(dt_CollectionsFinal.AsEnumerable,System.Data.DataRowComparer.Default).CopyToDataTable is giving the following error = BC30311: Value of type 'DataTable' cannot be converted to 'String'. The selected value is incompatible with the property type.

    • @ArnelTerblanche
      @ArnelTerblanche 8 หลายเดือนก่อน

      You can fix it by adding the Assembly Reference manually in your xaml file:
      image
      Simply open the file in Notepad and create new line with this String:
      System.Data.DataSetExtensions
      Then reopen your project and the error should be gone.

  • @princedjll4912
    @princedjll4912 2 ปีที่แล้ว

    Thanks Bud,
    I tried solving this problem based on the forums, but they didn't show how to solve the error around 7:30. Thanks for that (changing string variable to datatable).

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว

      😀Is your issue resolved now??
      Thanks

    • @princedjll4912
      @princedjll4912 2 ปีที่แล้ว

      @@autobotbyrahul Yes it is :)

  • @GauravBhargava-RPA
    @GauravBhargava-RPA 2 ปีที่แล้ว

    Good one

  • @Mayur-i6n
    @Mayur-i6n 11 หลายเดือนก่อน

    Can i compare csv and excel

  • @bigmetigie8873
    @bigmetigie8873 2 ปีที่แล้ว

    Dear sir,
    Can you help, if the dissimilar data that going to show in the new file? And the order of the row between the tables are random, thank you for your help.

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว

      Hello Bigme,
      Does that mean you have 2 tables and you need to compare to get the dissimilar rows?? It would be better if you raise it in uipath forum and share the post here.. I can check that and help you

    • @bigmetigie8873
      @bigmetigie8873 2 ปีที่แล้ว

      @@autobotbyrahul i already looking in the forum, and found the similar one and use it for now, but its only give match and unmatch status, for the unmatch rows i dont know which cells that different, so its need a little modification to the vb script so it will highlight the cell that different, could yo help on this?

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว

      @@bigmetigie8873 In the expression are you using intersection or Except?

    • @bigmetigie8873
      @bigmetigie8873 2 ปีที่แล้ว

      @@autobotbyrahul
      Dt1.AsEnumerable().Where(Function(row) Dt2.AsEnumerable.Any(Function(x) x("Item").ToString=row("Item").ToString="Match")
      Dt1.AsEnumerable().Where(Function(row) Not Dt2.AsEnumerable.Any(Function(x) x("Item").ToString=row("Item").ToString="UnMatch")

  • @lulea
    @lulea 2 ปีที่แล้ว

    thank you very much for great efforts....can you please tell how to compare by column name ?

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว

      Hello Mohsin,
      Do you need to compare 2 datatable for some particular column instead of entire rows??

    • @RJ-gk7cc
      @RJ-gk7cc 2 ปีที่แล้ว

      @@autobotbyrahul Yes bro..could you please explain how to do that

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว

      @@RJ-gk7cc Here you can use Left join the Join Datatable activity. In the Join condition, choose the columns to match and condition as "=".

    • @pratheep-prem
      @pratheep-prem ปีที่แล้ว

      ​@@autobotbyrahulsir pls give syntax for the same.plsssssss

  • @sangitaandhale1673
    @sangitaandhale1673 ปีที่แล้ว

    I have two files having col ID and Creation date so i need to compare both files and identify which id is present in both file and compare there date col as which id against date is created first like file1Date> file2Date or file1Date

    • @autobotbyrahul
      @autobotbyrahul  ปีที่แล้ว

      Can you raise the question in forum.uipath.com and share the link here.

  • @prashantrai5911
    @prashantrai5911 2 ปีที่แล้ว +2

    Bro need more videos on Excel scenario based questions

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว +1

      Hi Prashant,
      Will be doing a video to cover the important Excel scenario based questions.

    • @prashantrai5911
      @prashantrai5911 2 ปีที่แล้ว

      @@autobotbyrahul great, waiting for next video

  • @rishikesh1331
    @rishikesh1331 ปีที่แล้ว

    How to compare on specific column alone ?

    • @autobotbyrahul
      @autobotbyrahul  ปีที่แล้ว

      You can add the column name to the linq expression. Plz raise a post in forum and share the link here.

    • @rishikesh1331
      @rishikesh1331 ปีที่แล้ว

      @@autobotbyrahul can you share the expression

  • @ShivamMalhare
    @ShivamMalhare ปีที่แล้ว

    I tried for two excel sheets but I am getting following errors :- System.InvalidOperationException: The source contains no DataRows.

    • @autobotbyrahul
      @autobotbyrahul  ปีที่แล้ว

      Can you plz confirm there are data rows available in the sheet? You can raise a concern in forum.uipath.com and share it here.

  • @learningrpa7639
    @learningrpa7639 2 ปีที่แล้ว

    For me. System. Data. Datarowcomparer is not showing

    • @autobotbyrahul
      @autobotbyrahul  2 ปีที่แล้ว

      Plz check both variables DT1 & DT2 are of type DataTable.