I am able to SELECT from the database table, but able to insert… Can you please help?
I want to do a bulk insert instead of reading “For-Each-Row” from the datatable
Yes. The columns are the same. Basically I have these data loaded into the database to create table. And then I am loading the same data to the UiPath datatable and then try to append to the database table that I created.
there is an IDENT ITEM ID … not sure if it’s because the column name have spaces…
I will check it out again with a fewer column database table I guess…
Thank you! yes… it’s because of column names have the space… now I get another error of another column name…
However, now my question is that in the actual database which contains millions of live data, the column names have space in them…
If I change my excel files to have no spaces in the column names, the column names will be different from the actual database and those columns won’t be matched…?
Basically the actual database and the excel file input have exactly the same name now… what can I do at this point for a bulk upload? just like import as easy as in an import wizard…
Hello @palindrome
It doesn’t where I rename the new data’s column names - in Uipath data table or in the excel sheet. What I meant is that after I change the new data’s column names with _ or no space, it won’t match the existing database’s column names. And I have just proved it
.Net SqlClient Data Provider : Invalid column name ‘period_number’.
Invalid column name ‘week_number’. — in database it’s “week number”
Invalid column name ‘route’. — in database it’s “route #”
Invalid column name ‘ident_item_id’. — in database it’s “ident item id”
You know what I mean?
What is the best approach for this scenario? I don’t prefer to change the column name of the original database unless it’s absolutely necessary. Thanks!
Hello @lavint Use Read Workbook Activity instead of using Excel Read Range Activity. Extra columns/rows will be added if you don’t provide exact range in Excel Read Activity.
Store Result in Data-table & use Insert Activity to store data inside Database.