Error: The transaction type entered is not a unit transaction type but the GL account given is a unit account.
Transaction Type:
Account Number: XXXX
The error is coming from ValidateGLAccount on line #33. Is there anyway we can ensure the transaction type is provided in the error, so it helps identify where it could be failing, particularly when we have GL and invoices being generated in a workflow?
Because this is a common logic block it cannot highlight the error itself since the source could always be a different. The common LB doesn’t have the DSN to highlight. We’d either have to change the common logic block to have every possible DSN so they could highlight accordingly or everyone calling has to catch that error and throw it themselves to highlight the field.
If you are a Nextworld customer or partner, you can also work with your system administrator to submit an official enhancement request with customer support.
I do think the error message can give more information in the log message. If the GLAccount or Transaction Type are empty obviously we’d have to know more about who’s calling the LB, but from what we can see, we don’t include the Transaction Type on that line and we can. I’ll enter in a bug to get that added.