...
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
...
- 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>
- Configure an Error Journal to post there the accounting transactions that are incomplete
You can create the error journal in this way:- Go to Accounting-->General Ledger-->Setup-->Journals and create a new journal
https://localhost:8443/accounting/control/SetupGlJournals?organizationPartyId=Company - 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=Company - All the "incomplete" transactions will be visible here:
https://localhost:8443/accounting/control/ListUnpostedAcctgTrans?organizationPartyId=Company
- Go to Accounting-->General Ledger-->Setup-->Journals and create a new journal
Anchor | ||||
---|---|---|---|---|
|
...