Hello Everyone, I was curious if anyone has encountered a similar issue using the external ID as method for the use of auto closing an incident. I use a query to pull a date into the external Id field for the waiting and resolved status. It will evaluate the if the status is ready to commit an edit to the incidents that match the query results. Up till last week this worked fine but just recently it failed and I have narrowed it down to the following error. Any help on this issue is greatly appreciated. This query no longer works due to an error generated: Error Generated: Conversion failed when converting datetime from character string. SELECT workitem_number AS 'Ticket_Number' FROM HD_workitem_current_view WHERE workitem_status_lookup_id in ('100','400') andworkitem_external_reference not like '' andworkitem_external_reference < Getdate() The GetDate() function does not properly retrieve the current date These are the incident rules to fire with the following configurations:
SELECT workitem_number AS 'Ticket_Number' FROM HD_workitem_current_view WHERE workitem_status_lookup_id = '400' AND DateDiff(hh,workitem_modified_on,GetDate()) > 24
SELECT workitem_number AS 'Ticket_Number' FROM HD_workitem_current_view WHERE workitem_status_lookup_id = '100' AND DateDiff(hh,workitem_modified_on,GetDate()) > 48