Why all the newly adding record's ID is set to 0 in an entity

I am new to Outsystems.
I have two entities Discovery & Eligibility, Eligibility's ID is an foreign key in Discovery.
My issue is when ever I am adding new record to Eligibility Entity, its taking 0 as record's ID.

Because of this, when ever I try to browse Eligibility records from Discovery table, its taking to a new Eligibility details page.not to the actual record.