Discussion
Pegasystems Inc.
US
Last activity: 11 Feb 2021 5:21 EST
Resolving Pega Robotics Package Server "the request entity is too large" error
When you use Pega Robotics Package Server installed on IIS, you may get the following error trying to deploy new automation package from Pega Robot Studio or from Visual Studio with Pega Robotics Plugin:
Studio log file contains the following text:
ERROR | 2021-02-06 00:37:15,485 | 1 | 1 | 6948 | STA | OSS | | | PackageServerClient.DeployPackageToServer: The page was not displayed because the request entity is too large.
ERROR | 2021-02-06 00:37:15,487 | 1 | 1 | 6948 | STA | OSS | | | Error publishing package to Pega Server
ERROR | 2021-02-06 00:37:15,495 | 1 | 1 | 6948 | STA | Exception | | | The page was not displayed because the request entity is too large., Verbose Message: General Information
Diagnostic Info:
Diagnostic.MachineName: RDA-02
Diagnostic.FullName: OpenSpan, Version= Proprietary information hidden, Culture=neutral, PublicKeyToken=f5db91edc02d8c5e
Diagnostic.AppDomainName: DefaultDomain
Diagnostic.WindowsIdentity: DOMAIN\username
Diagnostic.ApplicationName: Pega Robot Studio
Exception Information
1) Exception Information
*********************************************
Exception Type: System.ApplicationException
Message: "The page was not displayed because the request entity is too large."
Data: IDictionary (System.Collections.ListDictionaryInternal) with 0 items
TargetSite: Void PublishPackageToManagementConsole(System.String, Byte[], System.Collections.Generic.List`1[OpenSpan.Studio.Solution.DesignProject+DeploymentProfile], System.String)
HelpLink: NULL
Source: "OpenSpan.Studio"
HResult: -2146232832
StackTrace Information
*********************************************
at OpenSpan.Studio.Solution.DesignProject.PublishPackageToManagementConsole(String packageName, Byte[] packageData, List`1 profiles, String packageComment)
This happens because of IIS configuration that does not allow requests larger than specific limit (30 mb for default installation).
To resolve the issue, verify size of your deployment package, check and change two configuration settings in IIS. Here are the detailed steps:
- Open IIS Manager
- Select the Package Server site
- Double click “Configuration Editor”
- Select
system.webServer
and thenserverRuntime
- Check and modify the
uploadReadAheadSize
value in bytes (so that its value is larger than package size or use maximum value 2147483647) - Click “Apply”
- Select the Package Server site once again
- Double click "Request Filtering"
- Click "Edit Feature Settings..."
- Check and modify the
Maximum allowed content length (Bytes)
(so that its value is also larger than package size or use maximum value 2147483647) - Click "OK"
- Restart Package Server site