• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
I highly doubt
minister = {
id = { type = 9 id = 9005 }
name = "Mario Pais de Sousa"
picture = "unknown"
position = MinisterOfSecurity
category = paternal_autocrat
cabinet = ruling
trait = 56
loyalty = 3
year = 1900
}

is the problem (Thats what the line brought me to)
 
Hm... Try searching the doc. for id=0 for a province.