Add content endpoints returns Internal Server Error when mandatory column field is missing in request body

Pawel Bartkowiak
2026-04-01T18:32:10Z

If a mandatory field specified in the "columns" array (e.g., "SaturationFunctionSetID") is omitted from the corresponding data rows, the API responds with an Internal Server Error (HTTP 500).

Expected behavior: status code 422 as it used to be.

Issue is generic and reproducible for all checked schemas:

* Samples Analysis
* Simulation Rock Physics
* Saturation Function Set

This is very recent regression.

Exemplary json body to reproduce:

```postman_json
{
"columns":[
"SaturationFunctionSetID", <-- delete this column and corresponding value
"Meta",
"RelativePermeabilityFunctions",
"CapillaryPressureFunctions"
],
```

Reproducible also with following postman tests:

* v2 / Simulation Rock Physics / Negative / Add data / 10 - Mandatory field ReservoirSimulationRockPhysicsID
* v2 / Simulation Rock Physics / Negative / Add data / 11 - Mandatory field Compressibility
* v2 / Saturation Function Set / Negative / Add data / 11 - Mandatory field SaturationFunctionSetID