failing to connect to oracle db "Invalid number format for port number"

Five Stars

failing to connect to oracle db "Invalid number format for port number"

Hi Guys,

I was struck with a simple problem.

I was trying to connect to oracle database using tContextLoad component.

Im reading the db values from a csv file and Im able to load and display the values in the console but when i try to use the context variables in tOracleInput component im getting the above error 
"Invalid number format for port number"

Can anyone help me with this??

The strange thing here is im able to connect to db if i hard code the value in context variable without loading from file
but when i try to load the value from file im getting the above error

this is my csv file content

host:localhost
port:1521
sidSmiley Surprisedracle
databaseSmiley Surprisedracle
username:source_db
password:source_db
schema:source_db

Six Stars

Re: failing to connect to oracle db "Invalid number format for port number"

What is the Type on your Port Context Variable? it should be string that is the only thing I can think of

Five Stars

Re: failing to connect to oracle db "Invalid number format for port number"

Hi,

Yes the data type was string only for the port number

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now