"file is not a valid file or not exist" error in updateTask command of Metaservlet API TAC

Highlighted
Six Stars

"file is not a valid file or not exist" error in updateTask command of Metaservlet API TAC

Hi,

I am quit new to understand Metaservlet API commands of TAC. Acc to my previous experience ,Talend Community is very helpful for new users and provides accurate help and suggestions . I have referred documents over talend help center related to Metaservelet API commands.

 

I want to update the existing task on TAC using Nexus parameters,so I have used "updateTask" command but I got "file is not a valid file or not exist"  error while when I used "AssociatePreGeneratedJob "command using same Nexus parameters I don't get any error.

 

I have to pass following JSON request-

 {

"authUser":"example@company.com",

"authPass":"example123",

"actionName":"updateTask",

"active":TRUE,

"applyContextToChildren":FALSE,

"branch":"master",

"contextName":"Default",

"description":"task1 for extracting data from DB1",

"execStatisticsEnabled":FALSE,

"executionServerName":"ServerName",

"filePath":"/AutoPublishJob-0.2.0-SNAPSHOT.zip",

"importType":"Nexus",

"jobName":"AutoPublish_Jobs",

"jobVersion":"0.1",

"logLevel":"Info",

"nexusArtifactId":"AutoPublishJob",

"nexusGroupId":"company",

"nexusRepository":"snapshots",

"nexusVersion":"0.2.0-SNAPSHOT",

"onUnknownStateJob":"WAIT",

"pauseOnError":FALSE,

"projectName":"Project_name",

"regenerateJobOnChange":FALSE,

"taskId":121,

"taskName":"task1",

"timeout":"360

}

 

I am very confused why this happened because all parameters I passed are correct and even worked for "AssociatePreGeneratedJob " command with same parameters,no error comes but for updateTask command I got mentioned error.

Am I missed something in passing parametrs in above JSON request?

 

Kindly suggest me regarding this soon...!

 

Thanks And Regards,

Vaibhav


Accepted Solutions
Six Stars

Re: "file is not a valid file or not exist" error in updateTask command of Metaservlet API TAC

Hi all,

I was confused while selecting parameters given in Talend help Center Documentation regarding Metaservlet API commands.

 

Actually in updateTask Command if we are using Nexus parameters then no need of filepath there, whereas in associatedPregeneratedJob command we use both filepath as well as Nexus Parameters.

 

Thanks ,

Vaibhav


All Replies
Six Stars

Re: "file is not a valid file or not exist" error in updateTask command of Metaservlet API TAC

Hi all,

I was confused while selecting parameters given in Talend help Center Documentation regarding Metaservlet API commands.

 

Actually in updateTask Command if we are using Nexus parameters then no need of filepath there, whereas in associatedPregeneratedJob command we use both filepath as well as Nexus Parameters.

 

Thanks ,

Vaibhav

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