Closed CalebMDMI closed 6 months ago
Thanks @CalebMDMI . This definitely looks like a server-side issue. I have raised this internally and I'll get back to you when I know more.
@CalebMDMI This has been successfully reproduced in the Granta MI server. Once we have a build available with this fix I'll update our test machine and create a Pull Request that introduces a test to verify the fix.
This issue has been fixed in Granta MI, and the associated PR adds some additional integration tests that validate this behavior.
This issue also manifested in multiple copies of the list being returned with include_items=False
, typically the behavior seemed to be that a separate list result was returned for every item in the list that matched the criterion. This issue has also been resolved with the same fix in Granta MI, and now only a single list object is returned.
As a workaround, I think the best that can be done is to just manually iterate over every returned list result and only keep ones with unique list identifiers.
🔍 Before submitting the issue
🐞 Description of the bug
When calling
RecordListsApiClient.search_for_lists(criterion, include_items=True)
, I got the following exception message:This generated the following server log:
📝 Steps to reproduce
(Client name confidential)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
GRANTA_MIScriptingToolkit
3.2.164ansys-grantami-recordlists
1.1.0🐍 Which Python version are you using?
3.12
📦 Installed packages