Sanitized JSON passed validation: {
  "Sections": [
    {
      "SectionId": 1,
      "SectionName": "HIRA Docs Upload",
      "SectionType": "text",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 1,
      "AllowAttachments": true,
      "FileUploadControl": {
        "IsCameraAllowed": true,
        "IsImageUploadAllowed": true,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": true
      },
      "Checks": [
        {
          "Id": "1_1",
          "Check": "Comments(f any)",
          "Type": "text",
          "Value": null,
          "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",
            "ContinuousTableOrientation": null,
            "Multiselect": false,
            "ShouldReset": false,
            "FloatingLabel": false,
            "DisplayAsColumn": false,
            "DisplayInAssociatedInformation": false,
            "ShowNameInsteadOfUid": false,
            "DisplayAsAutoComplete": false,
            "DisplayAsFilter": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "ConditionalRulesMatchMode": "any",
            "VisibilityRules": [],
            "AccessControlRules": [],
            "DynamicLabels": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "AllowTaskAssociationV2": false,
      "DefaultActionTrackerCategoryId": null,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "IsContinuousSectionTable": false,
      "IsFishboneSection": false,
      "MaxRows": null,
      "RequiredRows": 1,
      "ConditionalRules": [],
      "VisibilityRules": [],
      "AccessControlRules": [],
      "LabelStyle": {
        "bold": false,
        "italic": false,
        "underline": false,
        "fontSizePx": 14,
        "textColor": "#111827",
        "backgroundColor": "transparent",
        "textAlign": "left"
      }
    },
    {
      "SectionId": 2,
      "SectionName": "SWMS Docs Upload",
      "SectionType": "text",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 2,
      "AllowAttachments": true,
      "FileUploadControl": {
        "IsCameraAllowed": true,
        "IsImageUploadAllowed": true,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": true
      },
      "Checks": [
        {
          "Id": "2_1",
          "Check": "Comments(f any)",
          "Type": "text",
          "Value": null,
          "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",
            "ContinuousTableOrientation": null,
            "Multiselect": false,
            "ShouldReset": false,
            "FloatingLabel": false,
            "DisplayAsColumn": false,
            "DisplayInAssociatedInformation": false,
            "ShowNameInsteadOfUid": false,
            "DisplayAsAutoComplete": false,
            "DisplayAsFilter": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "ConditionalRulesMatchMode": "any",
            "VisibilityRules": [],
            "AccessControlRules": [],
            "DynamicLabels": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "AllowTaskAssociationV2": false,
      "DefaultActionTrackerCategoryId": null,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "IsContinuousSectionTable": false,
      "IsFishboneSection": false,
      "MaxRows": null,
      "RequiredRows": 1,
      "ConditionalRules": [],
      "VisibilityRules": [],
      "AccessControlRules": [],
      "LabelStyle": {
        "bold": false,
        "italic": false,
        "underline": false,
        "fontSizePx": 14,
        "textColor": "#111827",
        "backgroundColor": "transparent",
        "textAlign": "left"
      }
    },
    {
      "SectionId": 3,
      "SectionName": "JSMS Docs Upload",
      "SectionType": "text",
      "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": "Comments(f any)",
          "Type": "text",
          "Value": null,
          "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",
            "ContinuousTableOrientation": null,
            "Multiselect": false,
            "ShouldReset": false,
            "FloatingLabel": false,
            "DisplayAsColumn": false,
            "DisplayInAssociatedInformation": false,
            "ShowNameInsteadOfUid": false,
            "DisplayAsAutoComplete": false,
            "DisplayAsFilter": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "ConditionalRulesMatchMode": "any",
            "VisibilityRules": [],
            "AccessControlRules": [],
            "DynamicLabels": [],
            "Alignment": "center"
          },
          "LayoutMetadata": {
            "RowNumber": 0,
            "ColumnOrder": 0,
            "WidthPercentage": 100
          }
        }
      ],
      "IsMainSection": false,
      "AllowTaskAssociation": false,
      "AllowTaskAssociationV2": false,
      "DefaultActionTrackerCategoryId": null,
      "IsMandatoryAttachment": false,
      "IsSectionTable": false,
      "IsContinuousSectionTable": false,
      "IsFishboneSection": false,
      "MaxRows": null,
      "RequiredRows": 1,
      "ConditionalRules": [],
      "VisibilityRules": [],
      "AccessControlRules": [],
      "LabelStyle": {
        "bold": false,
        "italic": false,
        "underline": false,
        "fontSizePx": 14,
        "textColor": "#111827",
        "backgroundColor": "transparent",
        "textAlign": "left"
      }
    }
  ]
}


Audit log sent successfully.


No changes detected for generic audit log - Module: 34, Entity: 203


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


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


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


Request Body : {"OrganisationId":256,"ModuleId":34,"EntityId":"203","EntityType":"RiskAssessmentType"}


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


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


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


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


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


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


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


Request Body : {"OrganisationId":256,"ModuleId":34,"EntityId":"126","EntityType":"RiskAssessmentType"}


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


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


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


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


Request URL : https://api-sandbox.oqsha.com/Modules/Version/All?Appversion=6.6.0


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&IsLatestVersion=true&IsOqsha=true


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


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


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


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?siteId=887&siteId=882&siteId=912&siteId=881&siteId=886&siteId=884&siteId=883&siteId=889&siteId=888&siteId=885


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Categories/All


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


Request Body : {"SiteIds":[887,882,912,881,886,884,883,889,888,885],"PageNumber":1,"PageLimit":1000,"UserId":267}


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


Request Body : {"SiteIds":[887],"PageNumber":1,"PageLimit":1000,"IsPublished":true,"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=87&EntityId=2319


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


Request URL : https://api-sandbox.oqsha.com/Packages/List


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


JWT.Exceptions.TokenExpiredException: Token has expired.
   at JWT.JwtValidator.Validate(String decodedPayload, String signature, String[] decodedSignatures)
   at JWT.JwtDecoder.Decode(JwtParts jwt, Byte[][] keys, Boolean verify)
   at JWT.Builder.JwtBuilder.Decode(String token)
   at IncidentReporter.API.Handlers.Authorise.DecodeToken(String token, String secret) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 112
   at IncidentReporter.API.Handlers.Authorise.OnActionExecuting(HttpActionContext actionContext) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Handlers\Authorise.cs:line 38


Request URL : https://api-sandbox.oqsha.com/favicon.ico


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


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


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


Request URL : https://api-sandbox.oqsha.com/Admin/Roles/1


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Categories/37


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/States/Startable


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations?Pagination=true&PageNumber=1&PageLimit=10&SortingColumn=CreatedOn&SortingOrder=desc&SearchTerm=


Request Body : {"Dimensions":{"CategoryTypeId":["37"]}}


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations?Pagination=true&PageNumber=1&PageLimit=10&SortingColumn=CreatedOn&SortingOrder=desc&SearchTerm=M


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations?Pagination=true&PageNumber=1&PageLimit=10&SortingColumn=CreatedOn&SortingOrder=desc&SearchTerm=MIRA


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


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisation/232


Request URL : https://api-sandbox.oqsha.com/Organisation/232/FieldstaffsStats


Request URL : https://api-sandbox.oqsha.com/Resources/PtwPreferenceDescriptions


Request URL : https://api-sandbox.oqsha.com/Organisation/232/DivisionStats


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


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


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


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


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/232/Divisions?OrgId=232


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


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


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


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


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


You are not part of the requested organisation UserId: 3, OrgId: 232, Module: Notifications


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


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/All?PageNumber=1&PageLimit=10&SearchTerm=&SortingColumn=PermitToWorkStartDate&SortingOrder=desc&IsAdminUser=true


You are not part of the requested organisation UserId: 3, OrgId: 232, Module: PermitToWork

Question: ?PageNumber=1&PageLimit=10&SearchTerm=&SortingColumn=PermitToWorkStartDate&SortingOrder=desc&IsAdminUser=true


You are not part of the requested organisation UserId: 3, OrgId: 232, Module: Tickets


Request URL : https://api-sandbox.oqsha.com/Admin/UpdateOrganisation/232


Audit log sent successfully.


Request URL : https://api-sandbox.oqsha.com/Packages/List


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations?Pagination=true&PageNumber=1&PageLimit=10&SortingColumn=CreatedOn&SortingOrder=desc&SearchTerm=MIRA


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


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


Request URL : https://api-sandbox.oqsha.com/Organisation/232/DivisionStats


Request URL : https://api-sandbox.oqsha.com/Organisation/232/FieldstaffsStats


Request URL : https://api-sandbox.oqsha.com/Resources/PtwPreferenceDescriptions


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisation/232


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


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/232/Divisions?OrgId=232


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


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


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


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


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


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


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


You are not part of the requested organisation UserId: 3, OrgId: 232, Module: Notifications


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


Request URL : https://api-sandbox.oqsha.com/Organisations/232/PermitToWork/All?PageNumber=1&PageLimit=10&SearchTerm=&SortingColumn=PermitToWorkStartDate&SortingOrder=desc&IsAdminUser=true


You are not part of the requested organisation UserId: 3, OrgId: 232, Module: Tickets


You are not part of the requested organisation UserId: 3, OrgId: 232, Module: PermitToWork

Question: ?PageNumber=1&PageLimit=10&SearchTerm=&SortingColumn=PermitToWorkStartDate&SortingOrder=desc&IsAdminUser=true


Request URL : https://api-sandbox.oqsha.com/Admin/UpdateOrganisation/232


Error occurred while updating dashboard details for OrgId: 232.

MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'created_by' cannot be null
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<ExecuteImplAsync>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.DAL.Repositories.WorkPermitRepo.<InsertWorkPermitStatusAsync>d__70.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\WorkPermitRepo.cs:line 2568
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at IncidentReporter.API.BLL.OrganisationBLL.<InsertDefaultModuleStatusesAsync>d__89.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OrganisationBLL.cs:line 16146
--- 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.OrganisationBLL.<UpdateDashboardDetails>d__34.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\OrganisationBLL.cs:line 1806


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/FileUpload


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


Pushing inspection v2 create notification events to NSQ


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


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Categories/All


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?siteId=887&siteId=882&siteId=912&siteId=881&siteId=886&siteId=884&siteId=883&siteId=889&siteId=888&siteId=885


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


Request Body : {"SiteIds":[887,882,912,881,886,884,883,889,888,885],"PageNumber":1,"PageLimit":1000,"UserId":267}


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


Request URL : http://api-sandbox.oqsha.com/robots.txt


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


Request Body : {"SiteIds":[887],"PageNumber":1,"PageLimit":1000,"IsPublished":true,"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/87/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=87&EntityId=2321


Request URL : https://api-sandbox.oqsha.com/favicon.ico


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