Problem with releasing Project Automation API license in Studio 2022

Hi, we are experiencing an issue in our standalone application integrating with the Trados Studio 2022 API (currently version 17.2.10.19084).

Our application runs as a background service that processes messages requesting to do something over the Studio API, then goes back to waiting. Lately, it has come to our attention that our Studio 2022 integration seems to hold on to a network license indefinitely, whereas for Studio 2021, it is released when processing finishes.

In our logging, we see the following lines, the latter two of which are only present with Studio 2022:
Debug log entries showing the initialization and checkout of SafeNet product licenses for Studio 2022, including AllowQ1Q2 2022 and ProfessionalEdition 2022.

This license checkout occurs the first time we make a call to the Project Automation API.

While investigating, we found this page of the documentation, which seems to have somewhat recently been updated with a note about releasing the license: https://developers.rws.com/studio-api-docs/apiconcepts/projectautomation/overview.html

We tried implementing this release method whenever a message finishes processing, but this only leads to bigger issues. Any later message that requires a call to the Project Automation API now produces the following error:
Error message screenshot indicating a license check failure during project creation with a System.NullReferenceException in various Studio licensing components.

From this and the wording on the documentation page, I assume that the implemented license release method is only meant to be used when shutting down the application, so as to not hold on to the license afterwards, and using it while the application is still running somehow prevents checking out the license again. This makes it unsuited to our case, where the application has to remain running to process further incoming messages.

We would like to know if there is some way to release this license while the application is not actively using it, as it seemed to be possible for Studio 2021.

Best regards,
Bram van der Steen



Generated Image Alt-Text
[edited by: RWS Community AI at 1:20 PM (GMT 1) on 3 Jul 2024]