Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/14/2024 07:21 AM
Getting below error for unsuccess response instead of getting the valid error description
{"auditDetails":{"Groups":[{"message":"Cannot invoke method put() on null object","status":"Failed"},
JSON Used:
{
"call": [
{
"name": "Groups",
"connection": "acctAuth",
"url": "https://xxxxxxxxx",
"httpMethod": "POST",
"httpParams": "{\"spi:userid\":\"${user.systemUserName}\",\"spi:groupname\": \"${entitlementValue.entitlement_value}\"}",
"httpHeaders": {
"apikey": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"statusCode": [
400,
403,
401,
404,
409,
501,
500
]
}
}
]
}
Appreciate any help.
Log details:
10/14/2024 07:54 AM
@mayankshah error check the values if those are right
responseText:{"oslc:Error":{"oslc:statusCode":"400","errorattrname":"userid","spi:reasonCode":"BMXAA4191E","errorobjpath":"groupuser","correlationid":null,"errattrvalue":null,"oslc:message":"BMXAA4191E - The value XXXXX is not valid for User. Specify a valid value for User.","oslc:extendedError":
10/14/2024 08:20 AM
The error is expected, as the access/group is already assigned to the user. The provisioning comment should store the error response in the task but the task is instead storing below error:
{"auditDetails":{"Groups":[{"message":"Cannot invoke method put() on null object","status":"Failed"}
Above screenshot of task prov comments doesn't reflect the application error.
10/14/2024 08:25 AM
ASK: The prov comments should store below error:
{"oslc:Error":{"oslc:statusCode":"400","errorattrname":"userid","spi:reasonCode":"BMXAA4191E","errorobjpath":"groupuser","correlationid":null,"errattrvalue":null,"oslc:message":"BMXAA4191E - The value XXXXX is not valid for User. Specify a valid value for User.","oslc:extendedError":{"oslc:moreInfo":{"rdf:resource":"http:\/\/xxxxxx\/xxxxx\/api\/error\/messages\/BMXAA4191E"}}}}, cookies:[JSESSIONID=0000BGTgA93d0q4RvyVrwoc1RVu:1d7mpbbkf; Path=/; HttpOnly; SameSite=None; Secure], statusCode:400]
10/14/2024 10:02 AM
10/15/2024 01:50 AM
{"auditDetails":{"Groups":[{"message":"Cannot invoke method put() on null object","status":"Failed"}
Why is Saviynt storing this on the provisioning comments because there is no response in the API that says this error? Usually provisioning comments gets auto-populated based on the API response but in this case I am getting this error out of no where.
10/15/2024 01:58 AM
@mayankshah if the API is giving 2 response .. it could be it is picking the second one.