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
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • 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
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

DomInstanceExposers filter not returning expected result.

Solved940 views10th August 2023DOM
1
Mieke Dryepondt [SLC] [DevOps Advocate]3.65K 7th August 2023 0 Comments

When I apply a DOM filter query with a combo of OR and AND I do not receive the expected result.
for example:

(
(
(DomInstance.FieldValues.e748ba20-2c0a-4528-bb37-a81dd5869b15[Guid] ==3375fe15-d491-4c01-a1d4-a57fc5b3622a) OR
(DomInstance.FieldValues.e748ba20-2c0a-4528-bb37-a81dd5869b15[Guid] ==01a3d7f0-d920-428d-b1fe-001354db33ce)
) AND
(DomInstance.FieldValues.070a5e8c-20bc-4aec-8c6d-1921ea431834[Int32] ==0) AND
(DomInstance.FieldValues.011bc232-7741-4221-9cad-b20770bbe639[DynamicList<String>] !=Closed)
)

The above is applied on data that contains multiple matching items for the “01a3d7f0-d920-428d-b1fe-001354db33ce” but 0 for “3375fe15-d491-4c01-a1d4-a57fc5b3622a”

I would expect to have all the records for the 1 matching filter, but the result is 0 items.
This filter is applied via :
var pagingHelper = domHelper.DomInstances.PreparePaging(fullFilter);
Is there something wrong with my filter or the way I’m retrieving this?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 10th August 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Thomas Ghysbrecht [SLC] [DevOps Enabler]4.91K Posted 7th August 2023 2 Comments

Hi Mieke,

Can you share how these filters are built in the code?

One thing you could try is removing some parts of the filter or built it term by term until it stops matching the expected data.

I tried creating it in a script and found the string representation to differ in the types. The output of mine all contain ‘DynamicList’s as types between the square brackets, where this seems to be the only case for the last one in your version.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 10th August 2023
Mieke Dryepondt [SLC] [DevOps Advocate] commented 7th August 2023

Thomas, it is not so easy to share as it is dynamically generated based on an input (API method)
I did see a difference compared to your example: I’m using:
DomInstanceExposers.FieldValues.Field
instead of .DomInstanceField

Thomas Ghysbrecht [SLC] [DevOps Enabler] commented 7th August 2023

I am not sure if this could be the cause, but I would always recommend using the ‘DomInstanceField’ extension as this was made specifically for filtering the field values of a DomInstance. This guarantees the correct filter type is used.

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