The creation of a TActiveRecord as a resultClass of a SqlMap did not work because of the detection of the presence of the TActiveRecord class. The class namespace was missing from the string.
The result was an unloaded object (recordState=0) that could not be saved. Saving triggered a duplicate key error by SQL.