RDKit two component reaction issues

Hi I have a reaction enumeration where I am reacting a set of acids to 1 amine and have 2 issues:

  1. The amine is reacting with esters as well as amines (I want to leave the esters in as a possible substituent)

  2. I get an error or “A product molecule could not be sanitized successfully - skipping it”

In general I get all the right compounds out with a few reacting at the ester instead.

Amide enumeration.knwf