Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

API fetchRuntimeControlsDataV2 - "msg": "runtime v2 analytics not found",

BG_IAM
New Contributor III
New Contributor III

Hello,

I am getting response "runtime v2 analytics not found"

I am using API fetchRuntimeControlsDataV2 for runtime analytics as below:

BG_IAM_4-1725543719664.png

BG_IAM_6-1725543947474.png

When I am sending from POSTMAN:

BG_IAM_1-1725543407784.png

I am getting response: "msg": "runtime v2 analytics not found"
BG_IAM_2-1725543434837.png

Do you have an idea why?

18 REPLIES 18

NM
Esteemed Contributor
Esteemed Contributor

Hi @BG_IAM did you create it as a runtime analytics.. do you see a clock/timer after analytics on UI?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

BG_IAM
New Contributor III
New Contributor III

Yes, it's runtime analytics. Details in the screenshot attached in previous post (analyticsconfig).

rushikeshvartak
All-Star
All-Star
  • @BG_IAM What API are you using ? Below is correct one
  • rushikeshvartak_0-1725547070017.png

     


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak 

I am using: <URL>/ECM/api/v5/fetchRuntimeControlsDataV2

Runtime analytics were created on version 24.7v. However, in the analyticsconfig, I can see that the column ACTIONJSON has the version set to "v1". Could this be an issue?

BG_IAM_0-1725547737952.png

 

Recreate report and try


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak 

its re-created but I'm getting the same error.

BG_IAM_0-1725549478418.png


Here's a corrected version of your text:

"attributes: {} is mandatory in the BODY if I don't use variables for analytics? The API documentation says it is. Could this be the reason?

BG_IAM_1-1725549766136.png

 

 

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak

curl --location 'https://<URL>/ECM/api/v5/fetchRuntimeControlsDataV2' \
--header 'Content-Type: application/json' \
--header 'Authorization: ******' \
--header 'Cookie: CCSRF-TOKEN=<some string>; INGRESSCOOKIE=<some string>; access_token=<token>; token_type=Bearer; user_name=<username>' \
--data '{
   "analyticsid": "11"
}'

curl --location 'https://XXXX.saviyntcloud.com/ECM/api/v5/fetchRuntimeControlsDataV2' \
--header 'Authorization: Bearer "xx' \
--header 'Content-Type: application/json' \
--data '{
    "analyticsid": "121601"}'

Try above also share screenshot from analytics list tab for report


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

stalluri
Valued Contributor II
Valued Contributor II

@BG_IAM 

Can you also share the image of the analytics config you created? 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

BG_IAM
New Contributor III
New Contributor III

@stalluri 

Please check as below.

BG_IAM_1-1725567006965.png

 

 

Please share from outside does report name have icon(runtime)


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak  yes, its created as runtime in table screenshot you can see category.

BG_IAM_0-1725611750483.png

 

Manu269
All-Star
All-Star

is there any input parameter which you have added in analytics?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

BG_IAM
New Contributor III
New Contributor III

Hi @Manu269  there is not parameter used in analytics.

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @BG_IAM , 

1) Try with this url - https://abc/ECM/api/v5/fetchRuntimeControlsData 

2) If you are not using parameters, create sql query analytics and use below url (and screenshot). Though run time can be used as well but that the core usage of that is to take input from users. If you just want to run it as SQL , have sql query

/api/v5/fetchControlDetailsES

Amit_Malik_0-1725623184248.png

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

BG_IAM
New Contributor III
New Contributor III

Hi @Amit_Malik 

t seems that the API works fine: https://abc/ECM/api/v5/fetchRuntimeControlsData.

I also modified the analytics by adding a variable selectable from "attributes." It works fine in the sav UI, but with API v2, I'm still seeing the same issue: "runtime v2 analytics not found."

I'm going to use API v1 instead.

Thanks!

Please share transport extract of report . 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.