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

Duplicate identifiers are being assigned to beneficiaries #1099

Open
Gojo-Taqi opened this issue Sep 20, 2023 · 1 comment
Open

Duplicate identifiers are being assigned to beneficiaries #1099

Gojo-Taqi opened this issue Sep 20, 2023 · 1 comment

Comments

@Gojo-Taqi
Copy link

Describe the bug
For the org ctrith_iph, refer to the link to witness the duplicate identifiers being assigned.

https://reporting.avniproject.org/question/2591-duplicate-identifiers-for-ctrith-iph

@Gojo-Taqi Gojo-Taqi moved this to New Issues in Avni Product Sep 20, 2023
@vinayvenu
Copy link
Member

Analysis

set role ctrith_iph;
select id,
created_by_id,
created_date_time,
last_modified_by_id,
last_modified_date_time,
address_id,
registration_date,
"Individual Id (Not to be used)"
from ctrith_iph.individual
where created_by_id = 7316
and id between 1399939 and 1406654
order by id asc;
-- Notice that 2316 is recorded twice. This looks like something to do with IdentifierAssignmentService.assignPopulatedIdentifiersFromObservations.

The code here can potentially throw an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

2 participants