Request Body : {"Title":"Hazard identification","SiteId":872,"RiskAssessmentTypeId":210,"AspectImpactId":"603","RiskAssessmentStatusId":933,"DepartmentId":91,"CompanyId":null,"NextRevisionDate":"2026-02-06T00:00:00.000Z","RevisionNumber":null,"Approvers":[{"AcmRoleId":0,"UserId":1,"IsApproved":true,"Sequence":0,"LevelOfApprover":"LevelOne","LevelOfApproverString":"LevelOne"},{"AcmRoleId":0,"UserId":2764,"IsApproved":true,"Sequence":0,"LevelOfApprover":"LevelOne","LevelOfApproverString":"LevelOne"}],"RiskAssessmentActivityConfig":{"RiskAssessmentId":692,"Activities":[{"Id":1829,"Name":"Hazard investigation check list","SubActivities":[{"Id":1881,"Name":"Hazard check","Configuration":{"Sections":[{"SectionId":1,"SectionName":"Hazard Indentification","SectionType":"text","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":1,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"1_1","Check":"Hazard Explanation","Type":"text","Value":"Hazard: Unguarded rotating machinery\nExplanation:\nRotating machinery without adequate guarding presents a mechanical hazard where moving parts can entangle clothing or body parts. This can result in severe injuries such as fractures, amputations, or fatalities. The hazard is heightened during maintenance or cleaning activities if lockout/tagout procedures are not followed.","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":true,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"1_2","Check":"Routine/Non-Routine","Type":"select","Value":{"OptionId":2,"OptionText":"Non-Routine"},"IsMandatory":0,"CheckOptions":[{"OptionId":1,"OptionText":"Routine"},{"OptionId":2,"OptionText":"Non-Routine"}],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]},{"SectionId":2,"SectionName":"Hazards","SectionType":"checkbox","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":2,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"2_1","Check":"Mechanical Hazard","Type":"checkbox","Value":true,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"2_2","Check":"Physical Hazard","Type":"checkbox","Value":false,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"2_3","Check":"Ergonomic hazard","Type":"checkbox","Value":true,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"2_4","Check":"Any Other hazard","Type":"checkbox","Value":false,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]},{"SectionId":3,"SectionName":"Risk Analysis","SectionType":"equation","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":3,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"3_1","Check":"RPN","Type":"equation","Value":40,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100},"EquationCheckConfiguration":{"Operator":"*","Left":{"Operator":"*","Left":{"Type":"variable","Name":"Probability","Value":2},"Right":{"Type":"variable","Name":"Severity","Value":2}},"Right":{"Type":"variable","Name":"Detection","Value":10}}},{"Id":"3_2","Check":"Major risk (Y/N)","Type":"radio","Value":{"OptionId":1,"OptionText":"Yes"},"IsMandatory":0,"CheckOptions":[{"OptionId":1,"OptionText":"Yes"},{"OptionId":2,"OptionText":"No"}],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_3","Check":"Existing Risk Control Measures","Type":"text","Value":"Existing risk control measures","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_4","Check":"Hierarchy Of Risk Control Measures","Type":"text","Value":"Hierarchy of risk contrl measures","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_5","Check":"REF. OF OCP/Objectives/MP","Type":"text","Value":"REF. OF","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_6","Check":"Additional risk control measures and scope for improvement to reduce the risk level (if psd score > 27)","Type":"text","Value":"ADDITIONAL RISKS","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]},{"SectionId":4,"SectionName":"Residual risk analysis","SectionType":"equation","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":4,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"4_1","Check":"RPN-2","Type":"equation","Value":8,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100},"EquationCheckConfiguration":{"Operator":"*","Left":{"Operator":"*","Left":{"Type":"variable","Name":"Probability","Value":2},"Right":{"Type":"variable","Name":"Severity","Value":2}},"Right":{"Type":"variable","Name":"Detection","Value":2}}},{"Id":"4_2","Check":"Major risk (Y/N)","Type":"radio","Value":{"OptionId":1,"OptionText":"Yes"},"IsMandatory":0,"CheckOptions":[{"OptionId":1,"OptionText":"Yes"},{"OptionId":2,"OptionText":"No"}],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]}]}}]}]},"TaskIds":[],"CommentRequest":{"Comment":"okookok","CommentedBy":1}}


[RISK ASSESSMENT] No reminder config present in request. Skipping reminder update.


Audit log sent successfully.


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692/Comments


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=1084&SiteId=872&SiteId=871&SiteId=1020&SiteId=875&SiteId=877


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessmentType/All


Request Body : {"orgId":387,"SiteId":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=HIRA&siteId=872


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692/Comment/1464/UploadCommentMedia


System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
   at System.IO.PathHelper.GetFullPathName()
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at System.Web.HttpPostedFile.SaveAs(String filename)
   at IncidentReporter.API.Helpers.AttachmentsHelper.SaveAttachment(Attachment attachment, String baseFolder, Int32 orgId) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 72
   at IncidentReporter.API.BLL.RiskAssessmentBLL.<UploadRiskAssessmentHistoryAttachments>d__10.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\RiskAssessmentBLL.cs:line 0


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=872


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/RiskAssessments/692/AssociatedTasks


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/tasks?OrgId=387&siteId=872&SortingColumn=TaskTitle&SortingOrder=asc


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/All


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/myHome_56983377-6846-4132-9e03-5c549fa571cc.jpg


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessmentType/210


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentLocations?isActive=1


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Users/1954/incidentsites?isActive=1


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Divisions


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/UserPreference


Request URL : https://api-qa-staging-2.oqsha.com/Resources/eng?orgId=387


Request URL : https://api-qa-staging-2.oqsha.com/AccessControl/Modules/387


Request URL : https://api-qa-staging-2.oqsha.com/Health


Request URL : https://api-qa-staging-2.oqsha.com/Resources/package-features-eng


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Modules


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Users/1954


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/User/1954/PTWCompany


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/AccessControl/Roles


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387


Request URL : https://api-qa-staging-2.oqsha.com/Assets/AssetTypes?orgId=387&SortingOrder=asc&SortingColumn=Name&userId=1954


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionStatus


Request URL : https://api-qa-staging-2.oqsha.com/Languages


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/PendingActionsNotifications


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/TTKe54e850aa12b4b5f830ce5eef42ebe6113210b00635094233a5fe45e2473a2bc7_8a928947-bcb6-41d0-ae2c-314a7206cbfe.png


Request URL : https://api-qa-staging-2.oqsha.com/UserModuleNotificationsCount?OrganisationId=387&currentUserId=1954


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/InspectionType/All


Request Body : {"OrgId":[387],"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Frequency"],"SortingOrder":["desc"],"SiteId":[513,510,514,512,515,516,517,518,519,520],"SaveStatus":""}


Request Body : {"OrgId":[387],"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Frequency"],"SortingOrder":["desc"],"SiteId":[],"SaveStatus":""}


Request Body : {"OrgId":[387],"PageNumber":2,"PageLimit":10,"SearchTerm":"","SortingColumn":["Frequency"],"SortingOrder":["desc"],"SiteId":[],"SaveStatus":""}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessmentType/All


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Users/1


Request Body : {"orgId":387,"SiteId":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692/Comments


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Company/All?IsActive=1


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/AccessControl/Roles


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/TaskCategories/Dropdown


Request URL : https://api-qa-staging-2.oqsha.com/attachments/users/profile_a39373bf-2abb-454d-9184-f7327694c75e.png


Request URL : https://api-qa-staging-2.oqsha.com/attachments/riskassessments/history/1Copy_f98cf0aa-107b-48e8-9012-401fb0457593.png


Request Body : {"SiteId":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=HIRA


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/Activities


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692


Request URL : https://api-qa-staging-2.oqsha.com/AppFilterUsers?Role=fieldStaff&OrgId=387


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown??ModuleName=Tasks&&siteId=1084&siteId=872&siteId=871&siteId=1020&siteId=875&siteId=877


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=HIRA&siteId=872


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=872


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/RiskAssessments/692/AssociatedTasks


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Tasks/List


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/tasks?OrgId=387&siteId=872&SortingColumn=TaskTitle&SortingOrder=asc


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments


Request URL : https://api-qa-staging-2.oqsha.com/Assets/AssetTypes?OrgId=387&SortingOrder=asc&SortingColumn=Name


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionType/1452


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessmentType/210


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/All


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionType/1452/Comments


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/InspectionType/All


Request Body : {"OrgId":[387],"PageNumber":2,"PageLimit":10,"SearchTerm":"","SortingColumn":["Frequency"],"SortingOrder":["desc"],"SiteId":[],"SaveStatus":""}


Request Body : {"OrgId":[387],"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Frequency"],"SortingOrder":["desc"],"SiteId":[],"SaveStatus":""}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/AccessControl/Roles


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692


Request Body : {"Title":"Hazard identification","SiteId":872,"RiskAssessmentTypeId":210,"AspectImpactId":"603","RiskAssessmentStatusId":933,"DepartmentId":91,"CompanyId":null,"NextRevisionDate":"2026-02-06T00:00:00.000Z","RevisionNumber":null,"Approvers":[{"AcmRoleId":0,"UserId":1,"IsApproved":true,"Sequence":0,"LevelOfApprover":"LevelOne","LevelOfApproverString":"LevelOne"},{"AcmRoleId":0,"UserId":2764,"IsApproved":true,"Sequence":0,"LevelOfApprover":"LevelOne","LevelOfApproverString":"LevelOne"}],"RiskAssessmentActivityConfig":{"RiskAssessmentId":692,"Activities":[{"Id":1829,"Name":"Hazard investigation check list","SubActivities":[{"Id":1881,"Name":"Hazard check","Configuration":{"Sections":[{"SectionId":1,"SectionName":"Hazard Indentification","SectionType":"text","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":1,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"1_1","Check":"Hazard Explanation","Type":"text","Value":"Hazard: Unguarded rotating machinery\nExplanation:\nRotating machinery without adequate guarding presents a mechanical hazard where moving parts can entangle clothing or body parts. This can result in severe injuries such as fractures, amputations, or fatalities. The hazard is heightened during maintenance or cleaning activities if lockout/tagout procedures are not followed.","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":true,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"1_2","Check":"Routine/Non-Routine","Type":"select","Value":{"OptionId":2,"OptionText":"Non-Routine"},"IsMandatory":0,"CheckOptions":[{"OptionId":1,"OptionText":"Routine"},{"OptionId":2,"OptionText":"Non-Routine"}],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]},{"SectionId":2,"SectionName":"Hazards","SectionType":"checkbox","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":2,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"2_1","Check":"Mechanical Hazard","Type":"checkbox","Value":true,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"2_2","Check":"Physical Hazard","Type":"checkbox","Value":false,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"2_3","Check":"Ergonomic hazard","Type":"checkbox","Value":true,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"2_4","Check":"Any Other hazard","Type":"checkbox","Value":false,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]},{"SectionId":3,"SectionName":"Risk Analysis","SectionType":"equation","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":3,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"3_1","Check":"RPN","Type":"equation","Value":40,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100},"EquationCheckConfiguration":{"Operator":"*","Left":{"Operator":"*","Left":{"Type":"variable","Name":"Probability","Value":2},"Right":{"Type":"variable","Name":"Severity","Value":2}},"Right":{"Type":"variable","Name":"Detection","Value":10}}},{"Id":"3_2","Check":"Major risk (Y/N)","Type":"radio","Value":{"OptionId":1,"OptionText":"Yes"},"IsMandatory":0,"CheckOptions":[{"OptionId":1,"OptionText":"Yes"},{"OptionId":2,"OptionText":"No"}],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_3","Check":"Existing Risk Control Measures","Type":"text","Value":"Existing risk control measures","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_4","Check":"Hierarchy Of Risk Control Measures","Type":"text","Value":"Hierarchy of risk contrl measures","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_5","Check":"REF. OF OCP/Objectives/MP","Type":"text","Value":"REF. OF","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}},{"Id":"3_6","Check":"Additional risk control measures and scope for improvement to reduce the risk level (if psd score > 27)","Type":"text","Value":"ADDITIONAL RISKS","IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]},{"SectionId":4,"SectionName":"Residual risk analysis","SectionType":"equation","MandatoryChecksCount":0,"OrganisationId":387,"Status":1,"Rank":4,"AllowAttachments":false,"FileUploadControl":{"IsCameraAllowed":false,"IsImageUploadAllowed":false,"IsVideoUploadAllowed":false,"IsAudioUploadAllowed":false,"IsFileUploadAllowed":false},"Checks":[{"Id":"4_1","Check":"RPN-2","Type":"equation","Value":8,"IsMandatory":0,"CheckOptions":[],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100},"EquationCheckConfiguration":{"Operator":"*","Left":{"Operator":"*","Left":{"Type":"variable","Name":"Probability","Value":2},"Right":{"Type":"variable","Name":"Severity","Value":2}},"Right":{"Type":"variable","Name":"Detection","Value":2}}},{"Id":"4_2","Check":"Major risk (Y/N)","Type":"radio","Value":{"OptionId":1,"OptionText":"Yes"},"IsMandatory":0,"CheckOptions":[{"OptionId":1,"OptionText":"Yes"},{"OptionId":2,"OptionText":"No"}],"CheckConfiguration":{"Validations":{"Required":false,"RequiredMessage":"This field is required","MinLength":null,"MinLengthMessage":null,"MaxLength":null,"MaxLengthMessage":null,"Min":null,"MinMessage":null,"Max":null,"MaxMessage":null,"Pattern":null,"PatternMessage":null},"Placeholder":"","DisplayOrientation":"vertical","ConditionalRules":[],"Multiselect":false,"FloatingLabel":false,"ReadOnly":false},"LayoutMetadata":{"RowNumber":0,"ColumnOrder":0,"WidthPercentage":100}}],"IsMainSection":false,"AllowTaskAssociation":false,"IsMandatoryAttachment":false,"IsSectionTable":false,"SectionFiles":[],"ConditionalRules":[]}]}}]}]},"TaskIds":[],"CommentRequest":{"Comment":"okokk","CommentedBy":1}}


[RISK ASSESSMENT] No reminder config present in request. Skipping reminder update.


Audit log sent successfully.


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692/Comments


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=1084&SiteId=872&SiteId=871&SiteId=1020&SiteId=875&SiteId=877


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessmentType/All


Request Body : {"orgId":387,"SiteId":[]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=HIRA&siteId=872


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/692/Comment/1465/UploadCommentMedia


The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SortingColumn=Name&SortingOrder=Asc&SiteId=872


Request URL : http://localhost:9092/OsmoVisionIncident


Request Values read: AssetUid = 00000016, IncidentDescription = 00000016:
  Unknown-62259: NO-Hardhat, NO-Safety Vest


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/RiskAssessments/692/AssociatedTasks


Pushing Assigned to Notification object to NSQ


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44923},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44923},{"Key":"AssignedToID", "Value":2815}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44923},{"Key":"AssignedToID", "Value":1761}]}


Immediate notifications not found. Disposing the notification object.


Pushing New Incident Notification object to NSQ


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44923}]}


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


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/tasks?OrgId=387&siteId=872&SortingColumn=TaskTitle&SortingOrder=asc


Audit log sent successfully.


OsmoVision Webhook Incident is created. Incident Id = 44923


Attachment count : 1;


Validating attachment : combined_20260210_055155_436309_f12702960.jpg;


Attachments updated for the incident Id = 44923


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/myHome_56983377-6846-4132-9e03-5c549fa571cc.jpg


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessment/All


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/RiskAssessmentType/210


Request URL : http://localhost:9092/OsmoVisionIncident


Request Values read: AssetUid = OSMCAM001, IncidentDescription = OSMCAM001:
  Unknown-62257: NO-Hardhat
  Unknown-62258: NO-Hardhat, NO-Safety Vest
  Unknown-62260: NO-Hardhat, NO-Safety Vest
  Unknown-62261: NO-Hardhat
  Unknown-62262: NO-Hardhat
  Unknown-62263: NO-Hardhat


Pushing Assigned to Notification object to NSQ


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44924},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44924},{"Key":"AssignedToID", "Value":2815}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44924},{"Key":"AssignedToID", "Value":1761}]}


Immediate notifications not found. Disposing the notification object.


Pushing New Incident Notification object to NSQ


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44924}]}


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


Audit log sent successfully.


OsmoVision Webhook Incident is created. Incident Id = 44924


Attachment count : 6;


Validating attachment : combined_20260210_055136_196715_f12515742.jpg;


Validating attachment : combined_20260210_055155_874448_f12516037.jpg;


Validating attachment : combined_20260210_055214_559163_f12516318.jpg;


Attachments updated for the incident Id = 44924


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/myHome_56983377-6846-4132-9e03-5c549fa571cc.jpg


Request Values read: AssetUid = 00000016, IncidentDescription = 00000016:
  Unknown-62264: NO-Hardhat
  Unknown-62266: NO-Hardhat


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44925},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44925},{"Key":"AssignedToID", "Value":2815}]}


Pushing Assigned to Notification object to NSQ


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44925},{"Key":"AssignedToID", "Value":1761}]}


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44925}]}


OsmoVision Webhook Incident is created. Incident Id = 44925


Attachment count : 2;


Validating attachment : combined_20260210_055216_285414_f12703444.jpg;


Validating attachment : combined_20260210_055252_464191_f12704444.jpg;


Attachments updated for the incident Id = 44925


Request URL : http://localhost:9092/OsmoVisionIncident


Request Values read: AssetUid = OSMCAM001, IncidentDescription = OSMCAM001:
  Unknown-62265: NO-Hardhat, NO-Safety Vest


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44926},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44926},{"Key":"AssignedToID", "Value":2815}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44926},{"Key":"AssignedToID", "Value":1761}]}


Immediate notifications not found. Disposing the notification object.


Pushing New Incident Notification object to NSQ


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44926}]}


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


Audit log sent successfully.


OsmoVision Webhook Incident is created. Incident Id = 44926


Attachment count : 1;


Validating attachment : combined_20260210_055235_628238_f12516610.jpg;


Attachments updated for the incident Id = 44926


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/myHome_56983377-6846-4132-9e03-5c549fa571cc.jpg


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Users/1


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Categories


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?siteId=1084&siteId=872&siteId=871&siteId=1020&siteId=875&siteId=877


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=Incident Management&siteId=1084&siteId=872&siteId=871&siteId=1020&siteId=875&siteId=877


Request Body : {"SiteId":[1084,872,871,1020,875,877]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Firs


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Investigation/Categories


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Investigation/Statuses


Request Body : {}


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/AccessControl/Roles


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/ProcessLists


Request URL : http://localhost:9092/OsmoVisionIncident


Request Values read: AssetUid = 00000016, IncidentDescription = 00000016:
  Unknown-62269: NO-Hardhat
  Unknown-62270: NO-Hardhat
  Unknown-62274: NO-Hardhat, NO-Mask


Pushing Assigned to Notification object to NSQ


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44927},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44927},{"Key":"AssignedToID", "Value":2815}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44927},{"Key":"AssignedToID", "Value":1761}]}


Immediate notifications not found. Disposing the notification object.


Pushing New Incident Notification object to NSQ


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44927}]}


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


Audit log sent successfully.


OsmoVision Webhook Incident is created. Incident Id = 44927


Attachment count : 3;


Validating attachment : combined_20260210_055313_995336_f12704894.jpg;


Validating attachment : combined_20260210_055333_754580_f12705399.jpg;


Attachments updated for the incident Id = 44927


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/myHome_56983377-6846-4132-9e03-5c549fa571cc.jpg


Request Values read: AssetUid = OSMCAM001, IncidentDescription = OSMCAM001:
  Unknown-62267: NO-Hardhat, NO-Safety Vest
  Unknown-62268: NO-Hardhat, NO-Mask, NO-Safety Vest
  Unknown-62271: NO-Hardhat, NO-Safety Vest
  Unknown-62272: NO-Hardhat, NO-Safety Vest
  Unknown-62273: NO-Hardhat, NO-Safety Vest


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44928},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44928},{"Key":"AssignedToID", "Value":2815}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44928},{"Key":"AssignedToID", "Value":1761}]}


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44928}]}


OsmoVision Webhook Incident is created. Incident Id = 44928


Attachment count : 5;


Validating attachment : combined_20260210_055255_254237_f12516886.jpg;


Validating attachment : combined_20260210_055314_712841_f12517166.jpg;


Attachments updated for the incident Id = 44928


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionType


Sanitized JSON passed validation: {
  "Sections": [
    {
      "SectionId": 1,
      "SectionName": "Inspection checks",
      "SectionType": "text",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 1,
      "AllowAttachments": true,
      "FileUploadControl": {
        "IsCameraAllowed": true,
        "IsImageUploadAllowed": true,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": false
      },
      "Checks": [
        {
          "Id": "1_1",
          "Check": "Contractor name",
          "Type": "text",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "1_2",
          "Check": "Company name",
          "Type": "text",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "1_3",
          "Check": "Asset identification number",
          "Type": "text",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "1_4",
          "Check": "Frequency",
          "Type": "select",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Weekly"
            },
            {
              "OptionId": 2,
              "OptionText": "Monthly"
            },
            {
              "OptionId": 3,
              "OptionText": "Querterly"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "IsMandatoryAttachment": true,
      "IsSectionTable": false,
      "ConditionalRules": []
    },
    {
      "SectionId": 2,
      "SectionName": "Equipment Status",
      "SectionType": "radio",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 2,
      "AllowAttachments": true,
      "FileUploadControl": {
        "IsCameraAllowed": true,
        "IsImageUploadAllowed": true,
        "IsVideoUploadAllowed": true,
        "IsAudioUploadAllowed": true,
        "IsFileUploadAllowed": true
      },
      "Checks": [
        {
          "Id": "2_1",
          "Check": "Equipment Status at Site",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "In Site"
            },
            {
              "OptionId": 2,
              "OptionText": "Out of Site"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "vertical"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "2_2",
          "Check": "Equipment Usage Status",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "In Usage"
            },
            {
              "OptionId": 2,
              "OptionText": "Out of Usage"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "vertical"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "ConditionalRules": []
    },
    {
      "SectionId": 3,
      "SectionName": "Check Points",
      "SectionType": "radio",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 3,
      "AllowAttachments": true,
      "FileUploadControl": {
        "IsCameraAllowed": true,
        "IsImageUploadAllowed": true,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": true
      },
      "Checks": [
        {
          "Id": "3_1",
          "Check": "1.Is the chain pulley block is good condition & working with TPI?",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "3_2",
          "Check": "2.Is the chain is free from corrosion, defects, cracks, damage etc?",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "3_3",
          "Check": "3.Is the hook point is in good condition?                                                     (not stretched more than 15% of its original shape)",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "3_4",
          "Check": "4.Are safety latch is working condition and placed into hook?",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "3_5",
          "Check": "5.Is SWL (safe working load) is marked and visible?",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "3_6",
          "Check": "6.Is all the rotating parts are covered?",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "3_7",
          "Check": "7.Is sufficient lubrication has done?",
          "Type": "radio",
          "Value": "",
          "IsMandatory": 0,
          "CheckOptions": [
            {
              "OptionId": 1,
              "OptionText": "Yes"
            },
            {
              "OptionId": 2,
              "OptionText": "No"
            },
            {
              "OptionId": 3,
              "OptionText": "N/A"
            }
          ],
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "horizontal"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "ConditionalRules": []
    },
    {
      "SectionId": 4,
      "SectionName": "Signatures",
      "SectionType": "signature",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 4,
      "AllowAttachments": false,
      "FileUploadControl": {
        "IsCameraAllowed": false,
        "IsImageUploadAllowed": false,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": false
      },
      "Checks": [
        {
          "Id": "4_1",
          "Check": "Inspected",
          "Type": "signature",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "SignatureConfiguration": {
            "Labels": "Inspected",
            "Declaration": "",
            "SignedUserId": 0,
            "SignedUserName": "",
            "SignedDateAndTime": "",
            "SignedAcmRoleId": 541,
            "DepartmentId": null,
            "IsRejected": false,
            "InspectionStatusId": 0,
            "InspectionStatusName": "",
            "IsAssignedToMandatory": false
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "4_2",
          "Check": "Checked",
          "Type": "signature with approval",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "SignatureConfiguration": {
            "Labels": "Checked",
            "Declaration": "",
            "SignedUserId": 0,
            "SignedUserName": "",
            "SignedDateAndTime": "",
            "SignedAcmRoleId": 545,
            "DepartmentId": null,
            "IsRejected": false,
            "InspectionStatusId": 0,
            "InspectionStatusName": "",
            "IsAssignedToMandatory": false
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "4_3",
          "Check": "Verified",
          "Type": "signature with approval",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "SignatureConfiguration": {
            "Labels": "Verified",
            "Declaration": "",
            "SignedUserId": 0,
            "SignedUserName": "",
            "SignedDateAndTime": "",
            "SignedAcmRoleId": 540,
            "DepartmentId": null,
            "IsRejected": false,
            "InspectionStatusId": 0,
            "InspectionStatusName": "",
            "IsAssignedToMandatory": false
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        },
        {
          "Id": "4_4",
          "Check": "Approved",
          "Type": "signature with approval",
          "Value": "",
          "IsMandatory": 0,
          "CheckConfiguration": {
            "Validations": {
              "Required": false,
              "RequiredMessage": "This field is required",
              "MinLength": null,
              "MinLengthMessage": null,
              "MaxLength": null,
              "MaxLengthMessage": null,
              "Min": null,
              "MinMessage": null,
              "Max": null,
              "MaxMessage": null,
              "Pattern": null,
              "PatternMessage": null
            },
            "Placeholder": "",
            "DisplayOrientation": "vertical",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "SignatureConfiguration": {
            "Labels": "Approved",
            "Declaration": "",
            "SignedUserId": 0,
            "SignedUserName": "",
            "SignedDateAndTime": "",
            "SignedAcmRoleId": 541,
            "DepartmentId": null,
            "IsRejected": false,
            "InspectionStatusId": 0,
            "InspectionStatusName": "",
            "IsAssignedToMandatory": false
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "ConditionalRules": []
    }
  ]
}


Audit log sent successfully.


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionType/1468/Associateddocument


Attachment count : 1;


Validating attachment : Flame.jpg;


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/InspectionType/All


Request Body : {"OrgId":[387],"PageNumber":1,"PageLimit":10,"SearchTerm":"","SortingColumn":["Frequency"],"SortingOrder":["desc"],"SiteId":[],"SaveStatus":""}


Request URL : https://api-qa-staging-2.oqsha.com/Assets/AssetTypes?OrgId=387&SortingOrder=Asc&SortingColumn=Name&userId=1


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionStatus


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SiteId=1084&SortingColumn=Name&SortingOrder=Asc


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/InspectionType/All?siteId=1084


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Assets/DropDown


Request Body : {"AssetTypeId":112,"SiteId":1084,"CompanyId":491}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Users/AssetTypes/112?siteId=1084


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/InspectionType/All?siteId=1084&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionType/1468


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?siteId=872


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/FieldStaffAndAppUsers?SiteIds=872


Request URL : https://api-qa-staging-2.oqsha.com/Assets?orgId=387&LocationId=872&isActive=true


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Categories


Request Body : {"SiteId":[872]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?SortingColumn=Name&SortingOrder=Asc


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/UserDetails


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Incident/Category/19


Request URL : https://api-qa-staging-2.oqsha.com/Users


Request Body : {"OrgId":[387],"RoleId":[540],"LocationId":[872],"SortingColumn":["DisplayName"],"SortingOrder":["asc"],"PageSize":1000,"PageNumber":1,"IsActive":true}


Request Body : {"OrgId":[387],"RoleId":[545],"LocationId":[872],"SortingColumn":["DisplayName"],"SortingOrder":["asc"],"PageSize":1000,"PageNumber":1,"IsActive":true}


Request Body : {"OrgId":[387],"RoleId":[541],"LocationId":[872],"SortingColumn":["DisplayName"],"SortingOrder":["asc"],"PageSize":1000,"PageNumber":1,"IsActive":true}


Request URL : http://localhost:9092/OsmoVisionIncident


Request Values read: AssetUid = OSMCAM001, IncidentDescription = OSMCAM001:
  Unknown-21729: NO-Hardhat
  Unknown-62275: NO-Hardhat, NO-Mask
  Unknown-62276: NO-Safety Vest
  Unknown-62277: NO-Hardhat, NO-Mask, NO-Safety Vest
  Unknown-62278: NO-Hardhat, NO-Mask, NO-Safety Vest
  Unknown-62279: NO-Hardhat


Pushing Assigned to Notification object to NSQ


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44929},{"Key":"AssignedToID", "Value":2355}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44929},{"Key":"AssignedToID", "Value":2815}]}


NotificationObject: {"EventName":"ASSIGNED_TO_NOTIFICATION", "EventArgs":[{"Key":"AssignedIncidentID", "Value":44929},{"Key":"AssignedToID", "Value":1761}]}


Immediate notifications not found. Disposing the notification object.


Pushing New Incident Notification object to NSQ


NotificationObject: {"EventName":"NEW_INCIDENT", "EventArgs":[{"Key":"IncidentID", "Value":44929}]}


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


Audit log sent successfully.


OsmoVision Webhook Incident is created. Incident Id = 44929


Attachment count : 6;


Validating attachment : combined_20260210_055336_785076_f12517444.jpg;


Validating attachment : combined_20260210_055356_032431_f12517759.jpg;


Validating attachment : combined_20260210_055415_085223_f12518034.jpg;


Attachments updated for the incident Id = 44929


Request URL : https://api-qa-staging-2.oqsha.com/attachments/organisations/myHome_56983377-6846-4132-9e03-5c549fa571cc.jpg


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/InspectionFileUpload


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=app-Inspection&SiteId=1084&RoleId=540&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=app-Inspection&SiteId=1084&RoleId=541&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=app-Inspection&SiteId=1084&RoleId=545&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/FileUpload


System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at System.Web.HttpPostedFile.SaveAs(String filename)
   at IncidentReporter.API.Helpers.AttachmentsHelper.SaveFile(Object fileData, String targetFolder, String fileName) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 302
   at IncidentReporter.API.Helpers.AttachmentsHelper.ProcessUploadedFiles(HttpRequest request, String baseTargetFolder, String basePath, List`1 uploadedFiles) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 244
   at IncidentReporter.API.BLL.IncidentManagementBLL.<UploadFiles>d__64.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentManagementBLL.cs:line 5050


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Incident


Sanitized JSON passed validation: {
  "Sections": [
    {
      "SectionId": 1,
      "SectionName": "Photograph of the incident",
      "SectionType": "file",
      "MandatoryChecksCount": 0,
      "OrganisationId": 387,
      "Status": 1,
      "Rank": 1,
      "AllowAttachments": true,
      "FileUploadControl": {
        "IsCameraAllowed": true,
        "IsImageUploadAllowed": true,
        "IsVideoUploadAllowed": true,
        "IsAudioUploadAllowed": true,
        "IsFileUploadAllowed": true
      },
      "Checks": [
        {
          "Id": 1,
          "Check": "Attach",
          "Type": "file",
          "Value": "0",
          "IsMandatory": 0
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "SectionFiles": []
    },
    {
      "SectionId": 2,
      "SectionName": "Immediate corrective steps taken",
      "SectionType": "checkbox",
      "MandatoryChecksCount": 0,
      "OrganisationId": 387,
      "Status": 1,
      "Rank": 2,
      "AllowAttachments": false,
      "FileUploadControl": {
        "IsCameraAllowed": false,
        "IsImageUploadAllowed": false,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": false
      },
      "Checks": [
        {
          "Id": 1,
          "Check": "Actions",
          "Type": "checkbox",
          "Value": 0,
          "IsMandatory": 0
        },
        {
          "Id": 2,
          "Check": "Responsibility",
          "Type": "freetext",
          "Value": "",
          "IsMandatory": 0
        },
        {
          "Id": 3,
          "Check": "Status",
          "Type": "checkbox",
          "Value": 0,
          "IsMandatory": 0
        },
        {
          "Id": 4,
          "Check": "Completion date",
          "Type": "date",
          "Value": "0",
          "IsMandatory": 0
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "IsMandatoryAttachment": false,
      "IsSectionTable": true,
      "TableConfig": {
        "CheckConfiguration": {
          "columnsItems": [
            {
              "field": "check_1",
              "header": "Actions",
              "type": "checkbox",
              "editable": true,
              "required": false
            },
            {
              "field": "check_2",
              "header": "Responsibility",
              "type": "freetext",
              "editable": true,
              "required": false
            },
            {
              "field": "check_3",
              "header": "Status",
              "type": "checkbox",
              "editable": true,
              "required": false
            },
            {
              "field": "check_4",
              "header": "Completion date",
              "type": "date",
              "editable": true,
              "required": false
            }
          ]
        },
        "Rows": [
          {
            "check_1": false,
            "check_2": "",
            "check_3": false,
            "check_4": null
          }
        ]
      },
      "SectionFiles": []
    }
  ]
}


Pushing Incident Submitted Notification Event to NSQ


NotificationObject: {"EventName":"INCIDENT_SUBMITTED_NOTIFICATION", "EventArgs":[{"Key":"UserId", "Value":"1954"},{"Key":"IncidentId", "Value":"1628"},{"Key":"OrgId", "Value":"387"},{"Key":"InjuredCount", "Value":"0"}]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Users/1


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Statuses


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Categories


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments?siteId=1084&siteId=872&siteId=871&siteId=1020&siteId=875&siteId=877


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=Incident Management&siteId=1084&siteId=872&siteId=871&siteId=1020&siteId=875&siteId=877


Request Body : {"SiteId":[1084,872,871,1020,875,877]}


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/IncidentManagement/Firs


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Departments


Request URL : https://api-qa-staging-2.oqsha.com/CheckTypes


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/AccessControl/Roles


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Audit/Types/1052


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=app-Inspection&SiteId=1084&RoleId=545&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=app-Inspection&SiteId=1084&RoleId=540&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisation/387/Users/DropDown?ModuleName=app-Inspection&SiteId=1084&RoleId=541&AssetTypeId=112


Request URL : https://api-qa-staging-2.oqsha.com/Organisations/387/Inspection