
plugin pre create operation in the account entity i am trying to associate the contacts but getting Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060
Hello,
I believe you are trying to associate account from context with some contacts and it can't be done because account is not in the DB yet. I would recommend to move your plugin to Post Operation plugin when account is in the DB already.