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 |
Find 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 |
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 |
|
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.
Unknown matching rule 'stringIgnoreCase'
Request |
Find all users with locality "Edinburgh" ignoring case. Find all with "edinburgh", "EDINBURGH" or "Edinbugh". |
---|---|
Query |
|
Error message |
Couldn’t count objects |
Reason |
The matching rules relate to attribute type. |
Correct query |
|
Troubleshooting hints |
|