Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1260

EntityExistsException: Cannot delete or update a parent row: a foreign key constraint fails (`fineract_default`.`m_loan_transaction_repayment_schedule_mapping`, CONSTRAINT `FK_mappings_m_loan_repayment_schedule`...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Auto Closed
    • None
    • None
    • Loan

    Description

      See FINERACT-932 for general background; I've found this in logs of https://www.fineract.dev:

      Caused by: org.apache.openjpa.persistence.EntityExistsException: The transaction has been rolled back. See the nested exceptions for details on the errors that occurred. at org.apache.openjpa.kernel.BrokerImpl.newFlushException(BrokerImpl.java:2470) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2308) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:2199) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:2116) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:84) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1600) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:1035) ~[openjpa-3.1.2.jar:3.1.2] at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:669) ~[openjpa-3.1.2.jar:3.1.2] at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:534) ~[spring-orm-5.2.10.RELEASE.jar:5.2.10.RELEASE] ... 19 common frames omitted Caused by: org.apache.openjpa.persistence.EntityExistsException: Cannot delete or update a parent row: a foreign key constraint fails (`fineract_default`.`m_loan_transaction_repayment_schedule_mapping`, CONSTRAINT `FK_mappings_m_loan_repayment_schedule` FOREIGN KEY (`loan_repayment_schedule_id`) REFERENCES `m_loan_repayment_s)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: