Description

Post:

{
  "jobId": "685b12ad6765a5c9fefad260",
  "stepId": "a991",
  "key": "output-otem-job2",
"data": {
      "Type": "Simple Report",
      "TestName": "EditorClientBoot",
      "Description": "Win64 Development CookedEditor",
      "ReportCreatedOn": "6/24/2025 8:29:58 AM",
      "TotalDurationSeconds": 92.57633,
      "HasSucceeded": true,
      "Status": "Passed",
      "BuildChangeList": 1234,
      "MainRole": {
        "Type": "CookedEditor",
        "Platform": "Win64",
        "Configuration": "Development"
      },
      "Roles": [
        {
          "Type": "CookedEditor",
          "Platform": "Win64",
          "Configuration": "Development"
        }
      ],
      "TestResult": "Passed",
      "Logs": [
        "Attached Log for device LocalDevice0: CookedEditor/CookedEditorOutput.log"
      ],
      "Errors": [],
      "Warnings": [],
      "Version": 1,
      "Metadata": {
        "Platform": "Win64",
        "BuildTarget": "CookedEditor",
        "Configuration": "Development",
        "Project": "TestDataset"
      }
    }
}

Error:
"time": "2025-06-24T21:32:11",
"level": "Error",
"message": "Unhandled exception: .NET type System.Text.Json.JsonElement cannot be mapped to a BsonValue.",
"format": "Unhandled exception:

{Message}

",
"properties":

{ "Message": ".NET type System.Text.Json.JsonElement cannot be mapped to a BsonValue." }

,
"exception":

{ "message": ".NET type System.Text.Json.JsonElement cannot be mapped to a BsonValue.", "trace": " at MongoDB.Bson.BsonTypeMapper.MapToBsonValue(Object value)\r\n at MongoDB.Bson.BsonDocument.AddRange(IEnumerable`1 dictionary)\r\n at MongoDB.Bson.BsonDocument.AddRange(Dictionary`2 dictionary)\r\n at MongoDB.Bson.BsonDocument..ctor(Dictionary`2 dictionary)\r\n at HordeServer.Jobs.TestData.TestDataController.CreateAsync(CreateTestDataRequest request) in D:\\p4\\fnmain\\Engine\\Source\\Programs\\Horde\\Plugins\\Build\\HordeServer.Build\\Jobs\\TestData\\TestDataController.cs:line 378\r\n ...", "innerExceptions": [] }

}

Steps to Reproduce

1. Post JSON data to the v1/testdata api with valid json body from HORDE_URL/swagger/index.html
2. Exception occurs instantly

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-298366 in the post.

0
Login to Vote

Unresolved
CreatedJun 24, 2025
UpdatedJun 24, 2025
View Jira Issue