/build/static/layout/Breadcrumb_cap_w.png

Error Code: 1142. UPDATE command denied to user 'R1'@'sagarwal0512.tns.org' for table 'HD_TICKET' 0.000 sec

I have created a custom rule to assign Due Date of the ticket based on the Priority Level (High/Normal/Low). Select Query is working fine and returns the ticket whose DUEDATE is BLANK. But Update Query throws an error. Below is the Update Query for the ticket:

UPDATE HD_TICKET T JOIN HD_PRIORITY P ON P.ID=T.HD_PRIORITY_ID set T.DUE_DATE= case when P.NAME='High' then DATE_ADD(T.CREATED, INTERVAL 4 HOUR) END, T.DUE_DATE= case when P.NAME='Normal' then DATE_ADD(T.CREATED, INTERVAL 8 HOUR) END, T.DUE_DATE= case when P.NAME='Low' then DATE_ADD(T.CREATED, INTERVAL 36 HOUR) END WHERE T.ID in (<TICKET_IDS>)

According to my analysis, R1 User doesn't have modify privileges to update HD_TICKET Table. If I am right kindly help me to figure out how to change R1 user access priveleges. If there is any other way around to solve this problem, it will be appreciated.

 


0 Comments   [ + ] Show comments

Answers (1)

Posted by: jverbosk 11 years ago
Red Belt
3

Your query looks fine as far as I can tell and based on the error I would agree that the issue appears to be permissions related.

If you go into Service Desk > Users, note what is listed as R1's Role.  From there, if you go to Service Desk > Roles, what access does R1's role have?  I'm assuming the role would need Write access to Service Desk > Configuration and possibly also Service Desk > Tickets in order for the update query to apply successfully.  If that looks OK, it's also conceivable that ticket rules using update queries might require an admin role (that's what I use), but I don't know this for certain.  Support should be able to advise on this if no one else here knows.

John

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ