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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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/search/all?query=Talend+Administration+Center+MetaServlet+API+documentation



{
 
"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.


[font=consolas, monaco, bitstream vera sans mono, courier new, courier, monospace]Can any one help me out of this? or suggest any approach to create task and then deploy the job over TAC.[/font]


Thanks,
Vaibhav

Labels (2)
2 Replies
TRF
Champion II
Champion II

Hi,

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

Regards,
TRF
Anonymous
Not applicable
Author

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