Skip to main content
Solved

Cannot Connect to Data Model on ML workbench

  • Aug 2, 2022 11:14 AM UTC
  • 3 replies
  • 207 views

Cannot Connect to Data Model on ML workbench

Best answer by Anonymous

Hmmmm....

 

it should be really simple

 

from pycelonis import get_celonis

celonis = get_celonis()

 

celonis.datamodels

 

(you will get a list of ALL the data models that your key has access)

 

datamodel=celonis.datamodels.find('datamodelname')

 

and data model is a data model object that you can use as per

 

https://celonis.github.io/pycelonis/1.7.1/reference/celonis_api/event_collection/data_model/

 

Most of the times can be that, simply, your key has not permissions.

Or that the name you put in the .find() is incorrect/misstyped/etc..... so .find() will return an empty value.

 

HTH

View original

3 replies

  • Aug 2, 2022 11:30 AM UTC

I am trying to make a connection to a data model through workbench, so far I have extracted the json file from the data pool and used both the data model id and the data model name in ;

pool = celonis.datamodels.find("--data model id--")

But so far I am getting no results found. Is there a process that I have to follow beforehand ? I am currently following the root cause analysis ipynb notebook


  • Answer
  • Aug 2, 2022 3:07 PM UTC

Hmmmm....

 

it should be really simple

 

from pycelonis import get_celonis

celonis = get_celonis()

 

celonis.datamodels

 

(you will get a list of ALL the data models that your key has access)

 

datamodel=celonis.datamodels.find('datamodelname')

 

and data model is a data model object that you can use as per

 

https://celonis.github.io/pycelonis/1.7.1/reference/celonis_api/event_collection/data_model/

 

Most of the times can be that, simply, your key has not permissions.

Or that the name you put in the .find() is incorrect/misstyped/etc..... so .find() will return an empty value.

 

HTH


  • Aug 3, 2022 8:41 AM UTC

It was actually a permissions issue, individual permissions do not "count" in workbench and was classified as another "user". Thank you very much !