ARIS - Q&A Session 9:00am CEST
ARIS - Q&A Session 6:00pm CEST

View all
Profile picture for user jordanjt95

Hi everyone

I'm trying to create object occurences on a model using the following function : 

function createOcc(model,oObjDef,nType){
    var obj = model.createObjOcc(nType,oObjDef,oX,oY,true);
    return obj;

Before sending the model to this function, I'm storing the model in a variable by using this line of code :

var app2systemCatalog = g_oDatabase.FindGUID("a918c921-1727-11ec-619c-d63b1f542671");

After running my script I get an error on the first line of the "create Occ" function, the error looks like this :

Apparently , my model is "invalid" , I don't understand why.

If someone knows where the problem could be, I'd appreciate some help.

Thank you.

by M. Zschuckelt
Posted on Mon, 09/20/2021 - 21:12


did you check with app2systemCatalog.isValid() if you received a valid result? Maybe you got the GUID of the model wrong? Or you don't have read permission on that model?

by Jordan Tangy
Badge for 'Question Solver' achievement
Posted on Wed, 09/22/2021 - 12:39

In reply to by M. Zschuckelt

Hi , thank you for your answer.

I checked a couple of times that the GUID model is the right one.

It might be a read permission problem, I'll check that. 

Thank you !


Featured achievement

You help out the community by answering a question.
Recent Unlocks
  • IG
  • Profile picture for user J-M Erlendson
  • SD
  • RV
  • VP
  • PacMan


Weekly | All-time
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon