Errors While Querying with midPoint Query Language
While searching with midPoint Query Language you can encounter various error messages. Some of them can be quite cryptic, especially for new users.
Error messages in GUI
Error messages in GUI are displayed below the query.
Path is not present in type
In this case administrator wanted to search for user with name "adam".
Midpoint says that attribute namex can’t be found in the object type UserType that is displayed in the view Users we are searching.
This is the most typical error you can encounter. It is caused by incorrect identification of property (attribute) in query. Often this error is caused by typo in the name of the attribute. In the example above it is additional "x" in name.
The {http://midpoint.evolveum.com/xml/ns/public/common/common-3} is the namespace of the type UserType. You can ignore it at this place.
Request |
Find user with name "adam" |
---|---|
Query |
|
Error message |
Path namex is not present in type {http://midpoint.evolveum.com/xml/ns/public/common/common-3} UserType |
Reason |
In this case the reason for error was typo: namex vs name |
Correct query |
|
Troubleshooting hints |
|
Path is not present in type - dereferencing
Another kind of the "path is not present in type" error can occur while searching in referenced objects.
Request |
Find all users with assigned role identified by value "III" of identifier attribute. |
---|---|
Query |
|
Error message |
Path identifier is not present in type {http://midpoint.evolveum.com/xml/ns/public/common/common-3}AssignmentHolderType |
Reason |
While using dereferencing, midPoint has to know type of the referenced object to correctly process the query. |
Correct query |
|
Troubleshooting hints |
|
Definition is not property
Request |
Find all users with assigned role "System user". |
---|---|
Query |
|
Error message |
Definition PRD:{…/common/common-3} targetRef {…/common/common-3}ObjectReferenceType[0,1],RAM is not property |
Reason |
The targetRef is a reference to an object. Not to a searchable property. |
Correct query |
|
Troubleshooting hints |
|
Additional unsupported filter specified
Request |
Query all assignments of a role. |
---|---|
Query |
|
Error message |
Additional unsupported filter specified: name="ABC:Admin" |
Reason |
Query should be searching in referenced objects but the dereferencing operator |
Correct query |
|
Troubleshooting hints |
Additional unsupported filter specified: type=…
Request |
Query all users who have any role assigned. |
---|---|
Query |
|
Error message |
Additional unsupported filter specified: type=RoleType |
Reason |
matches filter in query requires "targetType" keyword to search for assigned object type. |
Correct query |
|
Troubleshooting hints |
Cannot find enum value for string
Request |
Find all users with normal lockout status. |
---|---|
Query |
|
Error message |
Cannot find enum value for string 'Normal' in class com.evolveum.midpoint.xml.ns._public.common.common_3.LockoutStatusType |
Reason |
The schema defines enumerated value for this attribute. In this case the allowed values are "normal" and "locked". All lowercase. |
Correct query |
|
Troubleshooting hints |
Search for allowed values in schema definition. Schemas are described in
SchemaDoc.
Select version according your midPoint version. |
Couldn’t count objects
This is error message telling that processing of the query failed somehow during processing.
To know why it failed you need to open the error message and see what happened in the messages below.
Unsupported matching rule 'stringIgnoreCase'
Request |
Find all users with locality "Edinburgh" ignoring case. Find all with "edinburgh", "EDINBURGH" or "Edinbugh". |
---|---|
Query |
|
Error message |
Unsupported matching rule 'stringIgnoreCase' for value type 'PolyStringType'. |
Reason |
The matching rules relate to attribute type. |
Correct query |
|
Troubleshooting hints |
|
Cannot invoke ..SubfilterOrValueContext.valueSet() because "subfilterOrValue" is null
Request |
Find all users having name similar to "ang" using levenshtein distance search. |
---|---|
Query |
|
Error message |
Cannot invoke "com.evolveum.axiom.lang.antlr.query.AxiomQueryParser$SubfilterOrValueContext.valueSet()" because "subfilterOrValue" is null |
Reason |
The |
Correct query |
|
Troubleshooting hints |
Similarity search filters require 3 attributes. The set of attributes is enclosed in brackets. |
QName value expected
Request |
Find all owners (find all users who have any assignment assigned as owner.) |
---|---|
Query |
|
Error message |
QName value expected |
Reason |
Relation is of QName type. QName values are included in queries without quotation marks. |
Correct query |
|
Troubleshooting hints |
See querying values of different types. |