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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
PPerera1645015819
Contributor
Contributor

Object reference not set to an instance of an object.

Hi all,

I'm facing an issue that is related to the tRESTClient component.

HTTP Method - POST

Content Type - JSON

Accept Type - JSON

Includes multiple Query parameters which are needed to pass as input parameters to the current API call.

In the Advanced Settings of the tRESTClient I'm using three parameters as the headers as listed below.

Connection - "keep-alive"

Authorization - "access key type"+"Access token"

Content-Type - "application/json"

With this same set of configurations, API call works fine in the POSTMAN, but in TALEND it keeps sending an error message with a successful response.

Talend Output:

|200 |<?xml version="1.0" encoding="UTF-8"?>

<root><root><returnvalue>ControllerFailed</returnvalue><errorcode>Object reference not set to an instance of an object.</errorcode><RefID/></root></root>

POSTMAN output:

[

    {

        

"returnvalue"

"Success"

,

        

"errorcode"

""

,

        

"RefID"

"BAT000000107"

    }

]

Please suggest me a solution to, if you guys have an idea about this error.

Appreciate your support.

Thanks,

Pasan.

Labels (4)
1 Reply
gjeremy1617088143

Hi, Object reference not set to an instance of an object is surely due to a null value somewhere, ensure that you send the good JSON in the post method.