Upsert operation error, not creating new object in table

Kind of related to this issue.