Contract workspace cannot be created
source link: https://community.sap.com/t5/spend-management-q-a/contract-workspace-cannot-be-created/qaq-p/12604952
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK