REST Connector Blank Value in CreateAccountJSON, RemoveAccessJSON etc.

adecastro1
New Contributor II
New Contributor II

We use a few REST connections where we want the CreateAccountJSON or RemoveAccessJSON task to complete successfully and prior to version 5.5 SP3.18 we could use {} and the task would complete successfully.

adecastro1_0-1688071063195.png

Now we find an error message like null pointer exception. Does anyone know what value we could put in these provisioning related fields that would complete successfully without taking any real action? Thanks.

13 REPLIES 13

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @adecastro1,

Could you please try to keep it blank and try again?

sudeshjaiswal_0-1688099428890.png


Thanks,

I have tried with the field blank but the task still doesn't complete successfully. 

Call dummy url and auto complete the task.


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @adecastro1,

Please update to the latest version. After doing so, then you should be able to use {}.

Thanks,

adecastro1
New Contributor II
New Contributor II

@rushikeshvartak do you have an example? 

@sudeshjaiswal do you mean the latest major version or the latest service pack for 5.5? We have started discussions about the major version upgrade, but we aren't able to do this now yet

Thanks

{
"name": "Subscription",
"connection": "userAuth",
"url": "https://graph.microsoft.com/AutoApproveAddTask_Subscription",
"httpMethod": "GET",
"httpParams": "",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
400
]
}
}


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @adecastro1,

Latest Service Pack for 5.5.

Thanks.

adecastro1
New Contributor II
New Contributor II

@sudeshjaiswal we do have 5.5 SP3.20 in our dev environment but I still observe the same issue

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @adecastro1,

Are you passing the {} in Version 5.5 SP3.20? Have you tried it?
What do you see in the logs?

Thanks.

adecastro1
New Contributor II
New Contributor II

I have tested {} in 5.5 SP3.20 and I receive error:

java.lang.NullPointerException: Cannot invoke method size() on null object

I have tried a dummy call like this in AddAccessJSON:

{
"name": "Groups",
"connection": "auth",
"url": "https://graph.microsoft.com/AutoApproveAddTask_Subscription/x",
"httpMethod": "GET",
"httpParams": "",
"httpHeaders": {
"Authorization": "abcd"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
400,
401
]
}
}

I also get the same null pointer exception when attempting this

 

Add null in success


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @adecastro1,

Could you kindly create an FD ticket for this issue? It requires additional troubleshooting.

Thanks,

adecastro1
New Contributor II
New Contributor II

Thanks for the suggestions, I have tried null in success codes, but we see the same issue. We have had a Freshdesk ticket open over a month.