Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
yoxler
Contributor III
Contributor III

NullPointerException in tOracleBulkExec

Hi,

 

We are about to move a lot of data from a oracle database into a new oracle db and also a MSSQL db. For MSSQL the bulk exec runs just fine but when we use tOracleBulkExec we always get a null pointer exception.

 

I've tried different settings in the component but no luck. I have installed sqlldr.

 

The row that causes the error is:

lr_tDBBulkExec_2.close();

 

Any ideas?

 

Thanks

Andreas

Labels (3)
1 Solution

Accepted Solutions
yoxler
Contributor III
Contributor III
Author

Re installed the client and now it works. Must have messed up before, sorry for the inconvenience. 

View solution in original post

12 Replies
manodwhb
Champion II
Champion II

@yoxler,Did you use tOracleConnection component in your work flow? If so, is there any connector(onsubjobok or oncomponentOk) between tOracleConnection and tOracleBulkExec?

 

since it could be connection or Bulk file path issue. since check the below link

https://help.talend.com/reader/NNO~fmVQU4rlkF9Depfdxw/kjYl_YFAdMYvz4O4QFyT_A

yoxler
Contributor III
Contributor III
Author

I have a connection to the database and use it in the component. The connection is connected to a Prejob. I've tried to just do normal inserts using tDBOutput and that works so conneciton to the DB and table is OK

 

0683p000009M2vq.png

manodwhb
Champion II
Champion II

@yoxler , where are you creating bulk file and can you show job design?

 

yoxler
Contributor III
Contributor III
Author

I've tried both with a csv file and db output bulk files, with the same results.

 

The disabled flow for MSSQL works fine with the csv file. The java stuff only prints time. 

 

0683p000009M2wP.png

manodwhb
Champion II
Champion II

@yoxler ,can you show configuration of "bulk exec" component,the one which is failing?

yoxler
Contributor III
Contributor III
Author

The basic settings is the one I posted before. this is the advanced. Only thing I changed is the field terminator

0683p000009M2pF.png

manodwhb
Champion II
Champion II

@yoxler ,can you verify the schema of bulk file and tDBBulkExec

yoxler
Contributor III
Contributor III
Author

Perhaps it has something todo with the SQLLDR installation. I will try to reeinstall it

manodwhb
Champion II
Champion II

@yoxler ,yes when you try to use Bulk component you need to make sure all the required jars installed and DB side setting also need to be done.