How to Fix Outlook Error 0x80070057
Diagnostic Procedures
- 1 Understand the cause of Outlook Error 0x80070057
- 2 Windows: Registry Tweaks and Autodiscover Overrides
- 3 macOS: Credential Cleanup and Keychain Cache Reset
- 4 Recreate Outlook Profile to Resolve Parameter Errors
- 5 Summary Diagnostics Checklist
How to Fix Outlook Error 0x80070057
When setting up a new email account or synchronizing your inbox in Microsoft Outlook, you may receive the error: “An unknown error occurred, a parameter was incorrect. Error code: 0x80070057” or “The parameter is incorrect.”
This guide provides details on what triggers error code 0x80070057 and details how to fix it on both Windows and macOS by modifying the system registry, resolving Autodiscover server bypass errors, and clearing corrupted security credentials.
1. Understand the Cause of Outlook Error 0x80070057
In the Windows operating system, the hex code 0x80070057 maps to E_INVALIDARG (invalid parameter). Within Outlook, this indicates that the Autodiscover engine received configuration parameters from your mail server that are invalid, unparseable, or conflict with your local database structures. Key causes include:
- Autodiscover Redirection Mismatch: Outlook is redirected to a legacy or incorrect server URL during autoconfiguration, yielding corrupted parameters.
- Corrupted Local Profile Registry Keys: Broken registry values within the Microsoft Office path structure return invalid parameters during account handshakes.
- Keychain and Credential Store Conflicts: Old, cached passwords or Security Assertions (SAML tokens) conflict with the new Modern Authentication flow.
- Corrupt Office Installations: Local library dependencies mismatch.
2. Windows: Registry Tweaks and Autodiscover Overrides
If the error occurs during Autodiscover email setup on Windows, you must force Outlook to bypass root domain redirections using the Windows Registry.
Step 1: Add Registry Overrides
Copy and run these commands in a Command Prompt running as Administrator to inject local Autodiscover exclusions:
:: Exclude HTTPS root domain checks to prevent incorrect redirects
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v "ExcludeHttpsRootDomain" /t REG_DWORD /d 1 /f
:: Force Outlook to prioritize local Autodiscover XML configs
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v "PreferLocalXML" /t REG_DWORD /d 1 /f
:: Exclude HTTP redirect queries
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover" /v "ExcludeHttpRedirect" /t REG_DWORD /d 0 /f
Step 2: Clear Local Autodiscover XML Cache
Outlook caches Autodiscover responses locally. Delete these cached files to force a clean server query:
:: Close Outlook
taskkill /F /IM outlook.exe
:: Clear the autodiscover XML cache directory
del /q /f "%localappdata%\Microsoft\Outlook\16\*.xml"
3. macOS: Credential Cleanup and Keychain Cache Reset
On macOS, Outlook encounters 0x80070057 when trying to configure Exchange accounts while old, expired Active Directory credentials persist in the system Keychain.
Step 1: Clean Keycached Sign-ins
- Close Outlook (
killall "Microsoft Outlook"). - Open Keychain Access (press
Cmd + Space, typeKeychain Access, and press Enter). - Search for the word
Exchangeand delete all matching login items. - Search for
Officeand delete items starting with:Microsoft Office Identities Cache...Microsoft Office Identities Settings...
- Relaunch Outlook and enter your credentials again.
Step 2: Switch to Legacy/New Outlook Interface
Changing the rendering interface forces macOS Outlook to build a fresh SQLite configuration store:
- Switch from New to Legacy: Click the Outlook menu in the top bar → uncheck New Outlook.
- Switch from Legacy to New: Toggle the New Outlook switch in the top right corner.
4. Recreate Outlook Profile to Resolve Parameter Errors
If registry edits and cache flushes fail, the configuration database is corrupt and must be rebuilt.
Windows:
- Open Control Panel → Mail → Show Profiles….
- Click Add… and name it
Outlook_New_Profile. - Fill in your email configuration and let the wizard configure the settings automatically.
- Set “Always use this profile” to
Outlook_New_Profile. - Click Apply and relaunch Outlook.
macOS:
- Terminal command to launch the profile management app:
/Applications/Microsoft\ Outlook.app/Contents/SharedSupport/Outlook\ Profile\ Manager.app/Contents/MacOS/Outlook\ Profile\ Manager
- Click +, add a profile named
Mac_New, click the Gear icon → Set as Default.
5. Summary Diagnostics Checklist
| Diagnostics Step | Action / Path | Expected Outcome |
|---|---|---|
| Apply Registry Fixes | Run reg add commands in Command Prompt | Configures Outlook Autodiscover to bypass broken server redirects. |
| Purge XML Cache | Delete files in %localappdata%\Microsoft\Outlook\16\ | Forces Outlook to query current configuration settings. |
| Keychain Cleanup (Mac) | Delete Exchange/Office keychains in Keychain Access | Clears corrupted Active Directory authentication tokens. |
| Rebuild Profile | Create a new Mail Profile from settings/manager | Replaces corrupted profile metadata causing E_INVALIDARG. |
| Verify Port Status | Check that HTTPS port 443 is accessible | Allows HTTPS Autodiscover handshakes to reach host servers. |