I get error while using the primary key error is n