Hello. When attempting to open the message queue view in Exchange Toolbox, an error occurs: "Failed to enable constraints. At least one row contains a value that violates non-null, uniqueness, or foreign-key constraints."
All columns of this data table are: NextHopDomain DeliveryType Status MessageCount NextRetryTime LastRetryTime LastError Identity CanSuspend CanResume CanRemove CanForceRetry
System.Data.ConstraintException: Failed to enable constraints. At least one row contains a value that violates non-null, uniqueness, or foreign-key constraints.
All columns of this data table are: NextHopDomain DeliveryType Status MessageCount NextRetryTime LastRetryTime LastError Identity CanSuspend CanResume CanRemove CanForceRetry ---> System.Data.ConstraintException: Failed to enable constraints. At least one row contains a value that violates non-null, uniqueness, or foreign-key constraints.
at System.Data.DataTable.EnableConstraints() at System.Data.DataTable.set_EnforceConstraints(Boolean value) at System.Data.DataTable.EndLoadData() at Microsoft.Exchange.Management.SystemManager.DataTableLoader.MoveRows(DataTable sourceTable, DataTable destinationTable, Boolean forceUseMergeTable) --- End of inner exception stack trace --- at Microsoft.Exchange.Management.SystemManager.DataTableLoader.MoveRows(DataTable sourceTable, DataTable destinationTable, Boolean forceUseMergeTable) at Microsoft.Exchange.Management.SystemManager.DataTableLoader.OnDoRefreshWork(RefreshRequestEventArgs e) at Microsoft.Exchange.Management.SystemManager.RefreshableComponent.worker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
When I check the message queues using the Management Shell with the Get-Queue
command, everything is fine there are no stuck messages. Mail is being sent and received without any issues. But GUI queue doesn't work.
What could this be and how to fix it?