Solving SVG import issues in Adobe Illustrator CS6 and CC

So when trying to import an SVG into Illustrator today, I was greeted by the following message:

Screen Shot 2013-10-30 at 12.02.14

The operation cannot complete because of an unknown error [CANT]

This isn’t exactly a programming issue (well, it is on Adobe’s side for sure :D), but I hope the poor souls having to deal with SVG in Illustrator will find this helpful.

Long story short: the SVG in question contained “font-family” directives. Apparently, Illustrator will show the above error message if it does not find a font referenced by such a directive, which is kind of a problem since “sans-serif” is a valid value for an SVG font-family directive.

I’ve sent a bug report to Adobe, hoping that this will be fixed soon.