microsoft / microsoft/fhir-server

424 Dependency Failed when updating search parameter

Open
#3,608 8 comments 0 reactions 0 assignees View on GitHub
Bug VSTS-Backlog
Dominant language
TSQL
Stars
1.4k
Forks
592
Avg merge
2d 7h
Merged PRs (30d)
41

Description

Hi, I am having issues updating a Search Parameter and would appreciate any advice please -

`PUT` request to `{{fhirHost}}/SearchParameter/location-operational-status`

with body

```
{
"resourceType" : "SearchParameter",
"id" : "location-operational-status",
"url" : "omitted/SearchParameter/LocationOperationalStatus",
"name" : "location-operational-status",
"status" : "active",
"date" : "2023-08-29",
"publisher" : "omitted",
"contact" : [
{
"name" : "omitted"
}
],
"description" : "Returns Location resources with a specified operational status.",
"code" : "operational-status",
"base" : [
"Location"
],
"type" : "token",
"expression": "operationalStatus"
}
```

Response

424 Dependency Failed

```
{
"resourceType": "OperationOutcome",
"id": "1ed96ab150ce36ccbaefe550d95ff00a",
"meta": {
"lastUpdated": "2023-12-01T15:32:49.8003786+00:00"
},
"issue": [
{
"severity": "error",
"code": "exception",
"diagnostics": "An error occurred updating the custom search parameter. The issue must be resolved and the update resubmitted to be applied."
},
{
"severity": "error",
"code": "exception",
"diagnostics": "Value cannot be null. (Parameter 'key')"
}
]
}
```

Thank you!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the PUT request to /SearchParameter/location-operational-status with the supplied SearchParameter body and inspect the returned OperationOutcome. Trace the custom search-parameter update entry point to determine why the key is null; done means the request updates successfully without the 424 response.

Written by the indexing model from the issue text.

Assessment

Domain
api, backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.