cancel
Showing results for 
Search instead for 
Did you mean: 

Contract workspace cannot be created

former_member825825
Discoverer
0 Kudos
471

Dear Experts,

Hello, I am having a problem using Contract Workspace API to create Contract workspace.

Contract workspace cannot be created due to errorCode: 400004; message: "[No template exists with the given template ID: CWxxxxxxx]"

The problem was created following the steps below:

#1 Confirm valid template id from Ariba homepage > Contracts > Manage > Templates > … > {target template} and copy template id from "Properties - ID"

#2 Acquire Oauth token (access_token)

#3 Input content from "body2.txt" into request body

#4 Input the following items(key: value) into Headers:

Accept: application/json

Authorization: Bearer{access_token}

apiKey: {apiKey}

#5 Select Post as request method

#6 Set objective url as "https://openapi.ariba.com/api/retrieve-contract-workspaces/v1/prod/contractWorkspaces?user={user}&passwordAdapter=PasswordAdapter1ℜm={realm}"

#7 Send the request

The expectations are:

① Contract workspace be created without any problem in the respond

The incident is:

① 400 respond with the following body:

"errorCode": "400004",

"message": "[No template exists with the given template ID: CWxxxxxxx]"

Please find body2.txt file mentioned above attached with captures of error.

It would be kind of you to let me know how did the incident happen and what is the resolution.

Kind Regards

Han

body2.txt
error-code-400004.png

get-template-id.png

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member37947
Participant
0 Kudos

Dis you solve this issue?

I´m stuck in the same point

It seems weird.

I retrieve an existing CW, and I copy the TemplateID.

Then I try to create a new CW with the same TemplateId and I get the following error:

[ { "errorCode": "400004", "message": "[No template exists with the given template ID: CWXXXXX]" }]
srinivasakalakoti
Discoverer
0 Kudos
You have to pass template ID in the Payload