System.InvalidCastException: Null object cannot be converted to a value type.
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at Newtonsoft.Json.Linq.Extensions.Convert[T,U](T token)
   at IncidentReporter.API.BLL.CategoryConfigurationsBll.ExtractModuleAssociationConfigs(String configJson, Int32 orgId, Int32 sourceModuleId, Int32 categoryId, Int32 userId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\CategoryConfigurationsBll.cs:line 795
   at IncidentReporter.API.BLL.CategoryConfigurationsBll.<UpdateCategoryConfigurationAsync>d__7.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\CategoryConfigurationsBll.cs:line 308

(This Permit is valid for one shift after that renewal/extension of the permit required).

(This Permit is valid for 08:30 AM to 6:00 PM after that special permission required for Continuation of the Job).

Service involved: Steam/Air/ Water /other (specify)

SAFETY PRECAUTION REQUIRED - (J)Electrical Work

All possible back feeding supplies disconnected.

Use of non-metal portable ladders ensured.

Temporary power cables using good condition & rating as per requirement.

Proper routing of temporary cables ensured.

Qualified electrician available for the job.

PROCESS DEPARTMENT - Instructions if Any

MECHANICAL DEPARTMENT - Instructions if Any

ELECTRICAL & INST.DEPART. - Instructions if Any

PERMIT AUTHORISED BY: (THE DEPARTMENT HEAD OF THE CONCERNED DEPARTMENT)

PERMIT RECEIVED BY: (IF CONTRACTOR ENGAGED FOR THE WORK)

PERMIT HAND OVER / EXTENTION / SPECIAL PERMISSION:

PERMIT CLOSED AFTER EXTENSION BY AUTHORISER:


Request URL : https://api-sandbox.oqsha.com/Logout


Request Body : ***BODY REDACTED FOR SENSITIVE ENDPOINT***


JTI 990eec14-a4c2-46c2-995e-ae0eb288f86e for userId = 678 is saved to database.


Request URL : https://api-sandbox.oqsha.com/User/1955/Preferences/0


Request URL : https://api-sandbox.oqsha.com/Organisations/211/AssociatedPermitToWork/All?live=true&SiteId=588


Request URL : https://api-sandbox.oqsha.com/Organisation/211/Users/DropDown?ModuleName=Tickets&AcmModuleId=12&siteId=588


Request URL : https://api-sandbox.oqsha.com/Organisation/211/Users/DropDown?ModuleName=Tickets&AcmModuleId=12&siteId=588&categoryIds=1272


Request URL : https://api-sandbox.oqsha.com/Organisations/211/Incidents/


Pushing Assigned to Notification object to NSQ


NotificationObject: {@Object}


Immediate notifications not found. Disposing the notification object.


Pushing New Incident Notification object to NSQ


Inserting activity with data: IncidentReporter.DAL.Models.ActivityDBO


Audit log sent successfully.


JTI f294228c-b053-430a-956a-7f56ba20a1bd for userId = 267 is saved to database.


Request URL : https://api-sandbox.oqsha.com/Users/1955/Incidents/


Request URL : https://api-sandbox.oqsha.com/Login


Request URL : https://api-sandbox.oqsha.com/Organisations


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/260


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=260


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Divisions


Request URL : https://api-sandbox.oqsha.com/Organisations/260/IncidentLocations?isActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Users/678/incidentsites?isActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/260


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Users/678


Request URL : https://api-sandbox.oqsha.com/Organisation/260/Modules


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Organisations/260/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Organisation/260/UserPreference


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/260/SideMenu


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Training/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/TaskCategories/Dropdown


Request Body : {"SiteId":[839,837,835,838,836],"UserId":678}


Request Body : {"SiteIds":[839,837,835,838,836],"FromDate":"2026-04-01","ToDate":"2026-09-04"}


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Divisions/Dropdown


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Incidents/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Tasks/List/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/KPI/PlantMaster/Sites/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Inspections/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/IncidentManagement/Firs/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/PermitToWork/All/Sites/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/ManagementOfChangeList/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Courses/Counts


Request Body : {"SiteIds":[839,837,835,838,836],"FromDate":"2026-04-01","ToDate":"2026-09-04","CategoryId":[1706,1705,1704]}


Request Body : {"SiteIds":[839,837,835,838,836]}


Request Body : {"SiteIds":[839,837,835,838,836],"FromDate":"2026-04-01","ToDate":"2026-09-04","CategoryId":[]}


Draft status not configured for orgId: 260. Skipping exclusion.


Request URL : https://api-sandbox.oqsha.com/Organisations/260/Library/Categories


Request Body : {"OrgId":260,"UserId":678}


Request URL : https://api-sandbox.oqsha.com/Organisation/260/Users/DropDown?ModuleName=Library


Request URL : https://api-sandbox.oqsha.com/Organisations/248/IncidentLocations?isActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Users/267/incidentsites?isActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Divisions


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/248


Request URL : https://api-sandbox.oqsha.com/Organisations/264/IncidentLocations?isActive=1


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Modules


Request URL : https://api-sandbox.oqsha.com/Organisation/248/UserPreference


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Users/678/incidentsites?isActive=1


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Divisions


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/264


Request URL : https://api-sandbox.oqsha.com/Organisation/264/Modules


Request URL : https://api-sandbox.oqsha.com/Organisation/264/UserPreference


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=248


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Resources/package-features-eng


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=264


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Users/267


Request URL : https://api-sandbox.oqsha.com/Batches/Own?AsFaculty=true&AsParticipant=true&organisationId=248


Request URL : https://api-sandbox.oqsha.com/Organisations/248


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Organisations/248/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/248/SideMenu


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Users/678


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisations/264


Request URL : https://api-sandbox.oqsha.com/Organisations/264/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/264/SideMenu


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Training/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/TaskCategories/Dropdown


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Reports/Dashboards


Request Body : {"SiteIds":[845,846,900],"FromDate":"2026-04-01","ToDate":"2026-09-04"}


Request Body : {"SiteId":[845,846,900],"UserId":678}


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Divisions/Dropdown


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Incidents/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Tasks/List/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/KPI/PlantMaster/Sites/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/IncidentManagement/Firs/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/ManagementOfChangeList/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/PermitToWork/All/Sites/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Inspections/Counts


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Courses/Counts


Request Body : {"SiteIds":[845,846,900],"FromDate":"2026-04-01","ToDate":"2026-09-04","CategoryId":[]}


Request Body : {"SiteIds":[845,846,900]}


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Users/678


Request URL : https://api-sandbox.oqsha.com/Organisation/264/Modules


Request URL : https://api-sandbox.oqsha.com/Organisation/264/Embed/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisation/264/Embed/GuestToken


Request Body : {"resourceType":"master_dashboard","resourceUuid":"4"}


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


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Organisations/264/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/264/SideMenu


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Statuses


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Tasks/List


Request URL : https://api-sandbox.oqsha.com/Organisations/248/TaskCategories/Dropdown


Request Body : {"SiteId":[],"UserId":267}


Request URL : https://api-sandbox.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=248


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Modules/85/Categories/All


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"","UserId":678,"AcmModuleId":85}


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Tasks&siteId=708&siteId=744&siteId=707&siteId=705&siteId=709&siteId=706


Request URL : https://api-sandbox.oqsha.com/Users


Request URL : https://api-sandbox.oqsha.com/Incidents


Request URL : https://api-sandbox.oqsha.com/Organisations/248/IncidentStatuses


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Company/All?&IsActive=1


Request Body : {"OrgId":[248],"PageNumber":1,"PageLimit":1,"StartDate":"2026-09-04","EndDate":"2026-09-04","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"]}


Request Body : {"OrgId":[198],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Divisions?userId=267&userTypeId=1


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Divisions/List


Request Body : {"OrgId":[248],"SiteId":[],"UserId":267,"SearchTerm":""}


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Tickets&SiteId=708&SiteId=744&SiteId=707&SiteId=705&SiteId=709&SiteId=706&AcmModuleId=12


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Modules/85/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisation/264/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Departments


Request URL : https://api-sandbox.oqsha.com/Organisation/264/Users/DropDown


Request URL : https://api-sandbox.oqsha.com/Trigger-Configs/Dropdowns


Request Body : {"OrgId":[198],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":"heb"}


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Incidents/79538


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Incidents/79538/IncidentHistory?PageNumber=1&PageLimit=10&SimilarIncidentHistory=true


Request URL : https://api-sandbox.oqsha.com/Organisations/248/IncidentLocations/Dropdown?AcmModuleId=12


Request URL : https://api-sandbox.oqsha.com/Organisation/248/UserDetails


Request URL : https://api-sandbox.oqsha.com/Organisations/248/IncidentStatuses


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=Tickets&SiteId=708&AcmModuleId=12


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Divisions?userId=267&userTypeId=1


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Divisions/List


Request URL : https://api-sandbox.oqsha.com/Organisations/248/tasks?OrgId=248&SortingColumn=TaskTitle&SortingOrder=asc&siteId=708


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=708


Request URL : https://api-sandbox.oqsha.com/Assets?OrgId=248&LocationId=708&SortingColumn=UniqueAssetId&SortingOrder=asc&IsActive=true


Request Body : {"OrgId":[248],"SiteId":[708],"UserId":267,"SearchTerm":""}


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Incident/79538/AssociatedTasks


Request URL : https://api-sandbox.oqsha.com/Users


Request Body : {"OrgId":[198],"PageNumber":1,"PageLimit":10,"SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"SearchTerm":""}


Request URL : https://api-sandbox.oqsha.com/Login


Request URL : https://api-sandbox.oqsha.com/Organisation/198/Users/DropDown?ModuleName=undefined&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Designations


Request Body : ***BODY REDACTED FOR SENSITIVE ENDPOINT***


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/Assets/AssetTypes?OrgId=198&SortingOrder=asc&SortingColumn=Name


Request URL : https://api-sandbox.oqsha.com/Organisations


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/198/PtwJobTypes?userId==267


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Departments


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Divisions/Dropdown?SiteId=653&SiteId=558&SiteId=601&SiteId=501&SiteId=503&SiteId=557


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/255


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=255


Request URL : https://api-sandbox.oqsha.com/Organisation/198/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisation/198/User/14030/JobTypes


Request URL : https://api-sandbox.oqsha.com/Organisation/198/KPI/EmployeeMasterDropdown


Request Body : {"SiteId":[653,558,601,501,503,557],"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisation/198/CompanyTypes


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Users/14030


Request URL : https://api-sandbox.oqsha.com/Organisations/198/DefaultCompany


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Contractors/All?&siteIds=653&siteIds=558&siteIds=601&siteIds=501&siteIds=503&siteIds=557&IsActive=1


Request URL : https://api-sandbox.oqsha.com/Organisation/198/ModulePermissions?RoleIds=515


Request URL : https://api-sandbox.oqsha.com/Organisation/198/Users/ModuleTypes?SiteIds=653&SiteIds=558&SiteIds=601&SiteIds=501&SiteIds=503&SiteIds=557&AcmRoleId=515


Request URL : https://api-sandbox.oqsha.com/Organisations/198/Users/14030/History


Request URL : https://api-sandbox.oqsha.com/Organisations/198/InspectionTypeDropDown?SiteIds=653&SiteIds=558&SiteIds=601&SiteIds=501&SiteIds=503&SiteIds=557&AssetTypeIds=70&AssetTypeIds=52


Request URL : https://api-sandbox.oqsha.com/Organisations/264/Modules/85/Categories