ID Problem (EIdNotSetException)

There is also the option to use IdUnsavedValue if having id=0 in database is absolutely necessary:

2 Likes