You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Aman-Mittal (via GitHub)" <gi...@apache.org> on 2026/08/16 13:03:19 UTC

[I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Aman-Mittal opened a new issue, #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376

   Three features cannot be built into this application because the platform refuses them on
   PostgreSQL. Each was probed against `apache/fineract:latest` (`1.15.0-303-gf4f927e`, built
   2026-08-15) with a fresh database, as the default superuser holding `ALL_FUNCTIONS`. No screens were
   shipped for them, because a screen for any of these could only ever fail.
   
   ## 1. GLIM — group loan individual monitoring
   
   `POST /v1/loans` with `loanType: "glim"` is accepted by validation and then fails in the database:
   
   ```
   ERROR: null value in column "principal_amount" of relation "glim_accounts" violates not-null constraint
   INSERT INTO "glim_accounts" ("account_number", "application_id", "child_accounts_count",
     "accepting_child", "loan_status_id", "principal_amount", "group_id") VALUES (?, ?, ?, ?, ?, ?, ?)
   ```
   
   The API answers `403 error.msg.unknown.data.integrity.issue`. The obvious alternative payload is
   rejected outright — *"The parameter clientMembers is not supported"* — so there is no second shape
   to try. `GET /v1/groups/{id}/glimaccounts` and `GET /v1/loans/glimAccount/{id}` both work; they just
   have nothing to return, because nothing can be created.
   
   ## 2. GSIM — group savings individual monitoring
   
   `POST /v1/savingsaccounts/gsim` answers **200** and reports `gsimId: 0`. Individual savings accounts
   are created for the named clients, but no parent GSIM record is formed, and
   `GET /v1/groups/{id}/gsimaccounts` stays empty afterwards. Adding `isGSIM: true` changes nothing on
   that endpoint and is rejected as unsupported on `POST /v1/savingsaccounts`.
   
   ## 3. Centre collection sheet
   
   `POST /v1/centers/{id}?command=generateCollectionSheet` answers **500**:
   
   ```
   org.postgresql.util.PSQLException: ERROR: operator does not exist: boolean = integer
   ```
   
   The query compares a boolean column to an integer — `ls.completed_derived = 0` — which MySQL
   accepts and PostgreSQL does not. The comparison is unconditional, so this fails for every tenant on
   PostgreSQL regardless of data. The command itself is recognised: a deliberately invalid command on
   the same endpoint is refused with `error.msg.query.parameter.value.unsupported`, while this one gets
   as far as looking the centre up.
   
   The **individual** collection sheet this application already has is unaffected, and its `generate`
   and `save` commands are the ones this backend accepts.
   
   ## Business Value
   
   Group lending is the core of microfinance, and GLIM and GSIM are how a group loan or group savings
   account is tracked per member — who owes what inside a joint liability group. Without them a branch
   running group products has to track member-level balances outside the system, which is where
   reconciliation errors and disputes come from.
   
   The centre collection sheet is the daily working document of a field officer: one page listing every
   member due at a centre meeting, filled in during the meeting and posted as one batch. Without it,
   collections at group scale are entered account by account.
   
   Because all three are refused by the backend, this issue is a tracking record rather than a UI task.
   It becomes actionable here once the platform accepts the operations; the fixes belong upstream.
   Anyone picking it up should raise the three defects on the Fineract JIRA project first and link the
   tickets back here.
   
   ## What would close this
   
   - The three platform defects fixed upstream and available in a released Fineract, then
   - screens for GLIM accounts and GSIM accounts on the group record, and the centre collection sheet
     beside the individual one — each built the way the rest of this application is: contract verified
     against a running platform, unit tests, and a backend e2e test that seeds a real record.
   
   Found while closing the functional gaps in #375.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "shivaansh0610-LUFFY (via GitHub) via issues" <is...@fineract.apache.org>.
shivaansh0610-LUFFY commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-6844702054

   @paultofunmi,
   I've filed the GLIM defect upstream as FINERACT-3228: https://issues.apache.org/jira/browse/FINERACT-3228 (missing totalLoan validation, which surfaces as the generic 403). I'm working on the core fix and have only taken the GLIM part; GSIM and the collection sheet stay with you.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "shivaansh0610-LUFFY (via GitHub)" <gi...@apache.org>.
shivaansh0610-LUFFY commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-5905713346

   Thanks @Aman-Mittal, 
   I'll join the dev list. One specific question so I file this correctly: for the GLIM and GSIM defects, should I open the Jira tickets myself once I've reproduced them, and is there a process for getting an account that can create issues? I'll link the tickets back here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "paultofunmi (via GitHub)" <gi...@apache.org>.
paultofunmi commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-5425685658

   @Aman-Mittal , picked this up


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-5905751203

   > Thanks @Aman-Mittal, 
   > I'll join the dev list. One specific question so I file this correctly: for the GLIM and GSIM defects, should I open the Jira tickets myself once I've reproduced them, and is there a process for getting an account that can create issues? 
   > I'll link the tickets back here.
   
   You can request for jira account, but recommended to discuss in dev list first. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "shivaansh0610-LUFFY (via GitHub)" <gi...@apache.org>.
shivaansh0610-LUFFY commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-6056064355

   Reproduced part of this on current develop, sharing exact details in case they help whoever picks it up.
   
   Environment: apache/fineract develop @ f9c2fcdc1c (1.16.0-SNAPSHOT), PostgreSQL 18.3, tenant default, fresh database. I created a client, a group (with the client as a member) and a loan product first.
   
   1. POST /v1/loans with loanType "glim", isParentAccount true, totalLoan 10000 and a standard 4-month schedule (same shape as FeignGlimHelper.applyGlim in the integration tests) returns 200 with loanId 1 and glimId 1.
   
   2. The same body with only totalLoan removed returns 403 error.msg.unknown.data.integrity.issue. The server log shows: null value in column "principal_amount" of relation "glim_accounts" violates not-null constraint, from INSERT INTO "glim_accounts" (...). The transaction rolls back and nothing is written.
   
   So on this build a valid GLIM parent request works, and the failure I can reproduce is a request without totalLoan passing validation and failing at the database with a generic 403. I haven't checked whether the payload that originally produced this report omitted totalLoan, or whether MySQL/MariaDB behave the same.
   
   As @Aman-Mittal  suggested, I'll raise this on the dev list before opening anything in Jira. @paultofunmi, are you still working on this? Happy to leave it with you or coordinate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "shivaansh0610-LUFFY (via GitHub)" <gi...@apache.org>.
shivaansh0610-LUFFY commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-5905538426

   Hi @Aman-Mittal, @paultofunmi. I looked into this and wanted to check before duplicating anything.
   
   Where each defect stands upstream:
   
   Centre collection sheet: FINERACT-2871 / apache/fineract#6535 (open, covers the boolean comparison, the string-bound date and the GROUP BY). The centre listing has its own ticket, FINERACT-2872 / #6536.
   GLIM and GSIM: I couldn't find a Jira ticket for either. apache/fineract#6356 mentions GSIM but only removes an ineffective lock, so it doesn't fix gsimId: 0.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] GLIM, GSIM and the centre collection sheet cannot be built — the backend refuses all three on PostgreSQL [fineract-backoffice-ui]

Posted by "Aman-Mittal (via GitHub)" <gi...@apache.org>.
Aman-Mittal commented on issue #376:
URL: https://github.com/apache/fineract-backoffice-ui/issues/376#issuecomment-5905571622

   > Hi @Aman-Mittal, @paultofunmi. I looked into this and wanted to check before duplicating anything.
   > 
   > Where each defect stands upstream:
   > 
   > Centre collection sheet: FINERACT-2871 / apache/fineract#6535 (open, covers the boolean comparison, the string-bound date and the GROUP BY). The centre listing has its own ticket, FINERACT-2872 / #6536.
   > GLIM and GSIM: I couldn't find a Jira ticket for either. apache/fineract#6356 mentions GSIM but only removes an ineffective lock, so it doesn't fix gsimId: 0.
   
   I recommend you to join fineract dev list for this. 
   
   Btw I think I need to add a line for joining devlist for all contributors.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fineract.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org