cannot save changes made to an item to store

Roger Roger 6,471 Reputation points
2022-04-29T19:55:26.457+00:00

Hi All

I am executing the below syntaxes in exchange online. i am getting the error cannot save changes made to an item to store and KQL parser threw an exception when executing the below syntaxes. One of my user has received an email from external domain i want to know in which folder the email is residing.

Search-Mailbox -Identity user1@contoso.com -SearchQuery 'Subject:"test1" AND Received:"04/01/2022 00:00..04/29/2022 23:59"' -TargetMailbox "mymailbox@contoso.com" -TargetFolder "inbox" -LogOnly -LogLevel Full

Error: The KQL parser threw an exception.

Search-Mailbox -Identity user1@contoso.com -SearchQuery {From:"extuser@ext.com" AND Received:"04/01/2022 00:00..04/29/2022 23:59"} -TargetMailbox "mymailbox@contoso.com" -TargetFolder "inbox" -LogOnly -LogLevel Full
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,629 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,706 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kael Yao-MSFT 37,661 Reputation points Microsoft Vendor
    2022-05-02T05:46:44.533+00:00

    Hi @Roger Roger

    If you run the first cmdlet and modify the target mailbox or target folder to be another mailbox or folder, would it get rid of the error "cannot save changes made to an item to store"?


    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

0 additional answers

Sort by: Most helpful

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.