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

Re-index search data migration fails #8278

Open
euanmillar opened this issue Jan 2, 2025 · 1 comment
Open

Re-index search data migration fails #8278

euanmillar opened this issue Jan 2, 2025 · 1 comment
Assignees
Labels
Milestone

Comments

@euanmillar
Copy link
Collaborator

euanmillar commented Jan 2, 2025

In Somalia, the re-index search data migration failed in the search microservice because for some reason there is a null value in the Task extensions array.

The Task extensions array looks like this:

"extension": [
{
"url": "http://opencrvs.org/specs/extension/informants-signature",
"valueString": "/ocrvs/b7bd427e-ae9a-4c7c-a5b0-691e66b26d08.png"
},
{
"url": "http://opencrvs.org/specs/extension/contact-person-phone-number",
"valueString": "******"
},
null,
{
"url": "http://opencrvs.org/specs/extension/regLastUser",
"valueReference": {
"reference": "Practitioner/03044936-738e-4f45-a145-d2af4b82bba1"
}
},
{
"url": "http://opencrvs.org/specs/extension/regLastLocation",
"valueReference": {
"reference": "Location/a7ea1e4e-ea52-45e4-8ef4-bd5ce2434f7f"
}
},
{
"url": "http://opencrvs.org/specs/extension/regLastOffice",
"valueString": "Beledweyn CR Office (BW)",
"valueReference": {
"reference": "Location/6c8adfc2-783e-4afc-9225-337581c42d28"
}
}
]

While we are unsure how a null value could have entered the extensions array, a solution could just be to handle null values appropriately.

Occurs in 1.6.*

@euanmillar
Copy link
Collaborator Author

PR: #8279

@euanmillar euanmillar moved this from In Development to In Code Review in OpenCRVS Core Jan 2, 2025
@rikukissa rikukissa moved this from In Code Review to Completed in OpenCRVS Core Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

No branches or pull requests

1 participant