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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Getting contextName 'Default' not found when create task using metaServlet API 'associatePreGeneratedJob' call

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'

0683p000009Lvtc.pngContext Name 'Default' is visible when accessed from TAC

 

Labels (3)
3 Replies
Anonymous
Not applicable
Author

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

Anonymous
Not applicable
Author

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.

shivanand
Contributor III
Contributor III

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.