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
    • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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

DOM Action Failing on unchanged readonly fields

Solved988 views20th June 2023DOM DOM Actions DOM Editor lowcodeapps process automation
1
Blake Smethers [SLC] [DevOps Advocate]980 19th June 2023 0 Comments

In Dataminer FR 10.3.7 we're using actions in DOM to execute a script that runs Process Automation on the given DOM instance. When the DOM instance is "active," we have all fields (besides some hidden ones) as read-only. We then use a DOM button/action combo to pass a token through PA. This works on most DOM definitions besides one, resulting in the following error:

The DOM actions are not executing the script before this error occurs. The action itself doesn't set any fields (as far as I can tell) in the DOM Editor:

We have other DOM definitions set up this same way using a script, and they have no issue. If we mark all fields as "ReadOnly = false" while active, the actions work. If we then go back and mark them as ReadOnly again, it will still work. Only after some time passes do the buttons return the issue.

If we call the action from a script/C# code, it will always work. Only from a low-code app does it seem to fail.

Any ideas what could be missing here? Thanks in advance.
*Updated info for answers:

Blake Smethers [SLC] [DevOps Advocate] Selected answer as best 20th June 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.81K Posted 20th June 2023 3 Comments

Hi Blake,

Update:
I chatted with Blake offline & found the issue after checking out the SLClientTestTool follow of the connection. It seems that the web form component is adjusting two read-only DateTime values so they are stored as UTC DateTime objects instead of the ones where the 'Kind' is set to 'Unspecified'. This is why we saw the time shift by a few hours & the 'Kind' change to 'UTC'. The DOM manager detects this as a change of a read-only field and generates the error that is seen here. I was not aware that the form component behaves that way, we'll do some further investigation to see how long that has been the case.

Solution: In general, it is always recommended to save any DateTime with the kind set to UTC (e.g. DateTime.UtcNow instead of .Now). That way, applications can reliably convert it to the timezone of choice. The initial DateTime values in Blake's case were set by a driver, adjusting it to use UTC should resolve this.

Original response:
If I recall correctly, when clicking DOM buttons in a form, the DomInstance will be saved. I would expect that the form wouldn't do that in this case, since nothing is edited. Maybe there is a small bug in the form component somewhere that incorrectly changes something small & sends a save when clicking.

You could try to investigate this by either checking the requests sent by the web app in your browser (F12 Developer Menu -> Network Tab). Or you can follow the SLNet connection with the SLClientTestTool (HTML5 App <UserName>). This way, you may see a save being executed where you can compare the values. The SLNet message response should actually contain an error (ReadOnlyFieldsChangedForCurrentStatus) with the ID(s) of the field(s) that was/were changed. (See https://docs.dataminer.services/user-guide/Advanced_Modules/DOM/DOM_objects/DomInstance.html#errors)

Blake Smethers [SLC] [DevOps Advocate] Posted new comment 20th June 2023
Blake Smethers [SLC] [DevOps Advocate] commented 20th June 2023

It was a bit easier to follow the browser. When I used the ClientTestTool, there was too much information for me to go through. I’ve attached pictures to the original question that include the information from the browser dev tools.

Whats interesting is I don’t believe it sent anything for the hidden fields. We have some fields (like InstanceId) which are hidden at all states and only configured from a script. Perhaps when it doesn’t receive a value for those it fails? The only thing I still don’t understand is why this only happens on this DOM Definition.

If you’d like, I could send you the output of the ClientTestTool to review.

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 20th June 2023

I have updated my original response with the conclusions of our investigation.

Blake Smethers [SLC] [DevOps Advocate] commented 20th June 2023

Thanks for the help again Thomas!

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

Invoke HTTP Session from QAction 1 Answer | 1 Vote
Masked alarmes permission management 0 Answers | 0 Votes
Remove all Widgets from Section 2 Answers | 5 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 (151) 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