Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2407"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"826"}]}


### Started process for Execution of Event : SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT ###


### Started processing supervisor alert workplace injury ###


Executing email alert to supervisor about the Workplace injury incident


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00348

This is a test mode notification. Notification was not delivered to recipient.


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp alert to supervisor about the Workplace injury incident


Sending WhatsApp Notification for workplace injury incident to User: 2407


Osmo-x WhatsApp Message has been Sent


### Ended processing supervisor alert workplace injury  ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2407"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"828"}]}


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00350


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2407"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"829"}]}


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00351


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2407"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"830"}]}


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00352


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2407"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"866"}]}


Initializing Email Service Client


Generating Email Request


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00385


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"795"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"796"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"798"}]}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"799"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"800"}]}


### Started process for Execution of Event : SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT ###


### Started processing supervisor alert workplace injury ###


Executing email alert to supervisor about the Workplace injury incident


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"801"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"802"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"803"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2546"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"807"}]}


### Ended processing supervisor alert workplace injury  ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2567"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"789"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2567"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"791"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2567"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"793"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2567"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"808"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2567"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"810"}]}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2567"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"864"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2629"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"863"}]}


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00382


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp alert to supervisor about the Workplace injury incident


Sending WhatsApp Notification for workplace injury incident to User: 2629


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2764"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1077"}]}


### Started process for Execution of Event : SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT ###


### Started processing supervisor alert workplace injury ###


Executing email alert to supervisor about the Workplace injury incident


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00489


Sending WhatsApp Notification for workplace injury incident to User: 2764


### Ended processing supervisor alert workplace injury  ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2764"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1297"}]}


Initializing Email Service Client


Generating Email Request


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/26/00006


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917717731269","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_supervisor_alert_work_injury_incident","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Shreya V"},{"type":"text","text":"IMF/TTK/COI/III/26/00006"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"05-Jan-2026 02:58:58 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"CRITICAL PAINLocation: "},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incident-management/report-incident/view/387/1297?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2815"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1388"}]}


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/26/00011


Sending WhatsApp Notification for workplace injury incident to User: 2815


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"916303513182","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_supervisor_alert_work_injury_incident","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Gopi Krishna Somayajulu"},{"type":"text","text":"IMF/TTK/COI/III/26/00011"},{"type":"text","text":"Shreya V"},{"type":"text","text":"09-Jan-2026 05:20:23 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Detailed descriptionLocation: hyderabad"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incident-management/report-incident/view/387/1388?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2815"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1395"}]}


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/26/00012


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"916303513182","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_supervisor_alert_work_injury_incident","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Gopi Krishna Somayajulu"},{"type":"text","text":"IMF/TTK/COI/III/26/00012"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"09-Jan-2026 06:41:12 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"detLocation: "},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incident-management/report-incident/view/387/1395?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2815"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1404"}]}


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/26/00014


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing whatsapp alert to supervisor about the Workplace injury incident


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"916303513182","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_supervisor_alert_work_injury_incident","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Gopi Krishna Somayajulu"},{"type":"text","text":"IMF/TTK/COI/III/26/00014"},{"type":"text","text":"Lalit Aditya Kola"},{"type":"text","text":"12-Jan-2026 01:25:44 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"InjuryLocation: "},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incident-management/report-incident/view/387/1404?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2881"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1451"}]}


### Started process for Execution of Event : SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT ###


### Started processing supervisor alert workplace injury ###


Executing email alert to supervisor about the Workplace injury incident


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/26/00024


Sending WhatsApp Notification for workplace injury incident to User: 2881


### Ended processing supervisor alert workplace injury  ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2905"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1198"}]}


Initializing Email Service Client


Generating Email Request


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00522


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Sending WhatsApp Notification for workplace injury incident to User: 2905


Osmo-x WhatsApp Message has been Sent


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2905"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1212"}]}


Pending Work Injury Incident Submission Reminder - IMF/TTK/COI/III/25/00523


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"919485219603","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_supervisor_alert_work_injury_incident","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Debraj Dey"},{"type":"text","text":"IMF/TTK/COI/III/25/00523"},{"type":"text","text":"Rajkumar Pativada"},{"type":"text","text":"30-Dec-2025 02:31:26 PM"},{"type":"text","text":"Coimbatore"},{"type":"text","text":"Injury is on chest and fractures for multiple partsLocation: "},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/incident-management/report-incident/view/387/1212?dlType=viewIncidentReport"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2934"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1419"}]}


Message : {"EventName":"SUPERVISOR_ALERT_WORKPLACE_INJURY_INCIDENT","EventArgs":[{"Key":"UserId","Value":"2982"},{"Key":"OrgId","Value":"387"},{"Key":"IncidentId","Value":"1540"}]}


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER ###


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Sending notification to issuers of the comapny regarding permit to work 313954


Osmo-x WhatsApp Message has been Sent


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToEitherReviewerOrApprover(Int64 ptwId, Int64 orgId, String stringUserIds, String workPermitStatus, String jobType, String statusChangeUserDisplayName, String permitToWorkUId, String startDate, String statusChangedTime, String workLocation, String assignToUserDisplayName, String nextStatus, String siteName, String modeOfNotifications, String customStatusJson, String companyUsersEmails) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 3893
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 539


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationForPTWHistory(Int64 ptwId, Int64 orgId, String stringUserIds, String historyCreatedUserDisplayName, String permitToWorkUID, String siteName, String jobType, String startDate, String commentedOnTime, Int64 ptwHistoryId, String workLocation, String modeOfNotifications) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 4114
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 577


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WEEKLY_PRESENTATION_REPORT ###


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Presentation Report – 2026-01-27 To 2026-02-26


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Weekly Presentation Report Email Sent | File=D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\osmodoc\safety_report_20260226_101403.pptx


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":9630},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


Task not found for TaskId=9630, OrgId=248


### Ended processing Task Creation Notification to site EHS Event ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/HUBG/BDM/26/00001#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 95719 #


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendCronNotifcationsToUsers(List`1 cronData, String isImmediateNotification) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 1597


### End Push notification Event Execution ###


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/HUBG/BDM/26/00001#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 95720 #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/HUBG/BDM/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 95721 #


# Cron record not exists in DB, moving to next notification #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":66924},{"Key":"AssignedToID","Value":4806}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


### Ended processing Assigned to Notification Event ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24457},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


## Sending notification to Site EHS user ##


## Notification to be send for these users: [2764,1597]


Sending WhatsApp notification to Site EHS : 2764


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917717731269","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_open_task","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Shreya V"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/TTK//SWW/26/00050"},{"type":"text","text":"safety - 1"},{"type":"text","text":"Safety Walkthrough"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/tasks/edit/24457?dlType=viewTask&orgID=387"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Osmo-x WhatsApp Message has been Sent


## Sending email to Shreya V, UserId : 2764 for Task  notification to SITE EHS ##


Sending Task Email to Site EHS for TaskId:24457


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Action Required for open Action Tracker


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendTaskOpenDetailsToSiteEHS(Int64 taskId, Int64 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 11602
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 1397


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24458},{"Key":"OrgId","Value":387}]}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917717731269","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_open_task","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Shreya V"},{"type":"text","text":"Action Tracker"},{"type":"text","text":"AT/TTK//SWW/26/00051"},{"type":"text","text":"safety - 2"},{"type":"text","text":"Safety Walkthrough"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/tasks/edit/24458?dlType=viewTask&orgID=387"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Sending Task Email to Site EHS for TaskId:24458


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER ###


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_CREATION","EventArgs":[{"Key":"UserIds","Value":"[2605]"},{"Key":"InspectionUID","Value":"I/GLTO/GRR/P-B/26/00001"},{"Key":"Name","Value":"65"},{"Key":"Type","Value":"P&M - Bus Inspection Checklist"},{"Key":"Organisation","Value":"Galecto Inc."},{"Key":"Site","Value":"Alanreed"},{"Key":"Department","Value":" "},{"Key":"Asset","Value":" "},{"Key":"Status","Value":"Inspection requested"},{"Key":"CreatedBy","Value":"Manoj Papp"},{"Key":"CreatedOn","Value":"26-Feb-2026 03:53:06 PM"},{"Key":"OrganisationId","Value":211}]}


### Started process for Execution of Event : NOTIFICATION_FOR_INSPECTION_CREATION ###


# Calling SendNotificationForInspectionCreation function for whatsapp and push notification #


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24460},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


## Sending notification to Site EHS user ##


## Notification to be send for these users: [1597]


Object reference not set to an instance of an object.


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24461},{"Key":"OrgId","Value":387}]}


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_COMPLETION","EventArgs":[{"Key":"UserId","Value":10835},{"Key":"InspectionUID","Value":"I/GLTO/GRR/P-B/26/00001"},{"Key":"Name","Value":"65"},{"Key":"Type","Value":"P&M - Bus Inspection Checklist"},{"Key":"Site","Value":"Alanreed"},{"Key":"Status","Value":"Checked"},{"Key":"CreatedOn","Value":"26-Feb-2026 03:53:06 PM"},{"Key":"InspectionId","Value":"9263"},{"Key":"OrganisationId","Value":211}]}


### Started process for Execution of Event : NOTIFICATION_FOR_INSPECTION_COMPLETION ###


# Calling SendNotificationForInspectionCreation function for whatsapp and email notification #


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_REJECTION_STATUS ###


# Calling SendNotificationForPTWRejectedStatus function for whatsapp and push notification #


Executing sending notification for rejection status through whatsapp


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24463},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


## Sending notification to Site EHS user ##


## Notification to be send for these users: [2764,1597]


Sending WhatsApp notification to Site EHS : 2764


Osmo-x WhatsApp Message has been Sent


## Sending email to Shreya V, UserId : 2764 for Task  notification to SITE EHS ##


Sending Task Email to Site EHS for TaskId:24463


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Action Required for open Action Tracker


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Object reference not set to an instance of an object.


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24464},{"Key":"OrgId","Value":387}]}


Sending Task Email to Site EHS for TaskId:24464


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":9632},{"Key":"OrgId","Value":248}]}


Task not found for TaskId=9632, OrgId=248


### Ended processing Task Creation Notification to site EHS Event ###


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_COMPLETION","EventArgs":[{"Key":"UserId","Value":10835},{"Key":"InspectionUID","Value":"I/GLTO/GRR/P-B/26/00001"},{"Key":"Name","Value":"65"},{"Key":"Type","Value":"P&M - Bus Inspection Checklist"},{"Key":"Site","Value":"Alanreed"},{"Key":"Status","Value":"Verified"},{"Key":"CreatedOn","Value":"26-Feb-2026 03:53:06 PM"},{"Key":"InspectionId","Value":"9263"},{"Key":"OrganisationId","Value":211}]}


### Started process for Execution of Event : NOTIFICATION_FOR_INSPECTION_COMPLETION ###


# Calling SendNotificationForInspectionCreation function for whatsapp and email notification #


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Raj Kumar"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"My Home Private LTD"},{"Key":"UserDivisions","Value":"Blasts, Category10 - Updated, CRM Test, CRM Test1, CRM Test2, CRM Test3, CRM Test4, CRM Test6, CRM test7, Explosion, Explosion-clone1, Fly Attack, Fly Tipping, Incident, Jogging, Near Miss, Observation, Power Outage, Power Outage-clone1, PPE Violationsd, Running, scaffold collapses"},{"Key":"UserIncidentSites","Value":"Akrida, Apas, Avali, Grava, Grava Residences, MH99, Nishada, Precast Plant, Raka, Sayuk, Tridasa"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"dinesh.m@osmosys.co"}]}


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Raj Kumar"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"My Home Private LTD"},{"Key":"UserUid","Value":"9502543434"},{"Key":"UserDivisions","Value":"Blasts, Category10 - Updated, CRM Test, CRM Test1, CRM Test2, CRM Test3, CRM Test4, CRM Test6, CRM test7, Explosion, Explosion-clone1, Fly Attack, Fly Tipping, Incident, Jogging, Near Miss, Observation, Power Outage, Power Outage-clone1, PPE Violationsd, Running, scaffold collapses"},{"Key":"UserIncidentSites","Value":"Akrida, Apas, Avali, Grava, Grava Residences, MH99, Nishada, Precast Plant, Raka, Sayuk, Tridasa"},{"Key":"Email","Value":"dinesh.m@osmosys.co"},{"Key":"MobileNumber","Value":"+919502543999"}]}


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER ###


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_COMPLETION","EventArgs":[{"Key":"UserId","Value":10835},{"Key":"InspectionUID","Value":"I/GLTO/GRR/P-B/26/00001"},{"Key":"Name","Value":"65"},{"Key":"Type","Value":"P&M - Bus Inspection Checklist"},{"Key":"Site","Value":"Alanreed"},{"Key":"Status","Value":"Approved"},{"Key":"CreatedOn","Value":"26-Feb-2026 03:53:06 PM"},{"Key":"InspectionId","Value":"9263"},{"Key":"OrganisationId","Value":211}]}


### Started process for Execution of Event : NOTIFICATION_FOR_INSPECTION_COMPLETION ###


# Calling SendNotificationForInspectionCreation function for whatsapp and email notification #


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24466},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


## Sending notification to Site EHS user ##


## Notification to be send for these users: [1597]


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24467},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###


# Calling SendNotificationToTaskAssignees function for WhatsApp notification #


Sending WhatsApp notification for task assignment to user ID: 6629


Osmo-x WhatsApp Message has been Sent


Sending Task Assignment Email for TaskId: 9633, UserId: 6629


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


New Task Assigned - AT/FBYDW//26/00002


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24469},{"Key":"OrgId","Value":387}]}


## Notification to be send for these users: [2764,1597]


Sending WhatsApp notification to Site EHS : 2764


## Sending email to Shreya V, UserId : 2764 for Task  notification to SITE EHS ##


Sending Task Email to Site EHS for TaskId:24469


Action Required for open Action Tracker


Object reference not set to an instance of an object.


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"TASK_CREATE_EHS_NOTIFICATION","EventArgs":[{"Key":"TaskId","Value":24470},{"Key":"OrgId","Value":387}]}


### Started process for Execution of Event : TASK_CREATE_EHS_NOTIFICATION ###


### Started processing for Task Creation Notification to site EHS Event ###


## Sending notification to Site EHS user ##


Osmo-x WhatsApp Message has been Sent


Sending Task Email to Site EHS for TaskId:24470


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":66924},{"Key":"AssignedToID","Value":1861}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


### Ended processing Assigned to Notification Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":66924},{"Key":"IncidentHistoryId","Value":71261},{"Key":"IsTicketAssigned","Value":true}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Nullable object must have a value.

System.InvalidOperationException: Nullable object must have a value.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at IncidentReporter.API.BLL.IncidentsBLL.GetConvertedTimeZone(IncidentDBO incident) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3359
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendUpdateIncidentNotification(Int64 incidentId, Int64 incidentHistoryId, Boolean isTicketAssigned) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 2731
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 441


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Message : {"EventName":"Update_USER","EventArgs":[{"Key":"DisplayName","Value":"Shreya V"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserDivisions","Value":"HSE Suggestion, Ladder cleaning, Near Misses, nkkl, testing cat"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"OldEmail","Value":""},{"Key":"Email","Value":"shreya.v@osmosys.co"}]}


### Started process for Execution of Event : Update_USER ###


### Started Event for Update User Email ###


Calling Send Email Function for Update User Email


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Your OQSHA Access Has Been Updated


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"Update_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Shreya V"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"TTK Beta - QA"},{"Key":"UserUid","Value":"7717731269"},{"Key":"UserDivisions","Value":"HSE Suggestion, Ladder cleaning, Near Misses, nkkl, testing cat"},{"Key":"UserIncidentSites","Value":"Coimbatore"},{"Key":"Email","Value":"shreya.v@osmosys.co"},{"Key":"MobileNumber","Value":"+917717731269"}]}


### Started process for Execution of Event : Update_APP_USER ###


### Started Event for Update App User Email ###


Message : {"EventName":"UPDATE_INCIDENT_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":66924},{"Key":"IncidentHistoryId","Value":71262},{"Key":"IsTicketAssigned","Value":false}]}


### Started process for Execution of Event : UPDATE_INCIDENT_NOTIFICATION ###


### Started processing for Update incident Event ###


# Calling  SendNotification function for  all types of notification #


Nullable object must have a value.


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":66925},{"Key":"AssignedToID","Value":2605}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


### Ended processing Assigned to Notification Event ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: H0NC01#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 95723 #


Object reference not set to an instance of an object.


### End Push notification Event Execution ###


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: H0NC01#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 95724 #


# Cron record not exists in DB, moving to next notification #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/HUBG/BDM/26/00002#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 95725 #


Object reference not set to an instance of an object.


### End Push notification Event Execution ###


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/HUBG/BDM/26/00002#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 95726 #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/HUBG/BDM/26/00002#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 95727 #


# Cron record not exists in DB, moving to next notification #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_ALL_EXCEPT_REVIEWER ###


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1779,2552,4258,5295,5386]


Starting Execution for whatsapp notification for all


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_1","EventArgs":[{"Key":"TaskId","Value":9633},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : TASK_CLOSURE_NOTIFICATION_VALIDATION_1 ###


### Started processing for Task Closure Validation Level 1 Event ###


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendTaskClosureNotification(Int64 taskId, Int64 orgId, Int32 validationLevel) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 10542
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 1388


Message : {"EventName":"TASK_CLOSURE_NOTIFICATION_VALIDATION_2","EventArgs":[{"Key":"TaskId","Value":9633},{"Key":"OrgId","Value":248}]}


### Started process for Execution of Event : TASK_CLOSURE_NOTIFICATION_VALIDATION_2 ###


### Started processing for Task Closure Validation Level 2 Event ###


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendTaskClosureNotification(Int64 taskId, Int64 orgId, Int32 validationLevel) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 10542
   at IncidentReporter.NotificationSender.DAL.Events.EventHandler.HandleMessage(IMessage message) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\EventHandler.cs:line 1406


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":66926},{"Key":"AssignedToID","Value":4806}]}


### Started process for Execution of Event : ASSIGNED_TO_NOTIFICATION ###


### Started processing Assigned to Notification Event ###


# Calling SendNotificationToAssignedId function for all types of assigned to notification #


### Ended processing Assigned to Notification Event ###


Message : {"EventName":"ADD_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"Mounika L"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Hub Group Inc."},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"Break Down Maintenance"},{"Key":"UserIncidentSites","Value":"Meadow Oaks"},{"Key":"Email","Value":"mounika.l@osmosys.co"},{"Key":"MobileNumber","Value":"+918179415544"}]}


### Started process for Execution of Event : ADD_APP_USER ###


### Started Event for Add App User Email ###


Calling Send Email Function for Add User Email


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Welcome to OQSHA


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Message : {"EventName":"NOTIFICATION_FOR_INSPECTION_COMPLETION","EventArgs":[{"Key":"UserId","Value":1324},{"Key":"InspectionUID","Value":"I/TTK/KAR/WT-/26/00033"},{"Key":"Name","Value":"Asset Scheduled Maintenance Inspection"},{"Key":"Type","Value":"WATER TANKER - 3"},{"Key":"Site","Value":"Karjan"},{"Key":"Status","Value":"Verified"},{"Key":"CreatedOn","Value":"26-Feb-2026 12:39:48 AM"},{"Key":"InspectionId","Value":"5497"},{"Key":"OrganisationId","Value":387}]}


### Started process for Execution of Event : NOTIFICATION_FOR_INSPECTION_COMPLETION ###


# Calling SendNotificationForInspectionCreation function for whatsapp and email notification #


Executing email notifications to Inspection Completion


Sending Inspection Completion notification email to user: system.user@osm.com


Initializing Email Service Client


Generating Email Request


Inspection Flow Completed for I/TTK/KAR/WT-/26/00033


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


Executing sending notification to user through whatsapp for inspection completion


Sending notifications for inspection completion to initiator1324


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"911231231231","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_inspection_completion_template","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"System User"},{"type":"text","text":"I/TTK/KAR/WT-/26/00033"},{"type":"text","text":"Asset Scheduled Maintenance Inspection"},{"type":"text","text":"WATER TANKER - 3"},{"type":"text","text":"Karjan"},{"type":"text","text":"26-Feb-2026 12:39:48 AM"},{"type":"text","text":"Verified"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/inspection/view/5497?dlType=viewInspection&orgID=387"},{"type":"text","text":"EHS Department - TTK Prestige"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER ###


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


Sending notification to issuers of the comapny regarding permit to work 313956


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/HUBG/TFX/RDVT/NW/26/00001"},{"type":"text","text":"26-Feb-2026"},{"type":"text","text":"Night work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Requested by Gia Mccandless at 26-Feb-2026 04:20:29 PM"},{"type":"text","text":"Issue"},{"type":"text","text":"Ana Osborn"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/313956?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917993748792","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_assigned_to_generic_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/HUBG/TFX/RDVT/NW/26/00001"},{"type":"text","text":"26-Feb-2026"},{"type":"text","text":"Night work"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Requested by Gia Mccandless at 26-Feb-2026 04:20:29 PM"},{"type":"text","text":"Issue"},{"type":"text","text":"Ana Osborn"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/313956?orgID=207&dlType=viewWorkPermit"}]}]}}}


Message : {"EventName":"ADD_APP_USER","EventArgs":[{"Key":"DisplayName","Value":"GOpi j"},{"Key":"Password","Value":""},{"Key":"OrganisationName","Value":"Hub Group Inc."},{"Key":"UserUid","Value":""},{"Key":"UserDivisions","Value":"Break Down Maintenance"},{"Key":"UserIncidentSites","Value":"Meadow Oaks"},{"Key":"Email","Value":"gopi.s@osmosys.co"},{"Key":"MobileNumber","Value":"+916303513182"}]}


### Started process for Execution of Event : ADD_APP_USER ###


### Started Event for Add App User Email ###


Calling Send Email Function for Add User Email


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Welcome to OQSHA


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


### End Event Execution ###


### Start Event Execution ###


Sending notification to issuers of the comapny regarding permit to work 313957


Osmo-x WhatsApp Message has been Sent


### Started process for Execution of Event : NOTIFICATION_TO_REJECTION_STATUS ###


# Calling SendNotificationForPTWRejectedStatus function for whatsapp and push notification #


Executing sending notification for rejection status through whatsapp


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Sending notification to approver of the comapny regarding permit to work


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_ALL_EXCEPT_REVIEWER ###


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1855,1861,4243,4244,4459,4504,4516,4518,4583,4594,4690,4691,4806,5106,5111,10441,10658]


Starting Execution for whatsapp notification for all


Sending notification to requester regarding permit to work 313957


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"918160948627","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/HUBG/TFX/RDVT/LF/26/00002"},{"type":"text","text":"26-Feb-2026"},{"type":"text","text":"Lifting"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by GOpi j at 26-Feb-2026 04:36:23 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/313957?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp payload: {"providerId":11,"data":{"to":"917993748792","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"ptw_generic_status_template_v4","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"P/HUBG/TFX/RDVT/LF/26/00002"},{"type":"text","text":"26-Feb-2026"},{"type":"text","text":"Lifting"},{"type":"text","text":"Meadow Oaks"},{"type":"text","text":" "},{"type":"text","text":"Reviewed by GOpi j at 26-Feb-2026 04:36:23 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/work-permit/view/313957?orgID=207&dlType=viewWorkPermit"}]}]}}}


Osmo-x WhatsApp Message has been Sent


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER ###


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Object reference not set to an instance of an object.


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/HUBG/BDM/26/00003#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 95728 #


### End Push notification Event Execution ###


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/HUBG/BDM/26/00003#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


### End Event Execution ###


# Fetching details from escalate_cron table for escalate_cron id 95729 #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/HUBG/BDM/26/00003#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 95730 #


# Cron record not exists in DB, moving to next notification #


### Ended processing  Whatsapp Notification Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to Yes#


### Started processing  PUSH Notification Execution ###


#  Added  PUSH Notification of IncidentUID: T/HUBG/BDM/26/00003#


# Calling  SendCronNotifcationsToUsers function for  push notification #


# Started  SendCronNotifcationsToUsers Execution #


# Fetching details from escalate_cron table for escalate_cron id 95728 #


Object reference not set to an instance of an object.


### End Push notification Event Execution ###


### End  Push notification Event Execution ###


### Ended processing  for Notification Execution ###


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: T/HUBG/BDM/26/00003#


# Incident Attachments Count: 0#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 95729 #


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: T/HUBG/BDM/26/00003#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 95730 #


# Cron record not exists in DB, moving to next notification #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION_SUBMIT","EventArgs":[{"Key":"AuditorsUserIds","Value":"[1657,1886]"},{"Key":"AuditId","Value":"712"},{"Key":"OrgId","Value":"297"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION_SUBMIT ###


### Started processing for Audit Creation Event ###


Using org-specific template for Org 297: Templates\OrgTemplates\297\Templates\AuditCreationEmailTemplateOnSubmit.html


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


An Audit has been submitted


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 11,  "data": {    "to": "919009008001",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00008","image":null,"document":null,"video":null},{"type":"text","text":"420","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/712","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


RequestBody: {  "providerId": 11,  "data": {    "to": "919354117657",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00008","image":null,"document":null,"video":null},{"type":"text","text":"420","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/712","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 11,  "data": {    "to": "9122875757",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00008","image":null,"document":null,"video":null},{"type":"text","text":"420","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/712","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


### Ended processing InvestigationCreator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_REJECTION_STATUS ###


# Calling SendNotificationForPTWRejectedStatus function for whatsapp and push notification #


Executing sending notification for rejection status through whatsapp


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[1]"},{"Key":"AuditId","Value":"714"},{"Key":"OrgId","Value":"310"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


Using default template for Org 310: Templates\AuditCreationEmailTemplate.html


Initializing Email Service Client


Generating Email Request


An Audit has been created


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 11,  "data": {    "to": "919160948627",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APR/16J/AT7/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"Debraj Test Audit 123","image":null,"document":null,"video":null},{"type":"text","text":"27-Feb-2026 10:48:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/310/714","image":null,"document":null,"video":null},{"type":"text","text":"EHS Department - Aparna Constructions","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


### Ended processing Investigation Creator Status Update Event ###


Message : {"EventName":"INFORM_TO_INCIDENT_CREATION_NOTIFICATION","EventArgs":[{"Key":"IncidentId","Value":66928},{"Key":"InformToUserId","Value":5530}]}


### Started process for Execution of Event : INFORM_TO_INCIDENT_CREATION_NOTIFICATION ###


### Started processing Inform-To Incident Creation Notification ###


Calling SendInformToNotification function for ticket creation


### Ended processing Inform-To Incident Creation Notification ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER_FOR_EXTENDED_PTW ###


# Calling SendNotificationToIssuersForExtensionPTW function for whatsapp and push notification #


Executing sending notification to issuers for extended PTW through whatsapp


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER_FOR_EXTENDED_PTW ###


# Calling SendNotificationToEitherReviewerOrApproverForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


### Start Notification Sender Program.cs Execution ###


### Calling ConfigureService.Configure() function ###


### Started process for Execution of Event : NOTIFICATION_TO_ALL_EXCEPT_REVIEWER_FOR_EXTENSION_PTW ###


# Calling SendNotificationToAllExceptReviewerForExtendedPTW function for  whatsapp and push notification #


Starting Execution for whatsapp notification for all


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_ISSUER ###


# Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


Executing sending notification to issuers through whatsapp


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[1653,1886]"},{"Key":"AuditId","Value":"715"},{"Key":"OrgId","Value":"297"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION ###


### Started processing for Audit Creation Event ###


Using org-specific template for Org 297: Templates\OrgTemplates\297\Templates\AuditCreationEmailTemplate.html


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


An Audit has been Scheduled for Apas


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 11,  "data": {    "to": "918909058909",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/HPA/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"456","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:06:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/715","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


RequestBody: {  "providerId": 11,  "data": {    "to": "919354117657",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/HPA/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"456","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:06:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/715","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 11,  "data": {    "to": "9122875757",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_creation_template_v1",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/HPA/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"456","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:06:19 PM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/715","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


### Ended processing Investigation Creator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION_SUBMIT","EventArgs":[{"Key":"AuditorsUserIds","Value":"[1886,1653]"},{"Key":"AuditId","Value":"715"},{"Key":"OrgId","Value":"297"}]}


### Started process for Execution of Event : AUDIT_CREATION_NOTIFICATION_SUBMIT ###


Using org-specific template for Org 297: Templates\OrgTemplates\297\Templates\AuditCreationEmailTemplateOnSubmit.html


Submission of HSE Cross Audit Report – Apas


RequestBody: {  "providerId": 11,  "data": {    "to": "918909058909",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/HPA/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"456","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/715","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Initializing Email Service Client


Generating Email Request


RequestBody: {  "providerId": 11,  "data": {    "to": "919354117657",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/HPA/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"456","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/715","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 11,  "data": {    "to": "9122875757",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/HPA/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"456","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/715","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


### Ended processing InvestigationCreator Status Update Event ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_TO_REVIEWER_APPROVER ###


# Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


Starting Execution for whatsapp notification for users


Executing sending notification to users through whatsapp


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION_SUBMIT","EventArgs":[{"Key":"AuditorsUserIds","Value":"[2027]"},{"Key":"AuditId","Value":"709"},{"Key":"OrgId","Value":"297"}]}


### Started processing for Audit Creation Event ###


*--- Sending Email Serice Initiated ---*


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


--- Email created using Osmo-x ---


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 11,  "data": {    "to": "919354117657",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"Audit 1234","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/709","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


Error occurred while sending email using Osmo-x.


System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.EmailHelper.SendEmail(String template, String subject, Object args, String toAddress, String ccAddress, List`1 reportAttachments, List`1 additionalAttachmentsFilePath, String rootEmailTemplatePath, OrganisationFromConfig organisationFromAddress) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\Helpers\EmailHelper.cs:line 39


RequestBody: {  "providerId": 11,  "data": {    "to": "919999999999",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"Audit 1234","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/709","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 11,  "data": {    "to": "91798507565",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"Audit 1234","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/709","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


RequestBody: {  "providerId": 11,  "data": {    "to": "9122875757",    "messaging_product": "whatsapp",    "type": "template",    "template": {        "namespace": "d8bcb6bd_2ab2_439c_9d9e_947501266c77",        "name": "oqsha_audit_submitted_template",        "language": {            "code": "en",            "policy": "deterministic"        },        "components": [{"type":"body","parameters":[{"type":"text","text":"A/APS/APP/BMS/26/00005","image":null,"document":null,"video":null},{"type":"text","text":"Audit 1234","image":null,"document":null,"video":null},{"type":"text","text":"26-Feb-2026 11:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://qa-staging-2.oqsha.com/#/audit/edit-audit/297/709","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


### Ended processing InvestigationCreator Status Update Event ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#


#  Added  WhatsApp Notification of IncidentUID: T/APR/16J/BCC/26/00001#


# Calling  SendCronWhatsAppNotifcations function for  whatsapp notification #


# Fetching details from escalate_cron table for escalate_cron id 12008 #


# Fetching details from escalate_cron table for escalate_cron id 12014 #


# Fetching details from escalate_cron table for escalate_cron id 22556 #


# Fetching details from escalate_cron table for escalate_cron id 23984 #


### Ended processing  Whatsapp Notification Execution ###


### End Event Execution ###


### Start Event Execution ###


### Started process for Execution of Event : NOTIFICATION_FOR_WORK_PERMIT_HISTORY ###


# Calling SendNotificationForPTWHistory function for whatsapp and push notification #


Object reference not set to an instance of an object.


### Started process for Execution of Event : NOTIFICATION_TO_ALL_EXCEPT_REVIEWER ###


# Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


User Ids for notification: [1779,2552,4258,5295,5386]


Starting Execution for whatsapp notification for all


### Started process for Execution of Event : ESCALATE_NOTIFICATION ###


### Started processing for Notification Execution ###


# Immediate Notification flag for the event: ESCALATE_NOTIFICATION is set to #


### Started processing  Email Notification Execution ###


#  Added Email Notification of IncidentUID: R9W1AE#


# Incident Attachments Count: 0#


#  Added Email Notification of IncidentUID: S47LRT#


#  Added Email Notification of IncidentUID: T//AII/25/00001#


# Calling  SendCronEmail function for  email notification #


# Fetching details from escalate_cron table for escalate_cron id 12007 #


# Retry Count of the CronId: 12007 is 0


Generating report.


Logging user id - 83


# Fetching details from escalate_cron table for escalate_cron id 12013 #


# Retry Count of the CronId: 12013 is 0


# Fetching details from escalate_cron table for escalate_cron id 22555 #


# Retry Count of the CronId: 22555 is 0


### Ended processing  Email Notification Execution ###


### Started processing  Whatsapp Notification Execution ###


#  Added  WhatsApp Notification of IncidentUID: R9W1AE#


#  Added  WhatsApp Notification of IncidentUID: S47LRT#


#  Added  WhatsApp Notification of IncidentUID: T//AII/25/00001#