Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to build a task on TAC using metaServlet API call 'associatePreGeneratedJob' from Nexus artifact. The job has only one context which is the 'Default'. However the API call returns with contextName not found error.
API call:
{
"actionName": "associatePreGeneratedJob",
"active": true,
"applyContextToChildren": false,
"authPass": "**********",
"authUser": "<user>",
"contextName": "Default ",
"description": "Test Job",
"branch": "branches/ETLFrameWorkExtension_MVP",
"execStatisticsEnabled": false,
"executionServerName": "nxttal098",
"jobName": "INGEST_0010_cdc_for_stream_v3",
"jobVersion": "1.0",
"filePath": "'/org/ppb/DW/MVP/v_1_0/INGEST_0010_cdc_for_stream_v3/0.1.0-SNAPSHOT/INGEST_0010_cdc_for_stream_v3-0.1.0-SNAPSHOT.zip'",
"importType": "Nexus",
"logLevel": "Info",
"nexusArtifactId": "INGEST_0010_cdc_for_stream_v3",
"nexusGroupId": "org.ppb.DW.MVP.v_1_0",
"nexusRepository": "snapshots",
"nexusVersion": "0.1.0-SNAPSHOT",
"onUnknownStateJob": "WAIT",
"pauseOnError": false,
"projectName": "DW",
"regenerateJobOnChange": false,
"taskName": "MVP_demo_API_Ingest_Job",
"timeout": 3600
}
Return Message: {"error":"Parameter 'contextName': This job doesn't have context: 'Default'.","returnCode":1}.
However when I create the task from TAC i can see context name 'Default'
Context Name 'Default' is visible when accessed from TAC
Hello,
On which talend build version you got this issue? Are you using MetaServlet UpdateTask to change the context used by a task?
Could you please take a look at this jira issue to see if it is what you are looking for? https://jira.talendforge.org/browse/TMC-1011
Best regards
Sabrina
Hi Sabrina,
Talend version is 6.2. I am using 'associatePreGeneratedJob', 'createTask' and 'updatedTask'. None of this Metaservlet API calls are taking contextName.
The Jira issue only covers 'updateTask'. However it is a problem with all above mentioned API calls.
I am also getting same error.
{"error":"Parameter 'contextName': This job doesn't have context: 'Default'.","returnCode":1}
And I didn't found a way to fix it.