[ 
https://issues.apache.org/jira/browse/FINERACT-2379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Saghy updated FINERACT-2379:
---------------------------------
    Description: 
Some of the below test class tests are randomly failing
{code:java}
org.apache.fineract.integrationtests.SavingsAccrualAccountingIntegrationTest{code}
The below tests are randomly fails:
{code:java}
testNegativeAccrualPostsCorrectJournalEntries
testPositiveAccrualPostsCorrectJournalEntries{code}
I was told:
{code:java}
org.apache.fineract.integrationtests.SavingsAccrualIntegrationTest{code}
is also failing sometimes... might have the same problem as above or 
FINERACT-2378 

I am not sure whether it's relevant for this but backend console log has some 
exceptions:


{code:java}
Caused by: java.sql.BatchUpdateException: Batch entry 869 INSERT INTO 
acc_gl_journal_entry(account_id,office_id,reversal_id,currency_code,transaction_id,savings_transaction_id,client_transaction_id,reversed,ref_num,manual_entry,entry_date,type_enum,amount,description,entity_type_enum,entity_id,created_on_utc,last_modified_on_utc,is_running_balance_calculated,office_running_balance,organization_running_balance,payment_details_id,transaction_date,share_transaction_id,
 created_by, last_modified_by, submitted_on_date) VALUES (('0'::int8), 
('18'::int8), (NULL), ('USD'), ('S243757'), ('243757'::int8), (NULL), 
('FALSE'::boolean), (NULL), ('FALSE'::boolean), ('2013-04-01'::date), 
('2'::int8), ('255.8444'::numeric), (NULL), ('2'::int8), ('36'::int8), 
('2025-09-22 15:39:29.534134+00'::timestamp with time zone), ('2025-09-22 
15:39:29.534134+00'::timestamp with time zone), ('FALSE'::boolean), 
('0'::numeric), ('0'::numeric), (NULL), ('2013-04-01'::date), (NULL), 
('2'::int8), ('2'::int8), ('2025-03-01'::date)) was aborted: ERROR: insert or 
update on table "acc_gl_journal_entry" violates foreign key constraint 
"FK_acc_gl_journal_entry_acc_gl_account" Detail: Key (account_id)=(0) is not 
present in table "acc_gl_account". Call getNextException to see other errors in 
the batch.{code}

  was:
Some of the below test class tests are randomly failing
{code:java}
org.apache.fineract.integrationtests.SavingsAccrualAccountingIntegrationTest{code}
The below tests are randomly fails:
{code:java}
testNegativeAccrualPostsCorrectJournalEntries
testPositiveAccrualPostsCorrectJournalEntries{code}

I was told:
{code:java}
org.apache.fineract.integrationtests.SavingsAccrualIntegrationTest{code}
is also failing sometimes... might have the same problem as above or 
FINERACT-2378 


> Failing tests of 
> org.apache.fineract.integrationtests.SavingsAccrualAccountingIntegrationTest
> ---------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-2379
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2379
>             Project: Apache Fineract
>          Issue Type: Bug
>            Reporter: Adam Saghy
>            Assignee: Victor Romero
>            Priority: Major
>
> Some of the below test class tests are randomly failing
> {code:java}
> org.apache.fineract.integrationtests.SavingsAccrualAccountingIntegrationTest{code}
> The below tests are randomly fails:
> {code:java}
> testNegativeAccrualPostsCorrectJournalEntries
> testPositiveAccrualPostsCorrectJournalEntries{code}
> I was told:
> {code:java}
> org.apache.fineract.integrationtests.SavingsAccrualIntegrationTest{code}
> is also failing sometimes... might have the same problem as above or 
> FINERACT-2378 
> I am not sure whether it's relevant for this but backend console log has some 
> exceptions:
> {code:java}
> Caused by: java.sql.BatchUpdateException: Batch entry 869 INSERT INTO 
> acc_gl_journal_entry(account_id,office_id,reversal_id,currency_code,transaction_id,savings_transaction_id,client_transaction_id,reversed,ref_num,manual_entry,entry_date,type_enum,amount,description,entity_type_enum,entity_id,created_on_utc,last_modified_on_utc,is_running_balance_calculated,office_running_balance,organization_running_balance,payment_details_id,transaction_date,share_transaction_id,
>  created_by, last_modified_by, submitted_on_date) VALUES (('0'::int8), 
> ('18'::int8), (NULL), ('USD'), ('S243757'), ('243757'::int8), (NULL), 
> ('FALSE'::boolean), (NULL), ('FALSE'::boolean), ('2013-04-01'::date), 
> ('2'::int8), ('255.8444'::numeric), (NULL), ('2'::int8), ('36'::int8), 
> ('2025-09-22 15:39:29.534134+00'::timestamp with time zone), ('2025-09-22 
> 15:39:29.534134+00'::timestamp with time zone), ('FALSE'::boolean), 
> ('0'::numeric), ('0'::numeric), (NULL), ('2013-04-01'::date), (NULL), 
> ('2'::int8), ('2'::int8), ('2025-03-01'::date)) was aborted: ERROR: insert or 
> update on table "acc_gl_journal_entry" violates foreign key constraint 
> "FK_acc_gl_journal_entry_acc_gl_account" Detail: Key (account_id)=(0) is not 
> present in table "acc_gl_account". Call getNextException to see other errors 
> in the batch.{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to