update query is not working in 5.5 v

Vajra
New Contributor III
New Contributor III

UPDATE
accounts a, endpoints ep set a.status =
'SUSPENDED FROM IMPORT SERVICE' WHERE
a.endpointkey = ep.endpointkey and a.name like
'%-Deleted%' and ep.endpointname='Duo_MFA';

the error is ERROR - Custom Query Job could not be executed -
Query contains Delete, Truncate, DROP,
FOREIGN_KEY_CHECKS which are not allowed-UPDATE
accounts a, endpoints ep set a.status =
'SUSPENDED FROM IMPORT SERVICE' WHERE
a.endpointkey = ep.endpointkey and a.name like
'%-Deleted%' and ep.endpointname='Duo_MFA';

Expecting quick responses

[This message has been edited by moderator to merge reply comment content]

5 REPLIES 5

dgandhi
All-Star
All-Star

Try below and check?

update saviynt.accounts a
join saviynt.endpoints ep on
a.endpointkey=ep.endpointkey
set a.status='SUSPENDED FROM IMPORT SERVICE'
where a.name like '%-Deleted%' and ep.endpointname='Duo_MFA'

Thanks,
Devang Gandhi
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

rushikeshvartak
All-Star
All-Star

UPDATE
accounts a, endpoints ep set a.status =
'SUSPENDED FROM IMPORT SERVICE' WHERE
a.endpointkey = ep.endpointkey and a.name like
'%-Deletd%' and ep.endpointname='Duo_MFA';

 

Avoid Query containing keywords such as Delete, Truncate, DROP.


Regards,
Rushikesh Vartak
If the response is helpful, please click Accept As Solution and kudos it.

Darshanjain
Saviynt Employee
Saviynt Employee

Hi @Vajra 

Please dont use Delete, Truncate, DROP  in the update queries, instead of those u can do aviod those exact words like Del% or Dro% in the query which should work.

 

Thanks

Darshan

Vajra
New Contributor III
New Contributor III

infact i have used the below it was not working 

UPDATE
accounts a, endpoints ep set a.status =
'SUSPENDED FROM IMPORT SERVICE' WHERE
a.endpointkey = ep.endpointkey and a.status=2
 and ep.endpointname='Duo_MFA';

However this was also working . is there any restriction that we cannot use the status attribute??

 

What is the error you are getting, its working fine from my end.

 

Thanks

Darshan