Hello and Happy Friday, everyone!
I am trying to import data from the csv file (no delimited comma, just the regular csv file) to an external Oracle db table by using the DataIterator with the Reading by File and Reading by File but it takes so long like 45 minutes for just 800 records vs a 2 min in SQL Developer to finish. Can someone please advise if there is a better way to do the import beside the DataIterator thing? Thanks in advance.
Hello David! Thanks for the quick response.
Well, the data from CSV was parsing out from the API site (another IPA flow) and I trying to import/load that data into an Oracle table. The DataIterator was suggested by a friend but it does not seem to work well in this case. I know that there is a better way to do load the entire csv file but I just dont know how/where to start. Do you have a sample flow of doing the JavaScript Expression in the Assign node that you mentioned, can you please share it? TIA.
Looks like my variable was cut out of the insert into line. At the end of the line (after [tablename]) there should be a space and then the variable name where the dataset is stored.
Sorry for the confusion.
Would you mind sharing a sample of it or print screen of that flow? Thank you!
I have tried the iterator to read the file with the SQL Transaction node, the process was sucessfully ran without any errors. However, it just inserted the word "null" instead of data. I think I missed something in the SetFileName part but was not able to figure it out yet. Do you have any idea that I might miss? Thank you.
Here is a print screen of my trimmed down flow. This sample is using a .csv file with EMPLOYEE, LAST_NAME, FIRST_NAME as the fields. I removed true database name/table and reference DatabaseName, Schema and TableName where you need to insert your own information.
I have uploaded the actual flow. Hope it helps.
Thank you FireGeek21 for sending the sample flow, FireGeek21. I will try it and post an update soon.
Hello FireGeek21,
Again, thanks for sharing the flow. It works great for me with the small file that has just a few columns/fields.
However, when I try to apply the same method for a bigger file that has 10 or more columns/fields than it does not seems to work right. I created additional variables for those fields but I think I messed up the JavaScript DataArray in the Assign node as I was confused on how it works as seen below. Would you mind to explain a little more on these arrays in that node? Thanks in advance.