Enterprise Vault (EV) Office Mail App deployment failed for an exchange organization.

book

Article ID: 100059003

calendar_today

Updated On:

Description

Error Message

WARNING: An unexpected error has occurred and a Watson dump is being generated: Value cannot be null.
Parameter name: constraintProvider
Value cannot be null.
Parameter name: constraintProvider
    + CategoryInfo          : NotSpecified: (:) [New-App], ArgumentNullException
    + FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Exchange.Management.Extension.NewApp
    + PSComputerName        : 

Resolution

Following exchange PowerShell commands can be used to workaround the above issue.

Command to deploy the Office Mail App internally:

 

Add-Type -AssemblyName System.Web
$Mbx = get-mailbox "mailbox"
$uri = new-object system.uri(
    https://EV_server.domain.com/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn= + 
    [System.Web.HttpUtility]::UrlEncode($Mbx.LegacyExchangeDN))
$webclient = New-Object Net.Webclient
$webClient.UseDefaultCredentials = $true
try
{
    $bytes = $webclient.DownloadData($uri)
    New-App -OrganizationApp -DefaultStateForUser:enabled -FileData $bytes
}
catch [Net.WebException]
{
    [Net.HttpWebResponse] $webResponse = [Net.HttpWebResponse]$_.Exception.Response;
    Write-Warning $webResponse.StatusDescription
}

 

Command to deploy the Office Mail App externally:

                               

Add-Type -AssemblyName System.Web
$Mbx = get-mailbox "mailbox"
$uri = new-object system.uri(
    https://EV_server.domain.com/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn= + 
    [System.Web.HttpUtility]::UrlEncode($Mbx.LegacyExchangeDN) + "&BaseURL=https://published_server/EnterpriseVault")

$webclient = New-Object Net.Webclient
$webClient.UseDefaultCredentials = $true
try
{
    $bytes = $webclient.DownloadData($uri)
    New-App -OrganizationApp -DefaultStateForUser:enabled -FileData $bytes
}
catch [Net.WebException]
{
    [Net.HttpWebResponse] $webResponse = [Net.HttpWebResponse]$_.Exception.Response;
    Write-Warning $webResponse.StatusDescription
}

Issue/Introduction

When attempting to deploy the EV Office Mail app using Management Shell for an exchange organization, it may fail with an error “Value cannot be null”.