Hi UiPath team,
Im quite new using the UiPath Studio.
Could anyone of you help me how to update using 2 different excel file to update the fill in SQL database?
Thank you and appreciate your help.
Hi UiPath team,
Im quite new using the UiPath Studio.
Could anyone of you help me how to update using 2 different excel file to update the fill in SQL database?
Thank you and appreciate your help.
@Mohamad_Izudin_Bin_Abdul You mean, you want to check the database first and update it with new unique data?(Not add the duplicate ones)
Or you just want to add data from 2 excel files into database?
hi @AKM_Robinuzzaman ,thank you so much for your response on this.
yes,i would like to check the SQL database first and update it with new unique data based on excel file.
this is the SQL db data,i would like to update the virtual Account here based on paymentID.
and there will be 2 excel file with this data and the automation is to pick up the virtual account that have value and convert it to null(from SQL db) to value based on excel data
is that possible?
@Mohamad_Izudin_Bin_Abdul Yes that is possible.
Now we need to check these 2 tables and find out the common "PaymentID"s
Now we have to check the CommonDT count to find and assign the new data in a new Datatable
Now we have the new items in NewDT datatable.
There could be another scenario where the VirtualAccount can be updated in excel. We might have update that information in the database.
In that case,
Hope this helps you.
Happy Automation
@AKM_Robinuzzaman thank you so much for your feedback and reply,i will try it first. thank you so much sir
Yes please try it first and see if everything works fine or not. Few things you can also find in forum for example, how to connect to database.
@Mohamad_Izudin_Bin_Abdul I hope these file will help you. There is some extra work where you might have to update the database if any virtual account was changed. Thats also added here. If the Sql queries are not working properly then you might be using different version. When its not working try them out in the workbench first.
Happy Automation.
adding_to_masterDB.xaml (10.6 KB) comparing_database_entries_withNewOnes.xaml (21.5 KB) update_data_master_database.xaml (9.8 KB)
@AKM_Robinuzzaman hey Robin,thank you for your cooperation on this. looking forward on working with you more about automation for this. thanks ya!
i have encounter this during debugging.
do u hv any idea on how to put data instead of null.
thank you in advance sir
@Mohamad_Izudin_Bin_Abdul , perhaps the sample datatable is empty inside this workflow. The sampleDT should be the datatable that you got from the database and should be passed inside this workflow as argument. Can you please check that?
Best,
Robin
hi @AKM_Robinuzzaman when i execute im still having this issue as per image below,do you have any idea on how can i solve this issue? thank you
@Mohamad_Izudin_Bin_Abdul , this error can appear when a user tries to insert a non-unique value into a table’s unique column such as the primary key.
i have another error appear