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

  • Data Integration
  • ESB
1 ACCEPTED SOLUTION

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

1 REPLY
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