New-PublicFolderMigration Request Error

Hi,

I am trying to run the below command but with the following error:

New-PublicFolderMigrationRequest -SourceDatabase (Get-PublicFolderDatabase -Server HO-EX2010-PF) -CSVData (Get-Content C:\PFMigration\PFMailboxMap.csv -Encoding Byte)

However I am getting the following error:

Object Reference not set to an instance of the object

I can see this in event viewer but it doesn't seem to give much detail, anyone else seen this?

(PID 2280, Thread 11) Task New-PublicFolderMigrationRequest throwing unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Exchange.Management.RecipientTasks.NewRequest`1.AutoSelectRequestQueueForPFRequest(OrganizationId orgId)
   at Microsoft.Exchange.Management.RecipientTasks.NewPublicFolderMigrationRequest.InternalValidate()
   at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__b()
   at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed).

Many Thanks


Jason

August 22nd, 2015 6:14pm

What happens if you just put the database identity in there instead of the Get-PublicFolderDatabase?

Or, try one of the following cmdlets.

New-PublicFolderMigrationRequest -SourceDatabase (Get-PublicFolderDatabase -Server HO-EX2010-PF).Identity -CSVData (Get-Content C:\PFMigration\PFMailboxMap.csv -Encoding Byte)

or

New-PublicFolderMigrationRequest -SourceDatabase (Get-PublicFolderDatabase -Server HO-EX2010-PF).DistinguishedName -CSVData (Get-Content C:\PFMigration\PFMailboxMap.csv -Encoding Byte)

Free Windows Admin Tool Kit Click here and download it now
August 22nd, 2015 7:30pm

Hi,

At times in Exchange 2013, If you remove the Public Folder Mailbox which holds the Master hierarchy abruptly, or deleting Using Adsiedit.msc , It doesnt get removed properly. Where as a result of that master hierarchy goes disappeared. Even if you Create Public Folders it will create as Secondary hierarchy.

So in the First place. We need to check the Hidden Master hierarchy. Running the Below Command, it will show Which mailbox is the Master hierarchy.

Get-OrganizationConfig | Format-List Name,RootPublicFolderMailbox

Get the ExchangeGuid Value from RootPubicFolderMailbox, and then run

Get-Mailbox PublicFolder | FL Name,ExchangeGuid

Now you should see which Public Folder holds the Master hierarchy. Post and let me know the result.

Best Regards.
August 24th, 2015 4:23am

Hi,

At times in Exchange 2013, If you remove the Public Folder Mailbox which holds the Master hierarchy abruptly, or deleting Using Adsiedit.msc , It doesnt get removed properly. Where as a result of that master hierarchy goes disappeared. Even if you Create Public Folders it will create as Secondary hierarchy.

So in the First place. We need to check the Hidden Master hierarchy. Running the Below Command, it will show Which mailbox is the Master hierarchy.

Get-OrganizationConfig | Format-List Name,RootPublicFolderMailbox

Get the ExchangeGuid Value from RootPubicFolderMailbox, and then run

Get-Mailbox PublicFolder | FL Name,ExchangeGuid

Now you should see which Public Folder holds the Master hierarchy. Post and let me know the result.

Best Regards.
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2015 4:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics