Share via

Got (401) Unauthorized and "The specified object was not found in the store., The process failed to get the correct properties."

Surey Yu 0 Reputation points
Sep 12, 2023, 2:00 PM

We are using exchange webservice to get calendar data from on-premises Exchange Server (https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-get-appointments-and-meetings-by-using-ews-in-exchange),
but the following three errors often occur.

Error Message:
Access is denied. Check credentials and try again., The process failed to get the correct properties.

 The specified object was not found in the store., The process failed to get the correct properties.

 The request failed. The remote server returned an error: (401) Unauthorized.

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,386 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
607 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,196 Reputation points Microsoft Vendor
    Sep 13, 2023, 5:37 AM

    Hi @Surey Yu ,

    Thanks for posting in our Q&A forum.

    Based on the error messages you provided, here are some possible causes and solutions:

    Access is denied. Check credentials and try again., The process failed to get the correct properties.

    This error may occur if the account you are using to access the Exchange Web Service does not have the appropriate permissions to the mailbox or folder you are trying to access. To fix this error, you can try the following:

    1. Update the account credentials and make sure they are correct.
    2. Check the inheritance box on the mailbox or folder properties and rebuild the offline address book (OAB).
    3. Ensure you are using your full user principal name (UPN) if you are attempting to log onto an Office 365 service.
    4. Check if the service principal name (SPN) that is required for OAuth authentication is missing or incorrect.
    5. Perform a test on Microsoft Remote Connectivity Analyzer

    The specified object was not found in the store., The process failed to get the correct properties.

    This error may occur if the mailbox or folder you are trying to access does not exist or has not been provisioned yet. To fix this error, you can try the following:

    1. Verify that the mailbox or folder name is correct and that it belongs to the current mailbox.
    2. Log into Outlook Web App (OWA) with the account you are using to access the Exchange Web Service and see if the mailbox or folder is visible.
    3. Send an email to the mailbox or run Test-MapiConnectivity from the Exchange Management Shell to trigger the mailbox provisioning process.

    The request failed. The remote server returned an error: (401) Unauthorized.

    This error may occur if the authentication method or scheme you are using to access the Exchange Web Service is not supported or configured properly. To fix this error, you can try the following:

    1. Check the authentication settings on your Exchange Web Service client and server and make sure they match.
    2. Use a supported authentication method such as basic, NTLM, or OAuth.
    3. If you are using OAuth, make sure you have registered your application and obtained a valid access token.
    4. If you are using impersonation, make sure you have granted the account you are using the Impersonation role on the mailbox or folder you are trying to access.

    Hope the above info can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.