AnsweredAssumed Answered

Invalid constraint in stored query

Question asked by Mrdstrm on Mar 15, 2016
Latest reply on Mar 16, 2016 by Lindsay_Estabrooks

Hi!

 

In the query below I get an error message I don't quite understand. The query should return every incident which is assigned to you or any of your groups and which was not last modified by the assignee of the ticket. When saving, SDM throws the error below.

"AHD05800:Bad where clause. invalid constraint. Check data types of referenced attributes"

(assignee = @cnt.id OR group.[group]group_list.member IN (@cnt.id))

AND active = 1

AND last_mod_by != assignee

AND type = \'I\'

AND last_mod_by IS NOT NULL

If I change "assignee" to "@cnt.id", I am able to save as usual.

I have checked the technical reference which specify both as byte(16).

 

Thankful for any responses!

Outcomes