Hi,
In an enhanced service protocol, I try to retrieve the profile definitions via the Read() of the ProfileDefinitions in the ProfileHelper:
Unfortunately, when DataMiner (version: 10.1.5) gets failed over, I get a DataMinerException:
(Code: 0x80131500) Skyline.DataMiner.Net.Exceptions.DataMinerException: There is no known manager that can process objects for CrudComponentIdentifier[ProfileDefinition]. Check if the agent is licensed and is using the required database.
So far, this error message has only appeared when the DMA gets failed over and not when the DMA gets restarted.
Question 1
Could you provide a little more background info why the exception is thrown? The agent is licensed and I assume that the required database is accessible and used (worked perfectly before failover).
Question 2
I suppose that re-executing the method till I retrieve the profile definitions (or till a timeout) would do the trick but is there more elegant solution?
- Waiting/checking process X.
- Using a different method to collect the profile definitions?
- ...
Hi Frederic,
I would use the following call
List<PrflDefinition> prflExistingDefinitions = SrmManagers.ProfileManager.GetProfileDefinitionsWithFilter(new ANDFilterElement<PrflDefinition>()).ToList();
// using PrflDefinition = Skyline.DataMiner.Net.Profiles.ProfileDefinition;
Don't forget to add the SLSRMLibrary.dll as a reference.
I'm not 100% sure about your call if it's correct or not but I had errors in the past when elastic was down or had issues starting up, having a look at SLSearch logs and the elastic logs might be a good idea. I would still first try my suggested call though.
Please let me know if this helped.