err from upsert