Open dubdabasoduba opened 4 weeks ago
@dubdabasoduba are you able to share the csv or the record or something that can help me recreate this?
@dubdabasoduba the error above is brought by a check in the build_assign_payload
function here
What it basically tries to do is figure out if we need to create a new List resource or update an existing one by checking how many List resources have the subject = the location resource. For this check we use the url https://some-project.smartregister.org/fhir/List/_search?_count=1&subject=Location/some-location-uuid
If the response has:
Should this be working differently?
@Wambere I think it should work the same way but in this case it stopped the whole upload after throwing the error. Does option 3 anything else mean the server check failed?
Yes, it means multiple List resources were found with the same subject Location I can update the script to simply log the error and continue. But that would just mean that none of these will be linked to the Location, that part of the process would be skipped
Let me check the location and figure out why it has two lists. I think that's a bug either on the web or tooling.
any update on this?
Context.
List.subject
Acceptance Criteria
extract info