DB

Hello all,

I seem to be having an issue running a report in ARIS.  I receive the attached error whenever I'm attempting to run the report, and I'm unable to diagnose what is causing it.  Below is the function in which "AttrTypes" occurs.

function getDefAttrTypes(oItem,type_num)
{
   var defined_attrs = [];
   var attr_place = 0;
   var attr_Maintained = 0;
   var attr_types = filter.AttrTypes(oItem.KindNum(),type_num);
   for(j=0,<attr_types.length; j++)
   {
       attr_Maintained = isAttrMaintained(oItem,attr_types[j],nLocale);
       if(attr_Maintained == true)
       {
           defined_attrs[attr_place] = attr_types[j];
           attr_place++;
       }
   }
   return defined_attrs;
}

 

Please let me know if there is any remedy to the situation, thank you!

File attachments
by Tricarico Romain
Posted on Thu, 09/29/2016 - 17:50

Hello,

I gess you are using somewhere else in your code a function like this one :

var attrTypeNum = filter.UserDefinedAttributeTypeNum("92058461-3d19-11e5-4a75-f8b156dc49a5");

And the GUID is not a GUID of a customized attribute, so this function returns -1.

Then when you call

filter.AttrTypes(oItem.KindNum(),type_num) 

with type_num equals to -1 -->  you get the error.

Use breakpoints to check every values of your defined attributes.

Let me know if you solve it.

Best Regards

Romain Tricarico. BPMap

 

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
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 icon-lock