You cannot export all accounts at once. They must be exported one by one.
Make sure to re-open any closed accounts. Closed accounts cannot be exported until they are re-opened.
import all the qif files together, so that the links between the account transactions are re-created.