{ "timestamp": "2026-07-28 05:16:13.0374", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 05:16:13.0547", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 05:17:11.6953", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 05:17:11.6953", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 06:15:24.1556", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   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 4194\r\n   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" }
{ "timestamp": "2026-07-28 06:15:24.1915", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 06:34:04.8357", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   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 4194\r\n   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" }
{ "timestamp": "2026-07-28 06:34:04.8496", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:29.8417", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:29.8579", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:29.8886", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:29.8886", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.1590", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:30.1678", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:30.1678", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.1678", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.4505", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:30.4505", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.4505", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:30.4649", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.6090", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:30.6090", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:30.6090", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.6090", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:30.9023", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:30.9023", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:31.0460", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:31.0460", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:31.1872", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:31.1872", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:31.4657", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:31.4657", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:31.4657", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:31.4807", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:31.7575", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:31.7683", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:31.9041", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:31.9041", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:32.0382", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:11:32.0471", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:11:32.0471", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:11:32.0471", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:01.1745", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:01.1745", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:01.3143", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:01.3242", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:01.4660", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:01.4660", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:01.6091", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:01.6091", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:01.6091", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:01.6213", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:01.9038", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:01.9038", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:12:02.0449", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 07:12:02.0449", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:36:17.0249", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:36:17.0399", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:36:17.1910", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:36:17.2229", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:36:17.3662", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:36:17.3662", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:41:28.1374", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:41:28.1546", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.0140", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.0260", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.1661", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.1909", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.3253", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.3253", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.4809", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.4809", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.6265", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.6355", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.7694", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.7782", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:14.9164", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:14.9164", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:15.0578", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:44:15.0578", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:44:21.6660", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   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 4194\r\n   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" }
{ "timestamp": "2026-07-28 07:44:21.6660", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:59:34.8435", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 07:59:34.8435", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\r\n   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 4194\r\n   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" }
{ "timestamp": "2026-07-28 07:59:34.8531", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 07:59:34.8531", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 08:02:50.7636", "level": "Error", "severity": "ERROR", "message": "Fatal error encountered during command execution.", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter '@CreatedAt' must be defined.\r\n   at MySql.Data.MySqlClient.Statement.SerializeParameter(MySqlParameterCollection parameters, MySqlPacket packet, String parmName, Int32 parameterIndex)\r\n   at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql, MySqlParameterCollection parameters, MySqlPacket packet)\r\n   at MySql.Data.MySqlClient.Statement.BindParameters()\r\n   at MySql.Data.MySqlClient.PreparableStatement.Execute()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()\r\n   at Dapper.SqlMapper.ExecuteScalarImpl[T](IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.InsertUserPushNotificationHistory(UserPushNotificationHistoryDBO userPushNotificationHistory) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1478\r\n   at IncidentReporter.NotificationSender.Helpers.AwsHelper.SendAppNotification(UserDeviceDBO userDevice, NotificationDBO notification, String organisationName, String conn, PushNotificationProperties notificationProperties) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AwsHelper.cs:line 468" }
{ "timestamp": "2026-07-28 08:02:50.7636", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 10:11:54.6047", "level": "Error", "severity": "ERROR", "message": "Unable to cast object of type 'System.Int64' to type 'System.String'.", "stackTrace": "System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.String'.\r\n   at IncidentReporter.NotificationSender.Models.Event.Get[T](String strKey) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Models\\Event.cs:line 71\r\n   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 1189" }
{ "timestamp": "2026-07-28 10:11:54.6403", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 10:11:54.7613", "level": "Error", "severity": "ERROR", "message": "Unable to cast object of type 'System.Int64' to type 'System.String'.", "stackTrace": "System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.String'.\r\n   at IncidentReporter.NotificationSender.Models.Event.Get[T](String strKey) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Models\\Event.cs:line 71\r\n   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 1189" }
{ "timestamp": "2026-07-28 10:11:54.7613", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 12:31:49.6369", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 12:31:49.6831", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 12:35:38.3335", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 12:35:38.3335", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 12:35:38.4742", "level": "Error", "severity": "ERROR", "message": "Column 'notification_body' cannot be null", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'notification_body' cannot be null\r\n   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)\r\n   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()\r\n   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.BulkInsertUserModuleNotification(IEnumerable`1 userNotifications) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1042\r\n   at IncidentReporter.NotificationSender.Helpers.AddUserModuleNotificationHelper.AddUserModuleNotification(Int32 orgId, Int32 entityId, List`1 userIds, Dictionary`2 userTemplateContent, Int32 acmModuleId, UserModuleNotificationType notificationType, Int32 createdById, String conn, String viewLink) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AddUserModuleNotificationHelper.cs:line 120" }
{ "timestamp": "2026-07-28 12:35:38.5067", "level": "Error", "severity": "ERROR", "message": "Column 'notification_body' cannot be null", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'notification_body' cannot be null\r\n   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)\r\n   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()\r\n   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.BulkInsertUserModuleNotification(IEnumerable`1 userNotifications) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1042\r\n   at IncidentReporter.NotificationSender.Helpers.AddUserModuleNotificationHelper.AddUserModuleNotification(Int32 orgId, Int32 entityId, List`1 userIds, Dictionary`2 userTemplateContent, Int32 acmModuleId, UserModuleNotificationType notificationType, Int32 createdById, String conn, String viewLink) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AddUserModuleNotificationHelper.cs:line 125\r\n   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendWorkPermitApprovedInformToRolesNotification(String eventName, String userId, String workPermitId, String workPermitUid, String siteName, String organisationName, String approvedOn, Int64 orgId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\DAL\\Events\\Notifier.cs:line 15203\r\n   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 1839" }
{ "timestamp": "2026-07-28 12:35:38.5067", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 12:37:27.5339", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 12:37:27.5339", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 12:37:28.0228", "level": "Error", "severity": "ERROR", "message": "Column 'notification_body' cannot be null", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'notification_body' cannot be null\r\n   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)\r\n   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()\r\n   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.BulkInsertUserModuleNotification(IEnumerable`1 userNotifications) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1042\r\n   at IncidentReporter.NotificationSender.Helpers.AddUserModuleNotificationHelper.AddUserModuleNotification(Int32 orgId, Int32 entityId, List`1 userIds, Dictionary`2 userTemplateContent, Int32 acmModuleId, UserModuleNotificationType notificationType, Int32 createdById, String conn, String viewLink) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AddUserModuleNotificationHelper.cs:line 120" }
{ "timestamp": "2026-07-28 12:37:28.0228", "level": "Error", "severity": "ERROR", "message": "Column 'notification_body' cannot be null", "stackTrace": "MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'notification_body' cannot be null\r\n   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()\r\n   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)\r\n   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)\r\n   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)\r\n   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()\r\n   at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)\r\n   at IncidentReporter.DAL.Repositories.NotificationsRepo.BulkInsertUserModuleNotification(IEnumerable`1 userNotifications) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.DAL\\Repositories\\NotificationsRepo.cs:line 1042\r\n   at IncidentReporter.NotificationSender.Helpers.AddUserModuleNotificationHelper.AddUserModuleNotification(Int32 orgId, Int32 entityId, List`1 userIds, Dictionary`2 userTemplateContent, Int32 acmModuleId, UserModuleNotificationType notificationType, Int32 createdById, String conn, String viewLink) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Helpers\\AddUserModuleNotificationHelper.cs:line 125\r\n   at IncidentReporter.NotificationSender.DAL.Events.Notifier.SendWorkPermitExtensionHandoverInformationNotification(String eventName, Int64 userId, String workPermitId, String workPermitUid, String siteName, String organisationName, String extensionTakenOn, Int64 orgId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\DAL\\Events\\Notifier.cs:line 16380\r\n   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 2002" }
{ "timestamp": "2026-07-28 12:37:28.0228", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 12:41:19.7962", "level": "Error", "severity": "ERROR", "message": "Object reference not set to an instance of an object.", "stackTrace": "System.NullReferenceException: Object reference not set to an instance of an object.\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 39" }
{ "timestamp": "2026-07-28 12:41:19.8163", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 14:58:15.5162", "level": "Error", "severity": "ERROR", "message": "Unable to cast object of type 'System.Int64' to type 'System.String'.", "stackTrace": "System.InvalidCastException: Unable to cast object of type 'System.Int64' to type 'System.String'.\r\n   at IncidentReporter.NotificationSender.Models.Event.Get[T](String strKey) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\IncidentReporter.NotificationSender\\Models\\Event.cs:line 71\r\n   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 1189" }
{ "timestamp": "2026-07-28 14:58:15.5345", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 15:24:48.6254", "level": "Error", "severity": "ERROR" }
{ "timestamp": "2026-07-28 15:24:48.6254", "level": "Error", "severity": "ERROR" }
