Question & Answer
Question
Why I am getting Unauthorized, the respone code is 401 exception in "BPM Test project from process center" Wizard in BPM Testing Asset?
Answer
On Demand Consulting
Author: Mikhail Zilbergleyt
The "BPM Test project from process center" wizard makes a connection to the Process Center and reads the selected process application and/or toolkit.
If you are getting this exception:
Internal error: java.lang.RuntimeException: Unauthorized, the respone code is 401,
{
"status": "error",
"Data": {
"status": "error",
"exceptionType": "com.ibm.bpm.wle.api.NotAuthorizedProjectActionException",
"errorNumber": "CWTBG0594E",
"errorMessage": "CWTBG0594E: You are not authorized to perform the 'Read' action on project 'Project.54268792-de2f-4cc6-856a-2c0d279ac655'.",
"errorMessageParameters": ["Read",
"Project.54268792-de2f-4cc6-856a-2c0d279ac655"],
"responses": null
}
}
it means that the user you have configured in the wizard does not have at least "read" permission to the application or ANY of the toolkits the application depends on.
You can find out the project ( toolkit or app ) name, which caused the error, using this SQL query against BPM Process Database LSW_PROJECT table:
SELECT SHORT_NAME FROM LSW_PROJECT where PROJECT_ID = '{project}'
{project} is the string after the . in the "Project.54268792-de2f-4cc6-856a-2c0d279ac655", from the error message.
for example: SELECT SHORT_NAME FROM LSW_PROJECT where PROJECT_ID = '54268792-de2f-4cc6-856a-2c0d279ac655'
You can use one or the following options to fix the issue:
Author: Mikhail Zilbergleyt
The "BPM Test project from process center" wizard makes a connection to the Process Center and reads the selected process application and/or toolkit.
If you are getting this exception:
Internal error: java.lang.RuntimeException: Unauthorized, the respone code is 401,
{
"status": "error",
"Data": {
"status": "error",
"exceptionType": "com.ibm.bpm.wle.api.NotAuthorizedProjectActionException",
"errorNumber": "CWTBG0594E",
"errorMessage": "CWTBG0594E: You are not authorized to perform the 'Read' action on project 'Project.54268792-de2f-4cc6-856a-2c0d279ac655'.",
"errorMessageParameters": ["Read",
"Project.54268792-de2f-4cc6-856a-2c0d279ac655"],
"responses": null
}
}
it means that the user you have configured in the wizard does not have at least "read" permission to the application or ANY of the toolkits the application depends on.
You can find out the project ( toolkit or app ) name, which caused the error, using this SQL query against BPM Process Database LSW_PROJECT table:
SELECT SHORT_NAME FROM LSW_PROJECT where PROJECT_ID = '{project}'
{project} is the string after the . in the "Project.54268792-de2f-4cc6-856a-2c0d279ac655", from the error message.
for example: SELECT SHORT_NAME FROM LSW_PROJECT where PROJECT_ID = '54268792-de2f-4cc6-856a-2c0d279ac655'
You can use one or the following options to fix the issue:
- Use Process Center / Manage application and/or Manage Toolkit to grant "read" read permissions for the user to the Application and ALL toolkits the app is using
- If the permissions are mapped to a group(s), use BPM Process Admin console to add user to the group with "read" or higher permissions.
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSQTW3","label":"IBM On Demand Consulting for Hybrid Cloud"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]
Was this topic helpful?
Document Information
Modified date:
17 March 2019
UID
ibm10776261