HRHR-project / e-registry-app

0 stars 1 forks source link

Unable to enroll or create program stages - may be related to attribute generated ID #121

Closed AkubaD closed 5 years ago

AkubaD commented 5 years ago

@Bekkalizer @lukasewvd some users, According to @RahmanMonjur no users are able to create any MCH program stages because of error saying "could not initialize proxy - no sessions"

There is second error: "Unable to reserve id. This may indicate that there are too few available ids left." This error is being experienced by Control users and users with org unit whose code is long (8 characters instead of 4). We have an attribute DHIS2 ID which is autogenerated using a combination of the org unit code, a letter and a sequential 7 digit number: ORG_UNITCODE() + "" + "D"+ SEQUENTIAL(#######) ID: I056EjniPUi

Screenshot 2019-05-20 at 14 31 57 screenshot2 screenshot3 screenshot4
AkubaD commented 5 years ago

We have been having an issue with this DHIS2 generated ID attribute - it sometimes says it has ran out of IDs and we have had to increase the number of digits of the sequential number generated. It is possible we are getting the error for the org units that have 8 character org unit code, because we may have hit a maximum number of characters that the attribute data type can handle with the increase of the number of digits of the number generated to add to the org unit code.