microsoft / microsoft/CSS-Exchange

[Work Item] Setup Log Reviewer - Property "Database" can only be set for group with type "NonUniversalGroup"

Open
#1,792 0 comments 0 reactions 1 assignee View on GitHub

@dpaulson45 is already working on this.

Since Dec 6, 2024.

Setup Setup Log Reviewer Work Item
Dominant language
PowerShell
Stars
1.3k
Forks
395
Avg merge
14h 7m
Merged PRs (30d)
5

Description

Describe the work

Had a customer run into this issue.

[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0472] [2] Beginning processing add-ExchangeServerGroupMember
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0479] [2] Used domain controller Dc1.contoso.com to read object DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0482] [2] Used domain controller Dc1.contoso.com to read object CN=Exch1,OU=Computer,OU=Servers,OU=Computers,OU=Enterprise,DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0484] [2] Used domain controller Dc1.contoso.com to read object DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0487] [2] Used domain controller Dc1.contoso.com to read object CN=Microsoft Exchange System Objects,DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0491] [2] Used domain controller Dc1.contoso.com to read object CN=Exchange Install Domain Servers,CN=Microsoft Exchange System Objects,DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0495] [2] Used domain controller Dc1.contoso.com to read object CN=Exchange Servers,OU=Microsoft Exchange Security Groups,DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0498] [2] Used domain controller Dc1.contoso.com to read object CN=Exchange Trusted Subsystem,OU=Microsoft Exchange Security Groups,DC=contoso,DC=com.
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0506] [2] [ERROR] Property "Database" can only be set for group with type "NonUniversalGroup".
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0507] [2] Ending processing add-ExchangeServerGroupMember
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0509] [1] The following 1 error(s) occurred during task execution:
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0509] [1] 0.  ErrorRecord: Property "Database" can only be set for group with type "NonUniversalGroup".
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0509] [1] 0.  ErrorRecord: Microsoft.Exchange.Data.DataValidationException: Property "Database" can only be set for group with type "NonUniversalGroup".
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Data.Directory.ADDataSession.Save(ADObject instanceToSave, IEnumerable`1 properties, Boolean bypassValidation)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientObjectSession.Save(ADRecipient instanceToSave, String callerFilePath, Int32 callerFileLine, String memberName)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Management.Tasks.SetupTaskBase.Save(ADRecipient o, IRecipientSession recipientSession)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Management.Tasks.AddExchangeServerGroupMember.AddServerToGroup(ADGroup group, IRecipientSession session)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Management.Tasks.AddExchangeServerGroupMember.InternalProcessRecord()
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
[07/21/2023 15:04:01] : [07/21/2023 19:02:53.0510] [1] [ERROR] The following error was generated when "$error.Clear(); 
[07/21/2023 15:04:01] :           [bool] $shouldNotAddCapacityRoleToETSGroup = ($RoleIsDatacenter -or $RoleIsDatacenterDedicated) -and ($RoleRoleName -ieq 'FrontendTransportRole' -or $RoleRoleName -ieq 'CafeRole') -and ($RoleDatacenterCafeRoleInETS -eq $false);
[07/21/2023 15:04:01] :           [bool] $shouldNotAddMafeRoleToETS = ($RoleRoleName -ieq 'CentralAdminFrontEndRole') -and ($RoleDatacenterMafeRoleInETS -eq $false)
[07/21/2023 15:04:01] :           if ($shouldNotAddCapacityRoleToETSGroup -or $shouldNotAddMafeRoleToETS)
[07/21/2023 15:04:01] :           {
[07/21/2023 15:04:01] :             $exsSid = add-ExchangeServerGroupMember -DomainController $RoleDomainController -ServerName $RoleNetBIOSName -SkipEtsGroup
[07/21/2023 15:04:01] :           }
[07/21/2023 15:04:01] :           else
[07/21/2023 15:04:01] :           {
[07/21/2023 15:04:01] :             $exsSid = add-ExchangeServerGroupMember -DomainController $RoleDomainController -ServerName $RoleNetBIOSName
[07/21/2023 15:04:01] :           }
[07/21/2023 15:04:01] :         " was run: "Microsoft.Exchange.Data.DataValidationException: Property "Database" can only be set for group with type "NonUniversalGroup".
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Data.Directory.ADDataSession.Save(ADObject instanceToSave, IEnumerable`1 properties, Boolean bypassValidation)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientObjectSession.Save(ADRecipient instanceToSave, String callerFilePath, Int32 callerFileLine, String memberName)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Management.Tasks.SetupTaskBase.Save(ADRecipient o, IRecipientSession recipientSession)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Management.Tasks.AddExchangeServerGroupMember.AddServerToGroup(ADGroup group, IRecipientSession session)
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Management.Tasks.AddExchangeServerGroupMember.InternalProcessRecord()
[07/21/2023 15:04:01] :    at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
[07/21/2023 15:04:02] :    at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".
[07/21/2023 15:04:02] : [07/21/2023 19:02:53.0510] [1] [ERROR] Property "Database" can only be set for group with type "NonUniversalGroup".
[07/21/2023 15:04:02] : [07/21/2023 19:02:53.0510] [1] [ERROR-REFERENCE] Id=ProvisionServerComponent___18976b00b7534ec0a1067e71b5af495b Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup

Need to create a Setup Log Reviewer rule to check for this.

Additional Context
This was determined to be caused by Exchange Install Domain Servers having a homeMDB value set.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.