Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

What is the max value a Timespan can have on DOM?

Solved276 views13th February 2025DOM Timespan
2
Tomás Martins [SLC] [DevOps Member]208 13th February 2025 0 Comments

I am trying to assign a Timespan to a Timespan Dom Field, but an exception is thrown when the value is high (but lower then the supposed max value).

I created the following test script:

When running this script results in the following exception:

Script ‘Test Script’ failed:

The following was returned from the script:
The script failed to execute.

EXIT: “Run|Something went wrong: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.InvalidOperationException: Duration was not a valid normalized duration
at Google.Protobuf.WellKnownTypes.Duration.ToTimeSpan()
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.Protobuf.SectionsProtobufMapper.FromProtoType(SingleValueWrapper singleValueWrapper)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.Protobuf.SectionsProtobufMapper.FromProtoType(FieldValue fieldValue)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.Protobuf.ProtobufMapperHelper.RepeatedFieldToList[TProto,T](RepeatedField`1 repeatField, Func`2 conversionFunc)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.Protobuf.SectionsProtobufMapper.FromProtoType(Section section)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.Protobuf.ProtobufMapperHelper.RepeatedFieldToList[TProto,T](RepeatedField`1 repeatField, Func`2 conversionFunc)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.Protobuf.DomInstanceProtobufMapper.FromProtoType(DomInstance domInstance)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstance..ctor(SerializationInfo info, StreamingContext context)
— End of inner exception stack trace —

Server stack trace:
at System.RuntimeMethodHandle.SerializationInvoke(IRuntimeMethodInfo method, Object target, SerializationInfo info, StreamingContext& context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Skyline.DataMiner.Net.ISLNet.HandleMessages(ConnectionToken token, DMSMessage[] inputMessages)
at Skyline.DataMiner.Net.LegacyRemotingConnection.TransportSpecificHandleMessage(ConnectionToken tok, DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.InternalHandlePackedMessages(ConnectionToken tok, DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.InternalHandleUnpackedMessages(DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.Connection.HandleMessages(DMSMessage[] msgs, Int32 timeout)
at Skyline.DataMiner.Net.PersistentConnectionContainer.SendMessages(DMSMessage[] messages)
at Skyline.DataMiner.Automation.Engine.SendSLNetMessages(DMSMessage[] messages)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.<>c__DisplayClass48_0.<WrapWithExtraInfoInjection>b__0(DMSMessage[] messages)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.RetrieveResponse(DMSMessage request)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.RetrieveResponse[TResp](DMSMessage request)
at Skyline.DataMiner.Net.ManagerStore.CrudHelperComponent`1.RetrieveCrudResponse(DMSMessage request)
at Skyline.DataMiner.Net.ManagerStore.BulkCrudHelperComponent`2.PerformCreateOrUpdate(List`1 objects, IAdditionalOperationMeta operationMeta)
at Skyline.DataMiner.Net.ManagerStore.BulkCrudHelperComponent`2.CreateOrUpdate(List`1 objects)
at Skyline.DataMiner.Net.Apps.DataMinerObjectModel.DomInstanceCrudHelperComponent.CreateOrUpdate(List`1 objects)
at Skyline.DataMiner.Utils.InventoryManager.Common.DOM.Applications.Helper.Helper.Save(DomHelper domHelper, List`1 instances)
at Test_Script_1.Script.RunSafe(IEngine engine)
at Test_Script_1.Script.Run(IEngine engine)”

Tomás Martins [SLC] [DevOps Member] Selected answer as best 13th February 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Samuel Duarte [SLC] [DevOps Member]369 Posted 13th February 2025 1 Comment

Hi Tomás,

Based on the Google.Protobuf documentation, the maximum value for the Duration class is approximately 10,000 years. Therefore, it is safe to assume that this is the maximum value you can insert into the DOM.

For more details, you can refer to the Google.Protobuf.WellKnownTypes.Duration Class Reference

Thomas Ghysbrecht [SLC] [DevOps Enabler] Posted new comment 17th February 2025
Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 17th February 2025

Thanks to Tomás for reporting this issue & Samuel for providing the response. I have added a docs PR to reflect this limitation. https://github.com/SkylineCommunications/dataminer-docs/pull/4294

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs