My custom field isn’t persisting to the database here: I’ve checked both the bAccount and customergroupid and neither of them are null. This is inside a method that gets called in a persist override.

My custom field isn’t persisting to the database here: I’ve checked both the bAccount and customergroupid and neither of them are null. This is inside a method that gets called in a persist override.

Best answer by Django
So that can be a gotcha when you extend BAccount. Do you really want to extend BAccount or is it Customer that you want to extend? By extending BAccount, you’re also adding those same fields to vendors, employees, companies - anything that an extension of BAccount.
Regardless of that I looked within CustomerMaint.cs and I see that it is referencing the rows as Customer vs a BAccount.
So I’m thinking that you want to be updating the cache related to the Customer and not BAccount.
Caches[typeof(Customer)]
And part of the challenge is that if you’re forcing an update on the BAccount record that is connected to the Customer record before the customer record has been persisted then you’re likely heading for a concurrency issue.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.