I figured it out myself. My wife is Non-Canadian resident and I had click "Non-Resident TR7" (or something like that) thinking it was for reporting Non-Resident Electing 217. When I changed it to simply "Non-Resident", everything worked out ok.
I think your error message should be more explicit.
Thanks