Self-Solve Knowledge Search

Minimize Maximize
Error “The URL-encoded form data is not valid. Operation is not valid due to the...
Title :
Error “The URL-encoded form data is not valid. Operation is not valid due to the current state of object” when defining an SLA in Performance Center
Document ID :
KM00886979
Product - Version:
performance center ;
OS :
Updated :
Wed Jul 02 00:59:15 GMT 2014
Summary :
This issue occurs when adding more than 500 transactions and a procedure is provided to overcome it.
Problem

When defining an SLA in Performance Center (PC) and trying to add more than 500 transactions as in the screenshot below:

image text

Performance Center fails with the following error message:

“The URL-encoded form data is not valid. Operation is not valid due to the current state of object”

image text

Cause
This is due to the default security limitations set by Microsoft .NET Framework. For details visit: http://support.microsoft.com/kb/2661403
Fix

To overcome the issue, follow the steps below:

  1. Ensure that ALM PC is not being used
  2. Navigate to:   <PC Install PATH>\PCWEB\web.config on the PC server
  3. Take a backup copy of the file web.config
  4. Edit the original web.config and find the following tag:
    <configuration>
            <appSettings>
  5. Add a line:
    <add key="aspnet:MaxHttpCollectionKeys" value="20000" />
  6. Restart Internet Information Server (IIS) service by Click Start, click Run type IISReset, and then click OK