Column 'name' cannot be null

MySql.Data.MySqlClient.MySqlException (0x80004005): Column 'name' 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.ExecuteScalar()
   at System.Data.Common.DbCommand.ExecuteScalarAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Dapper.SqlMapper.<ExecuteScalarImplAsync>d__66`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.DAL.Repositories.InspectionsRepo.<CreateInspection>d__25.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\InspectionsRepo.cs:line 791
--- 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.InspectionsBLL.<CreateInspection>d__7.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\InspectionsBLL.cs:line 287


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


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


Request Body : {}


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


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/Organisations/387/Users/1


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


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


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


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/Modules


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


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/Organisations/387/User/1/Dashboards


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


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


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


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


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


Request Body : {"OrgId":[387],"RoleId":[541],"LocationId":[872],"SortingColumn":["DisplayName"],"SortingOrder":["asc"]}


Request Body : {"OrgId":[387],"RoleId":[540],"LocationId":[872],"SortingColumn":["DisplayName"],"SortingOrder":["asc"]}


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


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


Request Body : {"SiteIds":[872],"WorkPermitTypeId":[],"DepartmentId":[],"WorkPermitStatusId":[],"FromDate":"2026-02-09","ToDate":"2026-03-12","Live":false,"Pending":false,"InitiatedBy":[]}


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


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


Sanitized JSON passed validation: {
  "Sections": [
    {
      "SectionId": 1,
      "SectionName": "New Section 1",
      "SectionType": "text",
      "MandatoryChecksCount": 0,
      "OrganisationId": null,
      "Status": 1,
      "Rank": 1,
      "AllowAttachments": false,
      "FileUploadControl": {
        "IsCameraAllowed": false,
        "IsImageUploadAllowed": false,
        "IsVideoUploadAllowed": false,
        "IsAudioUploadAllowed": false,
        "IsFileUploadAllowed": false
      },
      "Checks": [
        {
          "Id": "1_1",
          "Check": "New check 1",
          "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",
            "Multiselect": false,
            "FloatingLabel": false,
            "ReadOnly": false,
            "ConditionalRules": [],
            "Alignment": "center"
          },
          "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/Audit/Types


Request Body : {"orgid":387,"OrganisationId":387,"SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"PageNumber":1,"PageSize":10,"SiteId":[1084,872,871,1020,875,1779,1782,877]}


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/Organisations/387/Users/1


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


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


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/Organisations/387/User/1/Dashboards


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


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


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


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


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/attachments/3/incidents/image_50623af6-99f5-4ef7-a5f4-8539262e5074.jpg


Request URL : https://api-qa-staging-2.oqsha.com/attachments/3/incidents/image_fc7c58c8-68f5-4094-8f8d-8f189b76247b.jpg


Request URL : https://api-qa-staging-2.oqsha.com/attachments/3/incidents/image1759165025038_9d974b5f-d0a9-452d-a73e-844bc6f70423.jpeg


Request URL : https://api-qa-staging-2.oqsha.com/attachments/3/incidents/image1759493369909_2750ee63-e458-4657-8e5a-e0b2c3440876.png


Request URL : https://api-qa-staging-2.oqsha.com/attachments/3/incidents/image1759493406550_44d655da-ebd1-449f-9936-74bdddd9e7b9.png


Request URL : https://api-qa-staging-2.oqsha.com/attachments/3/incidents/image1759493426410_8d48d6cb-61da-4797-94fd-8af78df9432d.png


Request URL : https://api-qa-staging-2.oqsha.com/attachments/3/incidents/image1759494981956_6ef63d0c-107e-429d-bf1f-504ac4e18a35.jpeg


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