In some Automation Policies, when opening the 'Edit Input Parameter' and pressing OK in the 'Edit Job/Task Input Parameter' it gives the error: Maximum request length exceeded
search cancel

In some Automation Policies, when opening the 'Edit Input Parameter' and pressing OK in the 'Edit Job/Task Input Parameter' it gives the error: Maximum request length exceeded

book

Article ID: 221335

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

 

In some Automation Policies, when opening the 'Edit Input Parameter' and pressing OK in the 'Edit Job/Task Input Parameter' it returns the error:

HTTP Error 413.1 - Request Entity Too Large

The page was not displayed because the request entity is too large.


In some cases, if the maxRequestLength, MaxUrlLength and UploadReadAheadSize are increased in the IIS, the error page will be different. It will show a generic error page with the following error in the logs:

HTTP Request failed:

/Altiris/AltirisNSAutomation/AutomationPolicyUI/dlgEditActionParamsMapping.aspx?name=CornerStone+Organizational+Group+Automation&actionGuid=0607cc9f-1d2a-4283-8dfe-505340520a39&sessionKey=8ab2dd92-4f78-41f8-9496-9250d97e0470&readonly=False

 Maximum request length exceeded.

 

Environment

ITMS 8.5

Cause

The default maxRequestLength in the default Web.config file is less than what it is needed.

Resolution

Find the Web.config file related to the page, which you get the error for:

  • Here based on the error it was in  'Program Files\Altiris\Altiris NS Automation\Web'

Open Web.config file in Notepad

Changed the 'maxRequestLength' value to 2147483647 or some value more than what you get in the error

You can also check the article:

172865 The request failed with HTTP status 413: Request Entity Too Large.

Additional Information

Check the Windows Event Viewer>Windows Logs>Application Logs.

There should be some warnings showing the exact Web.Config file which causes the issue. The provided solution was for Altiris NS Automation Web Config, but you can get the similar error in different pages and in Application Logs you can find the patch for that file:

Event code: 3004
Event message: Post size exceeded allowed limits.
Event time: 8/9/2021 2:47:33 PM
Event time (UTC): 8/9/2021 6:47:33 PM
Event ID: 4a6132bb8ec449c98c41614b2315b5f1
Event sequence: 361
Event occurrence: 7
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/1/ROOT/Altiris/AltirisNSAutomation-20-132730075316527224
    Trust level: Full
    Application Virtual Path: /Altiris/AltirisNSAutomation
    Application Path: D:\Program Files\Altiris\Altiris NS Automation\Web\