New-MailboxExportRequest - Error: Relinquishing job because of large delays due to unfavorable server health or budget limitations with a request throttling state 'StalledDueToSource_DiskLatency'.

MICHAEL GREEN 0 Reputation points
2024-11-21T21:23:55.5266667+00:00

I am trying to export a list of mailboxes from Exchange 2016 to .pst files before I delete the users.

However I'm getting a lot of failures - and error messages like :

21/11/2024 7:10:55 AM [LSCSV02] Relinquishing job because of large delays due to unfavorable server health or budget limitations with a request throttling state 'StalledDueToSource_DiskLatency'.

I am using this script to generate the requests

# Run this script in the Exchange Management Shell:
# Path to CSV file
$csvFilePath = "E:\Temp\mailboxes.csv"
# Destination path for PST files
$destinationFolder = "\\LSCS04STOR\Archive2024"
# clear / remove any previous runs of mailbox export records
Get-MailboxExportRequest  | Remove-MailboxExportRequest -Confirm:$false
# Import CSV and loop through each mailbox
Import-Csv -Path $csvFilePath | ForEach-Object {
    $mailbox = $_.EmailAddress
    $pstFilePath = Join-Path -Path $destinationFolder -ChildPath ($mailbox + ".pst")
   
    # Create mailbox export request
    # ORIGINAL
    # New-MailboxExportRequest -Mailbox $mailbox -FilePath $pstFilePath
    # NEW
    # New-MailboxExportRequest -Mailbox $mailbox -FilePath $pstFilePath -BadItemLimit 50 -LargeItemLimit 10
    New-MailboxExportRequest -Mailbox $mailbox -FilePath $pstFilePath -BadItemLimit unlimited -LargeItemLimit unlimited -AcceptLargeDataLoss
   
    # Output status
    Write-Output "Export request created for $mailbox to $pstFilePath"
}

PS] E:\temp>Get-MailboxExportRequest

Name Mailbox Status


MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... InProgress

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Completed

MailboxExport mydomain.local/MyBusiness/Users/SBSUsers... Failed

[PS] E:\temp>Get-MailboxExportRequest -status failed | Get-MailboxExportRequestStatistics -IncludeReport | Format-List > 
 "c:\temp\MailboxExportReport20241121.txt"

I am seeing these sort of errors:

Message : Error: Unable to open PST file '\LSCS04STOR\Archive2024\AmyNewberry.pst'.

Error details: Header file length is zero. If this file is from a

previously failed pst export, please delete the file and resume the export.

--> Header file length is zero. If this file is from a previously failed

pst export, please delete the file and resume the export.

21/11/2024 7:10:55 AM [LSCSV02] Relinquishing job because of large delays due to unfavorable server health or budget limitations with a request throttling state 'StalledDueToSource_DiskLatency'.

Any ideas ? Is there a way to limit the exports to one at a time / singe queue as it seems to be running multiple mailbox extracts at the same time and that looks like it might be the cause of the problem ?

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,357 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mengying Li (Shanghai Wicresoft Co Ltd) 315 Reputation points Microsoft Vendor
    2024-11-22T08:40:36.8533333+00:00

    Hi, @MICHAEL GREEN 

    Thank you for posting your question in the Microsoft Q&A forum.

    According to your description, you are trying to export a list of mailboxes from Exchange 2016 to a .pst file and are getting the error Relinquishing job because of large delays due to unfavorable server health or budget limitations with a request throttling state 'StalledDueToSource_DiskLatency' and are wondering if there is a way to limit the export to one mailbox at a time.

    • First, regarding the error you are receiving, this may be due to the workload management (WLM) limit implemented by Microsoft Exchange Server 2019. By default, WLM limits 10 mailboxes to be moved simultaneously from the same source or the same target.
    1. Before increasing the WLM limit, it is recommended to use the command to delete the previous old requests and files.
    Remove-MoveRequest –Identity “maibox”
    
    1. Then increase the WLM limit through the EMS command to increase the number of mailboxes being moved simultaneously. You can start by changing it to 25 and then check the performance of the Exchange Server during the migration. If you want to further increase the number of mailboxes  being moved simultaneously, it is recommended to increase the WLM limit 10 times in a row.
    $limit = 25
    New-SettingOverride -Name "MdbReplication" -Component WorkloadManagement -Section MdbReplication -Parameters @("MaxConcurrency=$limit") -Reason "Allow more simultaneous mailbox moves"New-SettingOverride -Name "CiAgeOfLastNotification" -Component WorkloadManagement -Section CiAgeOfLastNotification -Parameters @("MaxConcurrency=$limit") -Reason "Allow more simultaneous mailbox moves"New-SettingOverride -Name "MdbAvailability" -Component WorkloadManagement -Section MdbAvailability -Parameters @("MaxConcurrency=$limit") -Reason "Allow more simultaneous mailbox moves"New-SettingOverride -Name "DiskLatency" -Component WorkloadManagement -Section DiskLatency -Parameters @("MaxConcurrency=$limit") -Reason "Allow more simultaneous mailbox moves"New-SettingOverride -Name "MdbDiskLatency" -Component WorkloadManagement -Section MdbDiskLatency -Parameters @("MaxConcurrency=$limit") -Reason "Allow more simultaneous mailbox moves"
    
    1. Enter a new mailbox export request with the highest priority for the same mailbox through the command.
    New-MoveRequest –Identity “mailbox address” –BatchName “Existing Database to New Database Name” –Priority Highest
    
    • Regarding limiting the export to one mailbox at a time, you can try to specify the mailbox using the following command:
    New-MailboxExportRequest -Mailbox <mailbox address> -FilePath <file path>
    

    Refer to: Mailboxes are stalled during a migration - Exchange | Microsoft Learn

    If you have any questions, please feel free to contact me. If the answer is helpful, please click "Accept Answer" because it can help other members of the Microsoft Q&A community who have encountered similar problems and are looking for solutions. Thank you.

    Best,

    Jeanne

    0 comments No comments

  2. MICHAEL GREEN 0 Reputation points
    2024-11-23T05:53:22.7366667+00:00

    Why would you increase the WLM limit to 25 if the problem is that we are getting error messages that say the server can't even handle 10 simultaneously ??

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.