question

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 asked emilyhua-msft edited

Cannot save changes made to an item to store

Hi All

I am getting the below error using search mailbox syntax. my requirement is external user has sent an email to user user1@contoso.com i want to know in which folders the emails reside in user1@contoso.com. how can i get this information from content search or powershell

 Search-Mailbox -Identity sender@externaldomain.com -SearchQuery {From:"user1@contoso.com" AND Received:"05/01/2021 00:00..05/25/2021 23:59"} -TargetMailbox "myuser@contoso.com" -TargetFolder "search" -LogOnly -LogLevel Full


WARNING: WARNING: On July 1, 2020, the Search-Mailbox cmdlet is being retired and Microsoft Support will no longer
provide assistance. See https://go.microsoft.com/fwlink/?linkid=2113221 to learn more.
WARNING: The Search-Mailbox cmdlet returns up to 10000 results per mailbox if a search query is specified. To return
more than 10000 results, use the New-MailboxSearch cmdlet or the In-Place eDiscovery & Hold console in the Exchange
Administration Center.
Cannot save changes made to an item to store.
+ CategoryInfo : InvalidArgument: (:) [], ObjectNotFoundException
+ FullyQualifiedErrorId : [Server=UA2PR08MB9876,RequestId=j87904abc-fg67-1234-85u8-67yui2kloiuy,TimeStamp=6/8/2021 3:06:36 AM] [FailureCategory=Cmdlet-ObjectNotFoundException] 615347DB
+ PSComputerName : outlook.office365.com

office-exchange-server-administrationoffice-exchange-online-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered YukiSun-MSFT commented

Hi @GlennMaxwell-2309,

my requirement is external user has sent an email to user user1@contoso.com i want to know in which folders the emails reside in user1@contoso.com.

As per the requirement, you'll need to switch the place of "sender@externaldomain.com" and "user1@contoso.com" in the command you used, that is, the command needs to be changed to as follows:

 Search-Mailbox -Identity user1@contoso.com -SearchQuery {From:"sender@externaldomain.com" AND Received:"05/01/2021 00:00..05/25/2021 23:59"} -TargetMailbox "myuser@contoso.com" -TargetFolder "search" -LogOnly -LogLevel Full

I tried it in my tenant after making minor changes and got the expected results.

But based on my test and research, this may not be the cause for the error you are encourtering. If the error "Cannot save changes made to an item to store." continues, I'd suggest trying with another target mailbox to see the result, this helps eliminate whether the issue is with the current specified target mailbox "myuser@contoso.com".


If an Answer is helpful, please click "Accept Answer" and upvote it.
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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GlennMaxwell-2309,

I am writing to see if there is any progress on the issue. Any update would be appreciated.


If an Answer is helpful, please click "Accept Answer" and upvote it.
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 Votes 0 ·