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

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads