This happens over and over again in Sweden: skilled worker immigrants get deported over small technicalities, that is often not even their own fault. There have been many examples of this affecting highly skilled engineers in some of Swedens famous (and not famous) tech startups.
What I find disturbing is that immigrant criminals, who haven't contributed to society at all, often do not get sentenced to deportation. So we have the situation that people who are a benefit to the Swedish society get deported, but the criminals get to stay.