Ah, if the domain is already created in websitepanel or solidcp before it already has the attributes / address books / abp / oab/ gal to which it will most likely error.
What i normally do in such case is create an organization in SolidCP with a different organization ID. then edit the values in ServiceItemProperties to the original created organization ID (normally domain.com) and then run the enterprise import tool to get all accounts/ pf's / etc back in place.
I've created the organization in the old web panel. This web panel is attached to a SQL Server
After that, I've created a new SQL Server which one is linked to the new SolidControlPanel.
My idea is create a organization in SolidCP with a different Organization ID. After that, I'd modify the address book in order to modify the custom attribute filter to add the new and old organization ID.
After than I would import the users
But I don't know why, when I try to create the organization I receive the error when the domain exist in Exchange organization
Also, as I told you before, Just after I receive the error I see that the domain accepted is deleted from Exchange
Event log
Log Name: MSExchange Management
Source: MSExchange CmdletLogs
Date: 23/04/2019 15:25:05
Event ID: 6
Task Category: General
Level: Error
Keywords: Classic
User: N/A
Computer: EXOPOWNMAIL01.ExchangeOL.es
Description:
Cmdlet failed. Cmdlet Remove-AcceptedDomain, parameters -Identity "prueba1.es" -Confirm "False" -DomainController "EXOINWNDC01.EXCHANGEOL.ES".
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSExchange CmdletLogs" />
<EventID Qualifiers="49152">6</EventID>
<Level>2</Level>
<Task>1</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-04-23T13:25:05.000000000Z" />
<EventRecordID>30518</EventRecordID>
<Channel>MSExchange Management</Channel>
<Computer>EXOPOWNMAIL01.ExchangeOL.es</Computer>
<Security />
</System>
<EventData>
<Data>Remove-AcceptedDomain</Data>
<Data>-Identity "prueba1.es" -Confirm "False" -DomainController "EXOINWNDC01.EXCHANGEOL.ES"</Data>
<Data>ExchangeOL.es/Users/SCPServer_POMAIL01</Data>
<Data>
</Data>
<Data>
</Data>
<Data>Local-Default Host-Unknown</Data>
<Data>19632 w3wp#SolidCP Server asp.net v4.5 Pool</Data>
<Data>
</Data>
<Data>8270</Data>
<Data>00:00:00</Data>
<Data>View Entire Forest: 'True', , User Configuration Domain Controller: 'EXOINWNDC01.EXCHANGEOL.ES', User Preferred Global Catalog: 'EXOINWNDC01.EXCHANGEOL.ES', Preferred Domain Controllers: '{ EXOINWNDC01.EXCHANGEOL.ES }'</Data>
<Data>Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException: The operation couldn't be performed because object 'prueba1.es' couldn't be found on 'EXOINWNDC01.EXCHANGEOL.ES'.
at Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1.GetDataObject[TObject](IIdentityParameter id, IConfigDataProvider session, ObjectId rootID, OptionalIdentityData optionalData, Func`2 notFoundError, Func`2 multipleFoundError, ExchangeErrorCategory errorCategory)
at Microsoft.Exchange.Configuration.Tasks.RemoveTaskBase`2.ResolveDataObject()
at Microsoft.Exchange.Configuration.Tasks.RemoveSystemConfigurationObjectTask`2.ResolveDataObject()
at Microsoft.Exchange.Configuration.Tasks.RemoveTaskBase`2.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.RemoveSystemConfigurationObjectTask`2.InternalValidate()
at Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveAcceptedDomain.InternalValidate()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)</Data>
<Data>Context</Data>
<Data>
</Data>
<Data>Ex6F9304</Data>
<Data>
</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>0 objects execution has been proxied to remote server.</Data>
<Data>
</Data>
<Data>
</Data>
<Data>0</Data>
<Data>ActivityId: a30145a9-87f6-4587-9d0b-9cd7bc519219</Data>
<Data>
</Data>
<Data>
</Data>
<Data>en</Data>
</EventData>
</Event>
also, I receive more events in Exchange Event viewer
Log Name: MSExchange Management
Source: MSExchange CmdletLogs
Date: 23/04/2019 15:25:02
Event ID: 6
Task Category: General
Level: Error
Keywords: Classic
User: N/A
Computer: EXOPOWNMAIL01.ExchangeOL.es
Description:
Cmdlet failed. Cmdlet Get-AddressList, parameters -Identity "pruebax8 Address List" -DomainController "EXOINWNDC01.EXCHANGEOL.ES".
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MSExchange CmdletLogs" />
<EventID Qualifiers="49152">6</EventID>
<Level>2</Level>
<Task>1</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2019-04-23T13:25:02.000000000Z" />
<EventRecordID>30503</EventRecordID>
<Channel>MSExchange Management</Channel>
<Computer>EXOPOWNMAIL01.ExchangeOL.es</Computer>
<Security />
</System>
<EventData>
<Data>Get-AddressList</Data>
<Data>-Identity "pruebax8 Address List" -DomainController "EXOINWNDC01.EXCHANGEOL.ES"</Data>
<Data>ExchangeOL.es/Users/SCPServer_POMAIL01</Data>
<Data>
</Data>
<Data>
</Data>
<Data>Local-Default Host-Unknown</Data>
<Data>19632 w3wp#SolidCP Server asp.net v4.5 Pool</Data>
<Data>
</Data>
<Data>8272</Data>
<Data>00:00:00.0156234</Data>
<Data>View Entire Forest: 'True', , User Configuration Domain Controller: 'EXOINWNDC01.EXCHANGEOL.ES', User Preferred Global Catalog: 'EXOINWNDC01.EXCHANGEOL.ES', Preferred Domain Controllers: '{ EXOINWNDC01.EXCHANGEOL.ES }'</Data>
<Data>Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException: The operation couldn't be performed because object 'pruebax8 Address List' couldn't be found on 'EXOINWNDC01.EXCHANGEOL.ES'.
at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Configuration.Tasks.GetObjectWithIdentityTaskBase`2.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)</Data>
<Data>Context</Data>
<Data>
</Data>
<Data>Ex6F9304</Data>
<Data>
</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>0 objects execution has been proxied to remote server.</Data>
<Data>
</Data>
<Data>
</Data>
<Data>0</Data>
<Data>ActivityId: 59c03d7a-7525-45a8-93c1-cc7b4436ab6d</Data>
<Data>
</Data>
<Data>
</Data>
<Data>en</Data>
</EventData>
</Event>
That is most likely caused by the rollback after it failed to create (SolidCP generally has quite a few rollback scripts to un-do created aspects if a script fails).
So, what could it be the solution?