Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

receive error 500 when calling addrole API

RBKHC
New Contributor II
New Contributor II

Version 2020.1.2

{{url}}/ECM/api/v5/addrole

receive error 500 when calling addrole API

There is no documentation on the possible error messages when using APIs. Can you please provide error information for 500.

3 REPLIES 3

saikanumuri
Saviynt Employee
Saviynt Employee

Can you check the column size of ASSIGNEDFROMROLES under account_entitlements1 from DataAnalyzer if it's currently varchar

saikanumuri_0-1677256121746.png

 

RBKHC
New Contributor II
New Contributor II

I figured out that I was missing the response body from Saviynt that contained more details as to what failed. When calling the API from PowerShell Invoke-RestMethod I needed to use the switch -SkipHttpErrorCheck to allow the process to see the response body.

Thanks for your response!

RBKHC
New Contributor II
New Contributor II

Hi saikanumuri, the column is the same as your screen shot EXCEPT it is Varchar (255) instead of Varchar (1024).

RBKHC_0-1677532924433.png