Sort:  

I was getting error -8 on import. What fixed it for me was adding double quotes around the filepath.

i.e. importwallet "C:\Users\YOURUSERNAME\Desktop\dumpfile.txt"