Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Issue with createAcctgTransAndEntries service

If you see errors like

Error:Error trying to begin transaction, could not process method: The
current transaction is marked for rollback, not beginning a new
transaction
and aborting current operation; the rollbackOnly was caused by: Service
createAcctgTransAndEntries threw an unexpected
exception/errororg.ofbiz.service.ServiceValidationException: The following
required parameter is missing: OUT
createAcctgTransAndEntries.acctgTransId (The following required
parameter
is missing: OUT createAcctgTransAndEntries.acctgTransId) calling
service
balanceInventoryItems in receiveInventoryProduct

...

  1. If you are not interested in posting accounting transactions to the GL then you can disable (i.e. comment out) the first eca rule in accounting/servicedef/secas_ledger.xml
    Code Block
    <eca service="createAcctgTransAndEntries" event="commit">
        <condition field-name="acctgTransId" operator="is-not-empty"/>
        <action service="postAcctgTrans" mode="sync"/>
    </eca>
    
  2. Configure an Error Journal to post there the accounting transactions that are incomplete
    You can create the error journal in this way:
    1. Go to Accounting-->General Ledger-->Setup-->Journals and create a new journal
      https://localhost:8443/accounting/control/SetupGlJournals?organizationPartyId=CompanyImage Added
    2. Go to Accounting-->General Ledger-->Setup-->Accounting Preferences and select the journal in the "Error Gl Journal Id":
      https://localhost:8443/accounting/control/PartyAcctgPreference?organizationPartyId=CompanyImage Added
    3. All the "incomplete" transactions will be visible here:
      https://localhost:8443/accounting/control/ListUnpostedAcctgTrans?organizationPartyId=CompanyImage Added

Anchor
obsolete
obsolete

...