Closed hustontrevor closed 1 year ago
Hi @hustontrevor, in ObjectTypes we only have Enums supported by mstrio and we don't support Template object. However, we'll improve error handling for this case.
Hi @hustontrevor, improved error handling is now available with 11.3.9.101 version.
https://github.com/MicroStrategy/mstrio-py/blob/297ac7b60b11b74a5b1808caec87f91c035fa617/mstrio/types.py
https://www2.microstrategy.com/producthelp/Current/ReferenceFiles/reference/com/microstrategy/webapi/EnumDSSXMLObjectTypes.html
Below is failing when it encountered a Template object. Type should be 2, but None is returned.
File "C:\Users\adfafdsa\AppData\Local\Programs\Python\Python310\lib\site-packages\mstrio\utils\dependence_mixin.py", line 76, in list_dependents
mstrio.utils.helper.IServerError: Invalid value for 'usedByObject' or 'usesObject' parameter: '59BA48A948294B23EB2CBBAC6313EB16;None'. It should be: object Id;object type, for example: 'E02FE6DC430378A8BBD315AA791FC580;3'; code: 'ERR006', ticket_id: '08efbdc709d749d1958e2b2873fbe55c'
`def getDirectDependents(depns, obj, depth):
!! Attribute.list_dependents(uses_recursive=True) goes down to Table then back up, so it's useless. Need one at a time loop
`