Hello,
I was able to retrieve alarms data using the repository API in a single DMA. However, when I tested it in a DMS with two connectors in different DMAs, I'm getting the following exception in one them:
"Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: Unexpected exception occurred ---> SLDataGateway.API.Types.Exceptions.ClientException: Session 0f8cf951-52bf-4817-b728-d98719cb1bc3 is no longer available"
If I restart the DMA that throws the exception, the issue toggles to the other one. I guess there is a shared static variable with session data that is causing the issue, but I couldn't find any documentation about repository API. Here is part of my code:
any help would be much appreciated!
Regards,
I get the exception on one of the two DMA’s. the Dataminer version is 10.2.6.0
I don't recommend using the alarm repository yet, for now it's adviced to still use the following method:
How to get history of alarms in a protocol? - DataMiner Dojo
Do you always get this exception on one of the two DMA’s or only when one of them is (re)starting? Which version are you running?