Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

424 Dependency Failed when updating search parameter #3608

Open
liamwilson-kainos opened this issue Dec 1, 2023 · 8 comments
Open

424 Dependency Failed when updating search parameter #3608

liamwilson-kainos opened this issue Dec 1, 2023 · 8 comments
Labels
Bug Bug bug bug. VSTS-Backlog On VSTS Backlog

Comments

@liamwilson-kainos
Copy link

liamwilson-kainos commented Dec 1, 2023

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!

@liamwilson-kainos liamwilson-kainos added the Question Issue is a question? label Dec 1, 2023
@feordin
Copy link
Contributor

feordin commented Dec 1, 2023

I did try a PUT of {{fhirHost}}/SearchParameter/location-operational-status with the above SearchParameter but entered my own URL in the URL field and that worked. I was not able to reproduce the same error. I know you have omitted the URL, but if you are willing to share I will try with the same URL value.

@liamwilson-kainos
Copy link
Author

Hi @feordin - thanks for replying! Unfortunately I cannot share that and it is secured against public internet access.

Interestingly, this request was working fine but then we started experiencing this error.

We have also tried, deleting the search parameter, reindexing and then adding again.

@liamwilson-kainos
Copy link
Author

@feordin - I believe this could be happening after a deletion - e.g.

DELETE {fhirServer}/SearchParameter/location-operational-status

and then trying the same PUT request again straight afterwards

@EXPEkesheth
Copy link
Collaborator

@liamwilson-kainos are you still facing the issue ?

@liamwilson-kainos
Copy link
Author

Hi @EXPEkesheth - yes still experiencing the issue. Thanks!

@EXPEkesheth
Copy link
Collaborator

Thanks ! Can you please provide the repro steps? Do you experience the issue when you do PUT after deleting search parameter?

@liamwilson-kainos
Copy link
Author

Hi @EXPEkesheth - yes that is correct! The steps are

  1. PUT request to {fhirHost}}/SearchParameter/location-operational-status with body mentioned above
  2. DELETE request to {fhirHost}}/SearchParameter/location-operational-status
  3. Second PUT request to {fhirHost}}/SearchParameter/location-operational-status with body mentioned above

@EXPEkesheth EXPEkesheth added Bug Bug bug bug. VSTS-Backlog On VSTS Backlog and removed Question Issue is a question? labels Jan 24, 2024
@EXPEkesheth
Copy link
Collaborator

Slotted in our current plan to investigate the issue. We will respond to this thread post investigation.
#114334

@EXPEkesheth EXPEkesheth added VSTS-Current We are working on this item in the current sprint and removed VSTS-Backlog On VSTS Backlog labels Feb 5, 2024
@EXPEkesheth EXPEkesheth added VSTS-Backlog On VSTS Backlog and removed VSTS-Current We are working on this item in the current sprint labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug bug bug. VSTS-Backlog On VSTS Backlog
Projects
None yet
Development

No branches or pull requests

3 participants