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


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


### Start Event Execution ###


Message : {"EventName":"SEND_HIRA_STATUS_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[2034]"},{"Key":"HiraId","Value":281},{"Key":"HiraUid","Value":"CQRSIO"},{"Key":"InitiatorName","Value":"Renard Whatley"},{"Key":"ModifiedByName","Value":"Renard Whatley"},{"Key":"InitiatedOn","Value":"30-Mar-2026 05:19 PM"},{"Key":"OrgId","Value":211}]}


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


# Calling SendNotificationToInformUsersForHiraCreationForAllSites function for email/WhatsApp #


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


Reading and binding data to Email Template


Initializing Email Service Client


Generating Email Request


Risk Assessment has been submitted

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


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


--- Email response from Osmo-x is 201


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending HIRA Submit Status Notification for HIRA Id:281


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/27eeb551-cb8a-370b-b0a5-7238a427aa9d


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 18327.


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"SEND_HIRA_STATUS_NOTIFICATION","EventArgs":[{"Key":"UserIds","Value":"[2034]"},{"Key":"HiraId","Value":330},{"Key":"HiraUid","Value":"6LZTBN"},{"Key":"InitiatorName","Value":"Renard Whatley"},{"Key":"ModifiedByName","Value":"Renard Whatley"},{"Key":"InitiatedOn","Value":"31-Mar-2026 06:45 PM"},{"Key":"OrgId","Value":211}]}


Initializing Email Service Client


Generating Email Request


Risk Assessment has been submitted


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


--- Email response from Osmo-x is 201


# Preparing notification body #


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


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


Calling Send Email Function for Add User Email


Welcome to OQSHA


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":75949},{"Key":"AssignedToID","Value":2620}]}


### 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 #


Generating report.


Converted to byte file


PDF generation successfull


Stopped Assigned To SMS as Org Level setting is set to false


Sending Assigned To Whatsapp for IncidentId:75949


Osmo-x WhatsApp Message has been Sent


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:75949


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/39004cae-4a2e-3e6c-84a7-6e19324b1dba


Unauthorized


Push notification failed to send to a device 18706.


# Push notification did not send #


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"ASSIGNED_TO_NOTIFICATION","EventArgs":[{"Key":"AssignedIncidentID","Value":75950},{"Key":"AssignedToID","Value":5191}]}


Generating report.


Converted to byte file


PDF generation successfull


Sending Assigned To Whatsapp for IncidentId:75950


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


# Checking for device existence #


# User device exists #


Sending Assigned To Notification for IncidentId:75950


Inside SendAppNotification Device Type: GCM


Generating AWS SNS Request


Endpoint: arn:aws:sns:ap-south-1:637423593880:endpoint/GCM/Oqsha-Android-Production/2eb31efa-2234-3721-99c9-fd2490b01e13


Unauthorized


--- AWS SNS Push Notification created using Osmo-x ---


--- Push notification response from Osmo-x is Unauthorized


Push notification failed to send to a device 10035.


# Push notification did not send #


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[267]"},{"Key":"AuditId","Value":"361"},{"Key":"OrgId","Value":"262"}]}


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


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


Using default template for Org 262: 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 created


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


--- Email response from Osmo-x is 201


RequestBody: {  "providerId": 48,  "data": {    "to": "912000001875",    "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/SAIL/RIG/IAR/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"uhiuuih","image":null,"document":null,"video":null},{"type":"text","text":"26-Jun-2026 12:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/audit/edit-audit/262/361","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Osmo-x WhatsApp Message has been Sent


# Preparing notification body #


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


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[267]"},{"Key":"AuditId","Value":"362"},{"Key":"OrgId","Value":"262"}]}


RequestBody: {  "providerId": 48,  "data": {    "to": "912000001875",    "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/SAIL/RIG/IAR/26/00002","image":null,"document":null,"video":null},{"type":"text","text":"eveve","image":null,"document":null,"video":null},{"type":"text","text":"25-Jun-2026 12:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/audit/edit-audit/262/362","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


Message : {"EventName":"AUDIT_CREATION_NOTIFICATION","EventArgs":[{"Key":"AuditorsUserIds","Value":"[267]"},{"Key":"AuditId","Value":"363"},{"Key":"OrgId","Value":"262"}]}


RequestBody: {  "providerId": 48,  "data": {    "to": "912000001875",    "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/SAIL/OFF/IAR/26/00001","image":null,"document":null,"video":null},{"type":"text","text":"WHUHID","image":null,"document":null,"video":null},{"type":"text","text":"25-Jun-2026 12:00:00 AM","image":null,"document":null,"video":null},{"type":"text","text":"https://oqsha.com/#/audit/edit-audit/262/363","image":null,"document":null,"video":null},{"type":"text","text":"Oqsha Team","image":null,"document":null,"video":null}]}]    }   }}


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


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


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":1691}]}


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


# Calling SendNotificationToBatchParticipantsForCompletedStatus function for  whatsapp notification #


Executing completed notification function to batch participants


Sending completed batch notification to batch participant267


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_completed_batch_v5","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"jlskfs"},{"type":"text","text":"HSE Induction"},{"type":"text","text":"SailPoint Inc."},{"type":"text","text":"0 Week(s) 0 Day(s) 2 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 25, 2026  05:49:12 PM"},{"type":"text","text":"https://oqsha.com/#/batches/view/262/284/1691?dlType=viewBatch"}]}]}}}


Osmo-x WhatsApp Message has been Sent


Generating certificate.


System.ArgumentNullException: Value cannot be null.
Parameter name: path4
   at System.IO.Path.Combine(String path1, String path2, String path3, String path4)
   at IncidentReporter.API.Helpers.ExportTrainingCertificateHelper.ExportCertificate(TrainingCertificateDTO participant, String outputAbsoluteFilePath, Int32 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportTrainingCertificateHelper.cs:line 25
   at IncidentReporter.API.Helpers.ExportTrainingCertificateHelper.ExportCertificatePDFAsByteArray(TrainingCertificateDTO participant, Int32 orgId, Int32 batchId, Int32 participantId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportTrainingCertificateHelper.cs:line 115
   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendNotificationToBatchParticipantsForCompletedStatus(Int64 batchId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.NotificationSender\DAL\Events\Notifier.cs:line 3416
   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 515


### End Event Execution ###


### Start Event Execution ###


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":1692}]}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_completed_batch_v5","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"HSE Induction test"},{"type":"text","text":"HSE Induction"},{"type":"text","text":"SailPoint Inc."},{"type":"text","text":"0 Week(s) 0 Day(s) 2 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 25, 2026  06:01:48 PM"},{"type":"text","text":"https://oqsha.com/#/batches/view/262/284/1692?dlType=viewBatch"}]}]}}}


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":1693}]}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_completed_batch_v5","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"HSE induction2"},{"type":"text","text":"HSE Induction"},{"type":"text","text":"SailPoint Inc."},{"type":"text","text":"0 Week(s) 0 Day(s) 2 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 25, 2026  06:03:24 PM"},{"type":"text","text":"https://oqsha.com/#/batches/view/262/284/1693?dlType=viewBatch"}]}]}}}


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":1694}]}


Osmo-x WhatsApp payload: {"providerId":48,"data":{"to":"912000001875","messaging_product":"whatsapp","type":"template","template":{"namespace":"d8bcb6bd_2ab2_439c_9d9e_947501266c77","name":"oqsha_completed_batch_v5","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","sub_type":null,"index":0,"parameters":[{"type":"text","text":"Sal Eaton"},{"type":"text","text":"course 3"},{"type":"text","text":"Certificate"},{"type":"text","text":"SailPoint Inc."},{"type":"text","text":"0 Week(s) 0 Day(s) 1 Hour(s)"},{"type":"text","text":"No faculty"},{"type":"text","text":"June 25, 2026  06:07:00 PM"},{"type":"text","text":"https://oqsha.com/#/batches/view/262/282/1694?dlType=viewBatch"}]}]}}}


Message : {"EventName":"COMPLETED_BATCH","EventArgs":[{"Key":"BatchId","Value":1695}]}