Hi, I am getting this error
Discussion posts and replies are publicly visible
Check if primary key (usually "id" column) in corresponding table in database has the auto increment option active. If don't check the cdt structure and verify if the option "Automatically generates the following unique identifier when new records are written to a data store entity..." is checked.