Error Name not set via Prompt


I have created a doctype product and given naming series as Prompt. Created another doctype first issue and it also has naming series as Prompt. Even if i give name and save. Its showing the below error,

I have changed naming series to series but same error is showing, not sure what went wrong.