EmailProblems and errorsSpanish version

Support article

Could not create the Outlook data file: how to fix it

Fix the Outlook data file creation error and set up your miHosting email account without complications.

Published: 26/06/2026Updated: 26/06/2026

Introduction

The message Could not create the Outlook data file may appear when adding an email account in Microsoft Outlook.

It is a frustrating error because it prevents the setup from finishing even when the mailbox exists and the password is correct. It is usually related to Windows permissions, damaged profiles, an incorrect data-file location or internal Outlook issues.

Steps to fix the error

1. Close Outlook completely

Before changing any settings, close Outlook. You can also open the Windows Task Manager and make sure no Outlook process remains open.

2. Run Outlook as administrator

Right-click the Outlook icon and choose Run as administrator. Then try to add the account again.

This helps when Windows is blocking the data file creation because of insufficient permissions.

3. Make sure your Windows user has the right permissions

Outlook needs to create files in system folders or inside the user profile. If you are using a company computer, you may need administrator permissions.

4. Create a new Outlook profile

In Windows, open the Control Panel, look for Mail, open Show Profiles and create a new profile. Then configure the account from scratch in that new profile.

5. Change the data-file location

If Outlook is trying to save the file in a restricted folder, choose a local user location such as Documents or another personal folder.

Avoid sync folders from external services if they are causing errors.

6. Repair existing Outlook data files

If there is already a damaged .pst or .ost file, use the Outlook repair tool or create a new data file.

7. Configure the account manually

When adding the mailbox, use manual setup and enter the server data. For miHosting accounts, the usual values are:

  • incoming server: mail.yourdomain.com
  • outgoing SMTP server: mail.yourdomain.com
  • username: the full email address, for example name@yourdomain.com
  • password: the mailbox password
  • secure IMAP: port 993 with SSL/TLS
  • secure SMTP: port 465 with SSL/TLS or 587 with STARTTLS

8. Test the account from Webmail

Open your hosting Webmail and confirm that the mailbox logs in correctly. If it works in Webmail, the issue is in Outlook or Windows rather than in the email account itself.

Useful tips

  1. Use IMAP whenever possible

    IMAP keeps messages synchronized on the server and makes it easier to use the same mailbox on multiple devices.

  2. Do not delete old profiles without checking

    If an older profile stored mail only on that computer, you could lose local data.

  3. Do not store Outlook data files on unstable drives

    Network folders, external disks or synchronized locations can cause Outlook errors.

  4. Check available disk space

    If the computer is low on space, Outlook may fail while creating the data file.

FAQ

Does this error mean my email account was created incorrectly

Not necessarily. Very often the mailbox is fine and the issue is in Outlook, the Windows profile or the computer permissions.

Should I use POP3 or IMAP

For most users, IMAP is recommended because it allows you to check the same mailbox from multiple devices without depending on one local file.

Can I use Webmail while I fix Outlook

Yes. Webmail lets you send and receive email from the browser while you correct the local setup.

Conclusion

The Could not create the Outlook data file error is usually solved by reviewing permissions, creating a new profile or configuring the account manually.

If Webmail works, your miHosting email account is operational and the remaining issue is in Outlook or Windows.