Why Import["file.csv","Tabular"] sometimes does not automatically recognize first row as HeaderRow?

I have imported lots of files with the command Import[ “file.csv”, “Tabular”] and it worked very well until one day the table generated did not have the first row as headers.

This is a simplified version of my CSV file.

Code Type project
aaff223 donnor no
bbnmms233 xyz no
skjhkjs xxx no

In order to make it work, I had to use the following commands:

ToTabular[
Import[“file.csv”],
“Rows”,
<|“HeaderRows” → 1|>
]

I discovered that if I put Integers instead of Text in one of the rows Import[ “file.csv”, “Tabular”] worked just fine, as always!!!
I am using Wolfram Mathematica 15.0

You can use Import[ “file.csv”, “Tabular”, "HeaderLines" -> 1]. Header detection works only if the type of at least one column is not “String”.

Thank you very much Piotr.