If when you import the IIF file, QuickBooks gives you an 'Error on line X' try opening that IIF file in Excel.  In Excel Go File > Open and then ensure you have all files selected as a dropdown. Once you do this you will have the ability to select your IIF file. See what row the error is and troubleshoot from there.