Hello,
I'm getting the following error when trying to programmatically create element in DataMiner.
2022/04/25 14:51:25.291|SLManagedScripting.exe|ManagedInterop|ERR|1|28|NMLOG|[GetNumberOfElements]|Exception => System.ArgumentException DataMiner agent ID in "4294967295/4294967295" is not an integer value
Parameter name: id ( [GetNumberOfElements] )
at Skyline.DataMiner.Library.Common.DmsElementId..ctor(String id)
at Skyline.DataMiner.Library.Common.ReplicationSettings.Load(ElementInfoEventMessage elementInfo)
at Skyline.DataMiner.Library.Common.DmsElement.ParseElementInfo(ElementInfoEventMessage elementInfo)
at Skyline.DataMiner.Library.Common.DmsElement.Parse(ElementInfoEventMessage elementInfo)
at Skyline.DataMiner.Library.Common.DmsElement..ctor(IDms dms, ElementInfoEventMessage elementInfo)
at Skyline.DataMiner.Library.Common.Dma.GetElements()
at OneWeb.SkylineClassCommon.GetNumberOfElements(ISLProtocolWrapper protocol, Int32 agentId)
This previously worked without issue so can't understand why I'm having trouble with this now.
I'm currently running DataMiner Version (10.2.4.0-11608)
Hi Alexander, I believe this is because "4294967295" is larger than the expected integer value. The maximum value an integer can have is 2147483647. It looks like you're actually at the maximum unsigned integer value (4,294,967,295).
I'd try creating the elements at a lower value and see if that works. My guess is DataMiner expects a number less than the maximum (signed) integer value.