User Tools

Site Tools


resolution_area:prometheus_resolutions:res-p9114

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resolution_area:prometheus_resolutions:res-p9114 [2022/03/22 08:04] 10.91.120.28resolution_area:prometheus_resolutions:res-p9114 [2023/09/04 17:13] (current) 10.91.120.100
Line 18: Line 18:
 <code>curl --request POST -i -u '<USERNAME>':'<PASSWORD>' <DOMAIN>/Ticketer/api/v1/integration/salesforce/link/<TICKET-ID></code> <code>curl --request POST -i -u '<USERNAME>':'<PASSWORD>' <DOMAIN>/Ticketer/api/v1/integration/salesforce/link/<TICKET-ID></code>
  
 +For ATC
 +<code>curl --request POST -i -u '<USERNAME>':'<PASSWORD>' https://atcwatchdog.com/Ticketer/api/v1/integration/salesforce/link/<TICKET-ID></code>
 +
 +The username and password is any username or password that has ticketer access on that environment.
 Before this is implemented the only way an alert will be cleared is if ATC DAS ticket is auto cleared. Before this is implemented the only way an alert will be cleared is if ATC DAS ticket is auto cleared.
  
Line 44: Line 48:
         and (parent.name != 'ORPHANS' and grandparent.name != 'ORPHANS');         and (parent.name != 'ORPHANS' and grandparent.name != 'ORPHANS');
  
-To fix the problem you will have to requeue the dropped messages +<del>To fix the problem you will have to requeue the dropped messages 
-Here is a template for this request. +Here is a template for this request. NOTE: Troubleshooting steps at bottom are best tried first
     {     {
         "event_type": "PostInsert",         "event_type": "PostInsert",
Line 52: Line 56:
         "Due_Date__c": null,         "Due_Date__c": null,
         "SLA_Date__c": null,         "SLA_Date__c": null,
-        "Originating_System_ID__c": "ERRIGALTICKET"+        "Originating_System_ID__c": "ERRIGALTICKET",
         "Description": " ",         "Description": " ",
         "Alarm_Start_Date__c": "",         "Alarm_Start_Date__c": "",
Line 74: Line 78:
   - Rerun the query to double check that the Salesforce has a case for the Ticket.    - Rerun the query to double check that the Salesforce has a case for the Ticket. 
  
-For more details, please check this. https://docs.google.com/document/d/1_zwi02B8WoysEUEzfIK2A046xsmFfnrYqiaO4kA7QHk/edit#heading=h.z4rx22cg5uw8+For more details, please check this. https://docs.google.com/document/d/1_zwi02B8WoysEUEzfIK2A046xsmFfnrYqiaO4kA7QHk/edit#heading=h.z4rx22cg5uw8</del> 
 + 
 +====Troubleshooting==== 
 + 
 +If the curl request is performed but the alaert doesn't clear, check the ticketer-integration logs. Example error: 
 + 
 +<code> 
 +2022-09-29 03:08:20.563 ERROR 25776 --- [Camel (camel-1) thread #27 - rabbitmq://ticketer_audit_event_exchange_topic] utbound$$EnhancerBySpringCGLIB$$bb0998e1 : The HTTP response: {"error":"duplicate value found: Originating_System_ID__c duplicates value on record with id: 5003g00000N6V2w","success":"false"
 +</code> 
 + 
 +This is likely caused by a RabbitMQ issue. The message will need to be requeued. 
 + 
 +FIX: Requeue the message in the rabbit MQ queue ticketer_inbound_salesforce_queue 
 +<code> 
 +{    "caseId": "5003g00000N6Z0TAAV",    "ticketId": 764517,    "caseNumber": "02475388"
 +</code> 
 +The case Id and caseNumber fields can be found in the original ticketer-integration logs. 
 +<code> 
 +zgrep  "Originating_System_ID__c=764919" ~/logs/spring-boot/ticketer-integration.log* | grep CaseNumber 
 +</code> 
 +<code> 
 +2022-09-28 10:11:16.149  INFO 25776 --- [SalesforceHttpClient@44be69aa-42] org.apache.camel.Tracing                 :      [route11     ] [rabbitmq://{{rabbitmq.queues.sale] Exchange[Id: 7B60355912D6F25-000000000000EC78, BodyType: byte[], Body: {"Status":"New","Carrier_Update__c":null,"Force_Majeure__c":false,"CaseNumber":"02475388","CN_Priority__c":"4","Id":"5003g00000N6Z0TAAV","Originating_System_ID__c":"764517","correlationId":"bf2d5435-abed-4f0e-aa40-01fb8aa30cff"}] 
 +</code>
  
 +If the ticketer-integration logs are showing that the ticket already exists in salesforce, (i.e. you are getting ""error":"duplicate value found: Originating_System_ID__c duplicates value on record with id") and the RabbitMQ re-queue is not working. Then its safe to just add entries into the ticketer.external_source table yourself. Just put in the salesforce case number, saleforce case ID and ticketer ticket id where appropriate (duplicate the three rows necessary and populate the info). This is only a good idea when the ticket already exists in ATCs salesforce.
  
 **Auto Clear:** Yes, Alert will clear when the count of ATC DAS ticket was not created in Salesforce is 0 **Auto Clear:** Yes, Alert will clear when the count of ATC DAS ticket was not created in Salesforce is 0
resolution_area/prometheus_resolutions/res-p9114.1647936283.txt.gz · Last modified: 2022/03/22 08:04 by 10.91.120.28