Two things. There is a warning about a timeout of 3 seconds which might not be enough.
2020-03-20 11:10:09,303 : WARN : main : : Node : DB Insert : 0:381 : java.sql.SQLException: I/O Error: Connection reset by peer: socket write error
2020-03-20 11:10:21,742 : WARN : main : : DBDataPortObjectSpec : DB Insert : 0:381 : Node configuration was aborted after 3 seconds. To change the timeout parameter ‘Retrieve in configure timeout’ go to the ‘Advanced’ tab of the database connector node.
And a strange warning about a file NULL that could not be read by the SAS reader which might be connected to the NULL problem.
2020-03-19 20:22:56,563 : WARN : main : : Node : SAS7BDAT Reader : 0:369 : C:\Program Files\KNIME\null (The system cannot find the file specified)
You might want to check that. Maybe use a path with KNIME protocol.
Maybe you could provide us with a simple SAS file with unsuspicious data from your system so we might have a try.
For this trial and get the ETL process working, I usually delete all tables in the test database before running the workflow. So, there are no tables in the test database. Later and once workflow worked, I will add the node yo mentioned.
Me neither. But this is at one point where the node seems to fail. Therefore my idea to use KNIME protocol to see if it changes anything and provide us with a minimal example that reproduces the error.
Also you could try an entirely new node. I have some hints that with certain nodes not all relevant settings are reset.
“the system cannot find the specified file” message is only a warning and not the main reason why your workflow fails.
According to the KNIME log the DB Insert node fails because you try to write missing values into a database column that does not support NULL (missing) values.
Can you please double check that you delete the table from the database either via another tool or the DB Table Remove node in KNIME and then make sure that the Not Null column in the Columns tab of the DB Table Creator node is not selected
Thank you for the tips. I did all you suggested and now I am getting a new error that a variable in one the data set is invalid!!
Here are screenshots of the process and associated questions:
LoopOverFiles_Config: Here I am defining missing values with String = null
DB Table Remover_Config: I am specifying Schema and table name. WI can’t find a way to select all tables or specify table names! it could be that the workflow stopped right after the importing hte first table into SQL
DB Table Creator_Config1: I define Schema but the Table Name can’t be left blank so I populated with the name of the first SAS dataset (btact). Can’t fiind a way to say grab all table names from file names!
DB Table Creator_Config2: I can’t see “Knimetry” under Schema drop down nor do I see “Tablename” under TableName drop down!
DB Table Creator_Dynamic Setting: Here I am defining string value to SQL type varchar(max) to make up for those string fields with even more than 1024 characters
DB Insert Config: Here is the settings for DB Insert node
DB Insert Output Type Mapping: Here is the Output mapping
DB Insert Flow variables: I selected tablename from Table drop down list but don’t see the Knimetry under Schema drop down
Workflow before Running Last Step (Var loop end): Here is the workflow that ran with no issues before running the last step
Workflow After Running Last Step (Var loop end): Here is the work flow that ran with errors after running the last step
Have you tried to use all lower cases? Just to be sure this is not the point.
Then have you thought about my other remarks? Especially trying to delete and set up the relevant node from scratch just to be sure.
Then you could try combinations of your table name and failing variable name with different schemes from your database. And also try the same column name and scheme with a table created entirely in KNIME to get an idea if there might be a problem with the driver (you have the latest one?).
the error message states that you want to write a column with name RecordDate into the db table with name Knimetry.btact but the column does not exist in the database.
I notice that you write the Schema name sometimes Knimetry (DB Table Creator) and sometimes knimetry (DB Table Remover). The schema is case sensitive so this refers to two different schemas! Ideally you also use flow variables for the schema name to be consistent.
Also if you want to write each SAS file into another db table you need to attach the db table name to each file and use this information as flow variable in all db nodes e.g. DB Table Creator and DB Inserter.