You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2017-04-06 08:06:22

vaibhav.bandge
Member
6 posts

vaibhav.bandge said:

MetaServelet -file not valid or not exists error

I am trying to create a normal task on TAC by using metaServlet followed by Json request in Base64 format.
But I am facing the error: "file is not a valid file or not exist".
I have used Createtask command and  associatePreGeneratedJob command but both are not serve my purpose.
I am using Talend v 6.1.1 .I also used documentation -   https://help.talend.com/display/KB/Tale … umentation



{
 
"actionName":"associatePreGeneratedJob",
"active": true,
"authPass": "admin",
"authUser":"admin@company.com",
"contextName": "Default",  
"description":"task1's description",  
"executionServerName":"serv1",  
"filePath":"'/home/talend/generatedJob.zip'",  
"importType":"Nexus",  
"logLevel":"Info",  
"nexusArtifactId":"test",  
"nexusGroupId":"org.example",  
"nexusRepository":"snapshots",  
"nexusVersion":"0.1.0-SNAPSHOT",  
"onUnknownStateJob":"WAIT",  
"pauseOnError":false,  
"taskName":"task1",  
"timeout":3600
}

There they give parameter called Filepath ,there used my file .zip path while import type is nexus then also it shows error-file is not a valid file or not exist.


Can any one help me out of this? or suggest any approach to create task and then deploy the job over TAC.


Thanks,
Vaibhav

Last edited by vaibhav.bandge (2017-04-06 08:10:37)

Offline

#2 2017-04-06 09:30:01

TRF
Member
388 posts

TRF said:

Re: MetaServelet -file not valid or not exists error

Hi,

Did you try to replace "importType":"Nexus" by "importType":"File"?

Regards,
TRF

Offline

#3 2017-04-07 10:07:10

vaibhav.bandge
Member
6 posts

vaibhav.bandge said:

Re: MetaServelet -file not valid or not exists error

Thanks for your quick response.
Yes I tried this:
{
  
"actionName": "associatePreGeneratedJob",  
"active": true,  
"authPass": "XXXX",
"authUser": "XXXXX@XX.com",  
"contextName": "Default",  
"description":"task1's description",
"executionServerName": "Server1",  
"filePath": "'my local file path ended with.zip'",
"importType": "File",  
"logLevel": "Info",    
"onUnknownStateJob": "WAIT",  
"pauseOnError": false,  
"taskName": "task1",  
"timeout": 3600
}

Then also it gives same error- file is not a valid file or not exist.
Is it any Talend Version Issue? I am right now using 6.1.1 version of talend.

Can any one please send me Workable solution including JSON Script used over this ?

I tried out createTask and associatePreGeneratedJob actions of MetaServlet also but same problem arises . For createTask action gives "Can not find the Jobname", though all info provided is correct and Same Error-  file is not a valid file or not exist for  associatePreGeneratedJob action.

Thanks,
Vaibhav

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy