level: Info

severity: INFO

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


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


message: ### Start Event Execution ###


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


message: # Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


message: # Fetching devices bypassing preferences (system event or unknown module) (Bulk) #


level: Debug

severity: DEBUG

message: Executing sending notification to issuers through whatsapp


message: Sending notification to issuers of the comapny regarding permit to work 425934


message: Osmo-x WhatsApp Message has been Sent


message: Executing sending push notification to the issuers


message: # Push Subject for Issuer P/MIRA/FCP/YI/EW/26/00001


message: # Preparing notification body #


message: ### End Event Execution ###


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


message: # Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


message: Starting Execution for whatsapp notification for users


message: Executing sending notification to users through whatsapp


message: Sending notification to approver of the comapny regarding permit to work 425934


level: Warn

severity: WARN

message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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/MIRA/FCP/YI/EW/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Rio"},{"type":"text","text":"gbvfcd"},{"type":"text","text":"Accepted by Sacherby Markham at 09-Aug-2026 01:34:34 PM"},{"type":"text","text":"Quality Verify"},{"type":"text","text":"Sacherby Markham"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425934"}]}]}}}


message: # Push Subject P/MIRA/FCP/YI/EW/26/00001


message: # string body 09-Aug-2026, Sacherby Markham,


level: Error

severity: ERROR

MethodName: HandleMessage

EntryPoint: NotificationSender

stackTrace:
System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToEitherReviewerOrApprover(String eventName, Int64 ptwId, Int64 orgId, String stringUserIds, String stringPrevStateUserIds, String stringReceieveAllPtwUserIds, 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 4203
   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 589


message: ### Start Event Execution ###


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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/MIRA/FCP/YI/EW/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Electrical Work"},{"type":"text","text":"Rio"},{"type":"text","text":"gbvfcd"},{"type":"text","text":"Quality Verified by Sacherby Markham at 09-Aug-2026 01:34:47 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Sacherby Markham"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425934"}]}]}}}


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


message: # Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


message: User Ids for notification: [3978,4048,4055,4586]


message: # Fetching devices bypassing preferences (system event or unknown module) (Bulk) #


message: Starting Execution for whatsapp notification for all


message: Sending notification to requester regarding permit to work 425934


message: Osmo-x WhatsApp Message has been Sent


message: Starting Execution for push notification for all


message: # Preparing notification body #


message: # Push Subject for Issuer P/MIRA/FCP/YI/EW/26/00001


message: # string body 09-Aug-2026, Sacherby Markham, P/MIRA/FCP/YI/EW/26/00001, 09-Aug-2026


message: ### End Event Execution ###


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


message: # Calling SendNotificationToIssuerForCreatingPermitToWork function for whatsapp and push notification #


message: Executing sending notification to issuers through whatsapp


message: Sending notification to issuers of the comapny regarding permit to work 425935


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Requested by Neppie Traynor at 09-Aug-2026 02:12:54 PM"},{"type":"text","text":"Accept"},{"type":"text","text":"Sacherby Markham"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


message: Executing sending push notification to the issuers


message: # Push Subject for Issuer P/MIRA/FCP/YI/CS/26/00001


message: ### Start Event Execution ###


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


message: # Calling SendNotificationToEitherReviewerOrApprover function for  whatsapp and push notification #


message: Starting Execution for whatsapp notification for users


message: Executing sending notification to users through whatsapp


message: Sending notification to approver of the comapny regarding permit to work 425935


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Accepted by Sacherby Markham at 09-Aug-2026 02:15:33 PM"},{"type":"text","text":"Quality Verify"},{"type":"text","text":"Sacherby Markham"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


message: Osmo-x WhatsApp Message has been Sent


message: # Preparing notification body #


message: # Push Subject P/MIRA/FCP/YI/CS/26/00001


message: # string body 09-Aug-2026, Sacherby Markham,


Message: Object reference not set to an instance of an object.


message: ### End Event Execution ###


message: # Fetching devices bypassing preferences (system event or unknown module) (Bulk) #


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000007341","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Quality Verified by Sacherby Markham at 09-Aug-2026 02:15:38 PM"},{"type":"text","text":"Approve"},{"type":"text","text":"Sacherby Markham"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


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


message: # Calling SendNotificationToAllExceptReviewer function for whatsapp and push notification #


message: User Ids for notification: [3978,4048,4055,4586]


message: Starting Execution for whatsapp notification for all


message: Sending notification to requester regarding permit to work 425935


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"919999999999","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sacherby Markham at 09-Aug-2026 02:15:41 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000010468","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sacherby Markham at 09-Aug-2026 02:15:41 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001909","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sacherby Markham at 09-Aug-2026 02:15:41 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


message: Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"917777777771","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/MIRA/FCP/YI/CS/26/00001"},{"type":"text","text":"09-Aug-2026"},{"type":"text","text":"Confined Space"},{"type":"text","text":"Rio"},{"type":"text","text":" "},{"type":"text","text":"Approved by Sacherby Markham at 09-Aug-2026 02:15:41 PM"},{"type":"text","text":"Start Work"},{"type":"text","text":"https://sandbox.oqsha.com/#/wp/view/232/425935"}]}]}}}


message: Osmo-x WhatsApp Message has been Sent


message: Starting Execution for push notification for all


message: # Preparing notification body #


message: # Push Subject for Issuer P/MIRA/FCP/YI/CS/26/00001


message: # string body 09-Aug-2026, Sacherby Markham, P/MIRA/FCP/YI/CS/26/00001, 09-Aug-2026


message: ### End Event Execution ###