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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • 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?

Solved242 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

You are viewing 1 out of 1 answers, click here to view all answers.
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

Recent questions

Correlation Engine: “Test rule” doesn’t result in a hit, despite functional rule 1 Answer | 1 Vote
When using the Setter = true attribute, will the copy action always be executed first? 1 Answer | 2 Votes
Multiple Set on Table parameters for DVE’s 1 Answer | 2 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (109) Correlation (69) Correlation rule (52) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin