[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\tasks\history\Screenshot20260721at22630PM_e59d43e1-c875-433a-ac37-096233632898.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\tasks\history\Screenshot20260721at22630PM_17e21320-78b4-45f4-a05f-f62954e97373.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19

*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\tasks\history\Categories_68c98717-b582-46a1-a6fc-3d608b90a4b4.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\inspections\image_1784643146128_2026-07-21_14-12-29-1229_9718bf75-6d00-4742-8a0f-3656b3c69834.jpeg: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BAD REQUEST).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at IncidentReporter.API.Helpers.SupersetClient.<PostGuestTokenAsync>d__15.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 95
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.SupersetClient.<MintGuestTokenAsync>d__14.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 71
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.EmbedBll.<GetGuestTokenAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmbedBll.cs:line 120


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":248,"ChangedBy":{"UserId":267,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-537c9589cda12d4fe09367a5f12f5847-e05054b20e022319-00"}


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":248,"ChangedBy":{"UserId":267,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-ccc9e0701787e3382827735d66496fc4-a404a46bc6564d74-00"}


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":248,"ChangedBy":{"UserId":267,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-fb287acc53412d056a192c7b72adac4d-0485c814acc342ee-00"}


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\248\work-permit\CONCRETEPUMP_0fd18c42-e280-4d1b-b961-43da0ac0ca4c_2026-07-21_15-13-34-1334_02c94843-4d07-419a-8721-a0939ded5981.jpg: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\248\work-permit\ChatGPT Image Jun 1, 2026, 09_36_12 AM_2026-07-21_15-13-34-1334_7517b67f-ffd5-4fc3-b71a-9941c3005064.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


MySql.Data.MySqlClient.MySqlException (0x80004005): Cannot add or update a child row: a foreign key constraint fails (`qa_stg_oqsha`.`library_v2`, CONSTRAINT `fk_library_category` FOREIGN KEY (`category_id`) REFERENCES `library_categories` (`id`))
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
   at System.Data.Common.DbCommand.ExecuteScalarAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<ExecuteScalarImplAsync>d__66`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.DAL.Repositories.LibraryV2Repo.<CreateLibraryAsync>d__2.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\LibraryV2Repo.cs:line 31
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.LibraryV2Bll.<CreateLibraryAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\LibraryV2Bll.cs:line 71


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\tasks\history\Screenshot20260721at22630PM_7d44a5ad-e548-4111-a0d6-40fb24093b53.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\264\libraryv2\Screenshot202607151828478_16e46c1d-a611-4aba-a69a-c9ef209c530d.png: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":248,"ChangedBy":{"UserId":267,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"HRPS19","OrganisationName":"Falcon's Beyond Global Inc. Warrants","OrganisationType":"Manufacturing","Packages":[{"PackageId":1,"InvoiceId":388,"StartDate":"2025-07-02T00:00:00","EndDate":"2025-07-30T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null},{"PackageId":4,"InvoiceId":393,"StartDate":"2025-07-31T00:00:00","EndDate":"2026-12-31T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":""}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":0,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":1,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":1,"Companies IsVisible":1,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":0,"Departments IsVisible":1,"Employee Recognition IsVisible":1,"Esg IsVisible":0,"FIR IsVisible":0,"Health IsVisible":1,"Health V2 IsVisible":0,"Heatmap IsVisible":1,"HIRA IsVisible":1,"HIRA V2 IsVisible":0,"Incident Management IsVisible":1,"Inspection V2 IsVisible":0,"Inspections IsVisible":1,"Investigations IsVisible":0,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"KPI IsVisible":1,"Library IsVisible":1,"Library V2 IsVisible":0,"MOC IsVisible":1,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations V2 IsVisible":0,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":1,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":1,"PSSR IsVisible":1,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":0,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":1,"Tickets IsVisible":1,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Training Courses V2 IsVisible":0,"Training register IsVisible":1,"Training Register V2 IsVisible":0,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":1,"Work Permit V2 IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-7dba93196fde9013bc19b9d0158bc2d7-9d9c9ca537195a94-00"}


Error occurred while Whatsapp message.

System.Exception: Error occurred while Whatsapp message. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at IncidentReporter.API.BLL.UsersBLL.SendMessage(String apiBody) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 261
   --- End of inner exception stack trace ---