Tsystem component doesnot work as expected after deployment

Six Stars

Tsystem component doesnot work as expected after deployment

Hi, I am trying to upload a file using curl command in tsystem. It works fine. But when I deploy the same to karaf, The file upload is not working.

Below is the command that works in Talend:

 

"cmd /c start powershell -noninteractive C://Curl_windows//src//curl.exe -H 'X-API-TOKEN:qEaZWY5zekZd' -F 'surveyId=SV_8dpqG2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' 'https://au1.qualtrics.com//API//v3//responseimports'"

 

Can someone please suggest any alternative?

 

Works in Powershell but not in talend:
C://Curl_windows//src//curl.exe -H 'X-API-TOKEN:qEa9E1nq91rXFZWY5zekZd' -F 'surveyId=SV_8dpI0oD2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' https://au1.qualtrics.com/API/v3/responseimports

Seven Stars

Re: Tsystem component doesnot work as expected after deployment

Hi  TalendNewBee,

 

Could you please post what error message you are getting when running job in karaf. 

Also let me know you are using Linux or Windows server for Talend.

If you are using Linux you have to change curl.exe path in your job,for that you can create context parameter in your Talend job.

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar
Six Stars

Re: Tsystem component doesnot work as expected after deployment

Hi, I am not getting any error. But the file is not being uploaded. I am using Windows server.

 

Below command Works in Powershell but not in talend:
C://Users//curl-7.58.0//src//curl.exe -H 'X-API-TOKEN:qEa9E1nq91rX0ZLQuFZWY5zekZd' -F 'surveyId=SV_8dpqGhS2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' https://au1.qualtrics.com/API/v3/responseimports

 

Error:
{"meta":{"httpStatus":"400 - Bad Request","error":{"errorMessage":"Expected authorization in headers, but none provided.","errorCode":"ATP_2"},"requestId":null}}

 

This command works in talend but doesnt do as expected when I deploy:

"cmd /c start powershell C://Curl_windows//src//curl.exe -H 'X-API-TOKEN:qEa9E1nq91rX0ZLQuFZWY5zekZd' -F 'surveyId=SV_8dpqGh0oD2nJ3' -F 'file=@C://VocalCom_Logs//qualtrics_realtimedata//surveyresponseimport.csv;type=text/csv' 'https://au1.qualtrics.com//API//v3//responseimports'"

 

Please help me out

 

 

 

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read