create object if wrong type of id is passed when using upsert