{ "timestamp": "2026-05-09 08:46:27.7431", "level": "Info", "severity": "INFO", "message": "### Start Event Execution ###" }
{ "timestamp": "2026-05-09 08:46:27.7431", "level": "Info", "severity": "INFO", "message": "Message : {\"EventName\":\"NOTIFICATION_TO_TASK_ASSIGNEES\",\"EventArgs\":[{\"Key\":\"TaskId\",\"Value\":12777},{\"Key\":\"OrganisationId\",\"Value\":258},{\"Key\":\"TaskUid\",\"Value\":\"AT\/KURA\/FD1\/A22\/26\/00009\"},{\"Key\":\"TaskPriority\",\"Value\":\"Medium\"},{\"Key\":\"TaskDescription\",\"Value\":\"\"},{\"Key\":\"DueDate\",\"Value\":\"09-May-2026\"},{\"Key\":\"AssigneeUserDetails\",\"Value\":\"[{\\\"Id\\\":11123,\\\"MobileNumber\\\":\\\"2000005486\\\",\\\"WhatsAppNumber\\\":\\\"2000005486\\\",\\\"CountryCode\\\":\\\"+91\\\",\\\"UserUid\\\":null,\\\"CountryId\\\":11,\\\"WhatsAppCountryCode\\\":\\\"+91\\\",\\\"WhatsAppCountryId\\\":11,\\\"Photo\\\":null,\\\"FirstName\\\":\\\"Zbigniew\\\",\\\"LastName\\\":\\\"Calvin\\\",\\\"DisplayName\\\":\\\"Zbigniew Calvin\\\",\\\"Email\\\":\\\"osm02102@osmosys.co\\\",\\\"Password\\\":null,\\\"City\\\":null,\\\"Country\\\":null,\\\"Address\\\":\\\"\\\",\\\"Pincode\\\":null,\\\"CompanyId\\\":null,\\\"CompanyTypeId\\\":null,\\\"JobDesignationIds\\\":null,\\\"JobDesignationName\\\":null,\\\"ReceiveAllPtwNotifications\\\":null,\\\"SeeAllPtws\\\":null,\\\"SeeAllInspections\\\":null,\\\"Role\\\":1,\\\"Roles\\\":null,\\\"AnonymousReporting\\\":false,\\\"Status\\\":1,\\\"CreatedOn\\\":\\\"2026-03-05T16:18:23\\\",\\\"ModifiedOn\\\":\\\"2026-04-01T08:28:44\\\",\\\"Latitude\\\":null,\\\"Longitude\\\":null,\\\"Location\\\":null,\\\"OrganisationName\\\":null,\\\"IsVerified\\\":null,\\\"IsCloseOrganisation\\\":null,\\\"OrganisationId\\\":null,\\\"CompanyName\\\":null,\\\"VerificationStatus\\\":null,\\\"IsPortalUser\\\":null,\\\"IsFieldStaff\\\":null,\\\"LocationId\\\":null,\\\"LocationName\\\":null,\\\"IncidentSites\\\":null,\\\"IncidentSiteIds\\\":null,\\\"IncidentSitesText\\\":null,\\\"IsAppUser\\\":false,\\\"Incidents\\\":null,\\\"IncidentHistory\\\":null,\\\"IsSelectAll\\\":null,\\\"IsSelectAllFieldStaff\\\":null,\\\"AppPassword\\\":null,\\\"ShowAllIncidents\\\":null,\\\"OrgUserCreatedOn\\\":null,\\\"AzureUserId\\\":null,\\\"AppUserPreferenceDBO\\\":null,\\\"EmployeeNumber\\\":\\\"\\\",\\\"EmergencyContactName\\\":\\\"\\\",\\\"EmergencyContactNumber\\\":\\\"\\\",\\\"ReportingManager\\\":null,\\\"DateOfJoining\\\":null,\\\"DateOfBirth\\\":null,\\\"Department\\\":null,\\\"Sites\\\":null,\\\"ShortCode\\\":null,\\\"AcmRoleId\\\":null,\\\"AcmRole\\\":null,\\\"JobDesignationId\\\":null,\\\"AcmRoles\\\":null,\\\"JobTypeIds\\\":null,\\\"IsActiveUser\\\":null,\\\"JobDesignationNames\\\":null,\\\"UserHistory\\\":null,\\\"EscalateConfig\\\":null,\\\"ContractStartedOn\\\":null,\\\"ContractEndsOn\\\":null,\\\"IsOwner\\\":null,\\\"PortalPasswordLastChangedOn\\\":null,\\\"AppPasswordLastChangedOn\\\":null,\\\"Departments\\\":null,\\\"UserQrCodeImage\\\":null,\\\"UserQrCodePdf\\\":null,\\\"UserMultiplePhotos\\\":null,\\\"UserTypeName\\\":null,\\\"AcmRoleIds\\\":null,\\\"RoleId\\\":0,\\\"StringUserSiteIds\\\":null,\\\"SiteIds\\\":null,\\\"UserCreationSource\\\":null,\\\"Gender\\\":null,\\\"DesignationId\\\":null,\\\"DesignationName\\\":null}]\"},{\"Key\":\"CategoryName\",\"Value\":\"AT 2\"}]}" }
{ "timestamp": "2026-05-09 08:46:27.7649", "level": "Info", "severity": "INFO", "message": "### Started process for Execution of Event : NOTIFICATION_TO_TASK_ASSIGNEES ###" }
{ "timestamp": "2026-05-09 08:46:27.7649", "level": "Info", "severity": "INFO", "message": "# Calling SendNotificationToTaskAssignees function for WhatsApp notification #" }
{ "timestamp": "2026-05-09 08:46:27.7706", "level": "Debug", "severity": "DEBUG", "message": "Sending WhatsApp notification for task assignment to user ID: 11123" }
{ "timestamp": "2026-05-09 08:46:27.7706", "level": "Warn", "severity": "WARN", "message": "Osmo-x WhatsApp payload: {\"providerId\":48,\"data\":{\"to\":\"912000005486\",\"messaging_product\":\"whatsapp\",\"type\":\"template\",\"template\":{\"namespace\":\"d8bcb6bd_2ab2_439c_9d9e_947501266c77\",\"name\":\"oqsha_task_assigned_to_notification_v4\",\"language\":{\"policy\":\"deterministic\",\"code\":\"en\"},\"components\":[{\"type\":\"body\",\"sub_type\":null,\"index\":0,\"parameters\":[{\"type\":\"text\",\"text\":\"Zbigniew Calvin\"},{\"type\":\"text\",\"text\":\"Task\"},{\"type\":\"text\",\"text\":\"AT\/KURA\/FD1\/A22\/26\/00009\"},{\"type\":\"text\",\"text\":\"N\/A\"},{\"type\":\"text\",\"text\":\"AT 2\"},{\"type\":\"text\",\"text\":\"https:\/\/oqsha.com\/#\/tasks\/edit\/12777?dlType=viewTask&orgID=258\"},{\"type\":\"text\",\"text\":\"Oqsha Team\"}]}]}}}" }
{ "timestamp": "2026-05-09 08:46:27.8220", "level": "Debug", "severity": "DEBUG", "message": "Osmo-x WhatsApp Message has been Sent" }
{ "timestamp": "2026-05-09 08:46:27.8220", "level": "Debug", "severity": "DEBUG", "message": "Sending Task Assignment Email for TaskId: 12777, UserId: 11123" }
{ "timestamp": "2026-05-09 08:46:27.8220", "level": "Info", "severity": "INFO", "message": "*--- Sending Email Serice Initiated ---*" }
{ "timestamp": "2026-05-09 08:46:27.8220", "level": "Info", "severity": "INFO", "message": "Reading and binding data to Email Template" }
{ "timestamp": "2026-05-09 08:46:27.8220", "level": "Info", "severity": "INFO", "message": "Initializing Email Service Client" }
{ "timestamp": "2026-05-09 08:46:27.8220", "level": "Info", "severity": "INFO", "message": "Generating Email Request" }
{ "timestamp": "2026-05-09 08:46:27.8654", "level": "Info", "severity": "INFO", "message": "{\"provider_id\":44,\"data\":{\"from\":\"\\\"OQSHA\\\" <noreply@oqsha.com>\",\"to\":\"osm02102@osmosys.co\",\"cc\":null,\"bcc\":null,\"subject\":\"New Task Assigned - AT\/KURA\/FD1\/A22\/26\/00009\",\"text\":null,\"html\":\"Hello Zbigniew Calvin,\\n<br \/>\\n<br \/>\\n\\nA new Task has been assigned to you.\\n<br \/>\\nHere are the details:\\n<br \/>\\n<br \/>\\n\\n<b>Task ID:<\/b> AT\/KURA\/FD1\/A22\/26\/00009\\n<br \/>\\n<b>Task Description:<\/b> N\/A\\n<br \/>\\n<b>Task Priority:<\/b> Medium\\n<br \/>\\n<b>Due Date:<\/b> 09-May-2026\\n<br \/>\\n<b>Task Link:<\/b> <a href=\\\"https:\/\/oqsha.com\/#\/tasks\/edit\/12777?dlType=viewTask&orgID=258\\\">Click to open<\/a>\\n<br \/>\\n<br \/>\\n\\nKindly check the Task and proceed accordingly.\\n<br \/>\\n<br \/>\\n\\n Regards,\\n<br \/>\\n Oqsha Team\\n<br>\\n -----------------------------------------------\\n<br>\\n OQSHA - Powered by Osmosys\\n\",\"attachments\":null},\"application_id\":15,\"created_by\":\"Oqsha Sandbox\",\"updated_by\":\"Oqsha Sandbox\",\"channel_type\":2,\"delivery_status\":5,\"result\":{\"result\":\"This is a test mode notification. Notification was not delivered to recipient.\"},\"notification_sent_on\":null,\"provider_chain_id\":null,\"id\":734446,\"created_on\":\"2026-05-09T08:46:27.873Z\",\"updated_on\":\"2026-05-09T08:46:27.873Z\",\"status\":1,\"retry_count\":0}" }
{ "timestamp": "2026-05-09 08:46:27.8654", "level": "Info", "severity": "INFO", "message": "--- Email created using Osmo-x ---" }
{ "timestamp": "2026-05-09 08:46:27.8654", "level": "Info", "severity": "INFO", "message": "--- Email response from Osmo-x is 201" }
{ "timestamp": "2026-05-09 08:46:27.8893", "level": "Info", "severity": "INFO", "message": "### End Event Execution ###" }
{ "timestamp": "2026-05-09 12:00:56.9730", "level": "Info", "severity": "INFO", "message": "### Start Event Execution ###" }
{ "timestamp": "2026-05-09 12:00:56.9730", "level": "Info", "severity": "INFO", "message": "Message : {\"EventName\":\"NOTIFICATION_FOR_WEEKLY_PRESENTATION_REPORT\",\"EventArgs\":[{\"Key\":\"OrgId\",\"Value\":\"248\"},{\"Key\":\"FromDate\",\"Value\":\"2026-04-09\"},{\"Key\":\"ToDate\",\"Value\":\"2026-05-09\"},{\"Key\":\"FilePath\",\"Value\":\"xxxx\\\\incident-reporter-api\\\\IncidentReporter\\\\IncidentReporter.API\\\\attachments\\\\pptx\\\\safety_report_20260509_120056.pptx\"}]}" }
{ "timestamp": "2026-05-09 12:00:56.9932", "level": "Info", "severity": "INFO", "message": "### Started process for Execution of Event : NOTIFICATION_FOR_WEEKLY_PRESENTATION_REPORT ###" }
{ "timestamp": "2026-05-09 12:00:56.9932", "level": "Info", "severity": "INFO", "message": "*--- Sending Email Serice Initiated ---*" }
{ "timestamp": "2026-05-09 12:00:56.9932", "level": "Info", "severity": "INFO", "message": "Reading and binding data to Email Template" }
{ "timestamp": "2026-05-09 12:00:56.9932", "level": "Info", "severity": "INFO", "message": "Initializing Email Service Client" }
{ "timestamp": "2026-05-09 12:00:56.9932", "level": "Info", "severity": "INFO", "message": "Generating Email Request" }
{ "timestamp": "2026-05-09 12:00:56.9932", "level": "Error", "severity": "ERROR", "message": "Error occurred while sending email using Osmo-x." }
{ "timestamp": "2026-05-09 12:00:57.0104", "level": "Error", "severity": "ERROR", "message": "{\r\n  \"MethodName\": \"SendEmail\",\r\n  \"Message\": \"Could not find a part of the path 'D:\\\\App-Data\\\\iis\\\\api.incidentreporter365.com\\\\Apps\\\\NotificationSender\\\\xxxx\\\\incident-reporter-api\\\\IncidentReporter\\\\IncidentReporter.API\\\\attachments\\\\pptx\\\\safety_report_20260509_120056.pptx'.\",\r\n  \"AdditionalData\": {\r\n    \"EntryPoint\": \"NotificationSender\",\r\n    \"InputData\": null\r\n  }\r\n}", "stackTrace": "System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\\App-Data\\iis\\api.incidentreporter365.com\\Apps\\NotificationSender\\xxxx\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\attachments\\pptx\\safety_report_20260509_120056.pptx'.\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)\r\n   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 128" }
{ "timestamp": "2026-05-09 12:00:57.0104", "level": "Warn", "severity": "WARN", "message": "Failed to send Weekly Presentation Report Email | File=xxxx\\incident-reporter-api\\IncidentReporter\\IncidentReporter.API\\attachments\\pptx\\safety_report_20260509_120056.pptx" }
{ "timestamp": "2026-05-09 12:00:57.0104", "level": "Info", "severity": "INFO", "message": "### End Event Execution ###" }
