David, I'm 99% sure this line is causing the error, when I remove it everything works as expected. It's actually running on the AR Customer table, so no involvement in SO module at all. What it does is check the membership & if they're in that group, it sets automatic defaults to a number of fields.