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!
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