Article Details
Id:17903
Product:finPOWER Connect
Type:FIX
Version:3.04.00
Opened:29/07/2020
Closed:03/03/2021
Released:30/06/2021
Job: J024723

GL Export (New Interface); may fail with an "An unhandled exception has occurred."

The GL Export (New Interface) may fail with an "An unhandled exception has occurred. Object reference not set to an instance of an object.".

This occurs if using a script to set the GLAccountId of a Bank Transaction's Line, and the code is an invalid GL Account. For example:

GlExportNew.BankTransactions(0).Lines(0).GlAccountId = "invalid"

Note, this code would typically be in the "ExportProcess" event.

In addition to fixing this issue, you can now set the "GlAccountCode" property to any text to override the GL Account sent for a Bank Transaction.