Import secret.key file, assign a new password, while sending "an error occurred"?

does anyone here know the solution to this issue?

Or is there still a bug existing in the import function? So whenever user tried to import secret.key file, a spending password window will prompt asking you to assign a new password to your imported wallet, but later on when you are sending out the balance to another address, no matter what you do, you will see that ambiguous error message “An error occurred”.