Jacquie,
“ Ça n'a pas été une surprise “ is correct :être and verbs of state generally are exceptions to the rule you mention.
Un/une become de/d' in negative sentences in French (French Indefinite Articles)
Du/de la/de l'/des all become de/d' in negative sentences (French Partitive Articles)