The below error was getting logged on the new controller post DB migration to a new server.
Citrix ConfigSync Service error 505 failed an import " No Items match supplied pattern "
Followed the article https://support.citrix.com/external/article/399385/citrix-configsync-service-error-505-fail.html to enable tracing for the LHC and from the CitrixBrokerConfigSyncReport.html report found that the import was failing on a tag that had a space at the end of the name.
Removing the problem tag fixed the issue.
From the CDF traces it was found that the Config sync errors were pointing to the below failure while adding tag.
"Error was encountered while importing the Broker Service config while attempting , "Add-BrokerTag"
Detailed Analysis
Record 503 event: ConfigSync.ps1 received an updated configuration from the Broker Service and the Configuration Service",""
HaImportDatabase database was created.
New import script zip path: C:\Windows\SERVIC~2\NETWOR~1\AppData\Local\Temp\498bc658-357a-4f6d-b9c1-af35b8aafdb8.zip
Successfully imported the new Central Config Service configuration
Import Script: starting import of Broker Service config",""
ConfigSync.ps1 output: Import Script: Exception: Add-BrokerTag: No items match the supplied pattern
Exception Position: Logging.ps1:199",""
ConfigSync.ps1 output: 20:24:43: Record 505 event: No items match the supplied pattern",""
Citrix ConfigSync Service Error 505 Failed An Import " No Items match supplied pattern "