microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.21k stars 332 forks source link

[Issue] SourceSideValidations - Cannot process argument transformation on parameter 'Identity'. Cannot convert the "DB01_16" value of type "Deserialized.Microsoft.Exchange.Data.Directory.ADObjectId" to type "Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter" #2099

Open humble-b opened 3 weeks ago

humble-b commented 3 weeks ago

Describe the issue when first starting the script with no parameters i get the following 3 errors:

I have 1 exchange 2019 server running on Windows server 2022 I execute the script on the exchange server as normal and as admin powershell Mentioned database DB01_16 is the database holding the public folder srv16.gandalf.local is the local hostname of the exchange server

version of script according to source: Version 24.01.16.1656 version of exchange server:


ProductVersion   FileVersion      FileName
--------------   -----------      --------
15.02.1544.011   15.02.1544.011   E:\Program Files\Microsoft\Exchange Server\V15\bin\ExSetup.exe

Script run and errors:

[PS] E:\Scripts\publicfolders>.\SourceSideValidations.ps1
Cannot process argument transformation on parameter 'Identity'. Cannot convert the "DB01_16" value of type
"Deserialized.Microsoft.Exchange.Data.Directory.ADObjectId" to type "Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter".              + CategoryInfo          : InvalidData: (:) [Get-MailboxDatabase], ParameterBindin...mationException                                        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MailboxDatabase                                                         + PSComputerName        : srv16.gandalf.local      

WARNING: Database  is not mounted. This database holds PF mailbox Mailbox Lex IT and must be mounted.
Cannot process argument transformation on parameter 'Identity'. Cannot convert the "DB01_16" value of type
"Deserialized.Microsoft.Exchange.Data.Directory.ADObjectId" to type "Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter".
    + CategoryInfo          : InvalidData: (:) [Get-MailboxDatabase], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MailboxDatabase
    + PSComputerName        : srv16.gandalf.local

Liked the script or had a problem? Let us know at ExToolsFeedback@microsoft.com
Get-FolderData : You cannot call a method on a null-valued expression.
At E:\Scripts\publicfolders\SourceSideValidations.ps1:2629 char:19
+ ... olderData = Get-FolderData -StartFresh $StartFresh -SlowTraversal $Sl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-FolderData], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull,Get-FolderData

Expected behavior normal script run or better error output of what is going wrong.

Script Output

[PS] E:\Scripts\publicfolders>.\SourceSideValidations.ps1
Cannot process argument transformation on parameter 'Identity'. Cannot convert the "DB01_16" value of type
"Deserialized.Microsoft.Exchange.Data.Directory.ADObjectId" to type "Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter".              + CategoryInfo          : InvalidData: (:) [Get-MailboxDatabase], ParameterBindin...mationException                                        + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MailboxDatabase                                                         + PSComputerName        : srv16.gandalf.local        

WARNING: Database  is not mounted. This database holds PF mailbox Mailbox Lex IT and must be mounted.
Cannot process argument transformation on parameter 'Identity'. Cannot convert the "DB01_16" value of type
"Deserialized.Microsoft.Exchange.Data.Directory.ADObjectId" to type "Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter".
    + CategoryInfo          : InvalidData: (:) [Get-MailboxDatabase], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MailboxDatabase
    + PSComputerName        : srv16.gandalf.local

Liked the script or had a problem? Let us know at ExToolsFeedback@microsoft.com
Get-FolderData : You cannot call a method on a null-valued expression.
At E:\Scripts\publicfolders\SourceSideValidations.ps1:2629 char:19
+ ... olderData = Get-FolderData -StartFresh $StartFresh -SlowTraversal $Sl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-FolderData], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull,Get-FolderData
dpaulson45 commented 3 weeks ago

This is an issue with serialization data signing on your server. It is possible the Auth Cert isn't properly configured on all the servers. Please run Health Checker and the Monitor Exchange Auth Certificate script on the server.

https://microsoft.github.io/CSS-Exchange/Admin/MonitorExchangeAuthCertificate/

After doing this, you may need to restart IIS or reboot the computer to get the desired results.