BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
bheinsius
Lapis Lazuli | Level 10

Hi,

 

I have a webapp that calls a SAS Stored Process with method=post and about 15000 name/value pairs.

Only the first 9998 name/value pairs come through to the SAS Stored Process.

Is there a limit?

 

Regards,

Bart

1 ACCEPTED SOLUTION

Accepted Solutions
bheinsius
Lapis Lazuli | Level 10

SAS TS pointed me to the Tomat option maxPostSize at https://tomcat.apache.org/tomcat-5.5-doc/config/http.html for SASServer1, which has a default limit of 2MB.

That did not help but on the same page i read this:

 

maxParameterCount

The maximum number of parameters (GET plus POST) which will be automatically parsed by the container. A value of less than 0 means no limit. If not specified, a default of 10000 is used. Note that FailedRequestFilter filter can be used to reject requests that hit the limit.

 

Setting that to 1000000 fixed my problem.

 

The file to update is <sasconfigdir>/Levx/Web/WebAppServer/SASServer1_1/conf/server.xml.

In there add maxParameterCount="1000000" to the <Connector ... />

View solution in original post

3 REPLIES 3
JuanS_OCS
Amethyst | Level 16

Hello @bheinsius,

 

have you tried with different browsers/OS, to check if this statement changes?

 

I don't think there is a limit on STP input parameters (but perhaps someone else can feed us in better), I think the limitation is in the limitations by internet and its tools.

 

https://stackoverflow.com/questions/1051485/what-is-the-character-limit-on-url

 

http://documentation.sas.com/api/docsets/stpug/9.4/content/stpug.pdf?locale=en 

http://support.sas.com/rnd/itech/doc9/dev_guide/stprocess/webinput.html

 

See Input Parameters on both docs.

AllanBowe
Barite | Level 11

Not aware of a limit (other than the url limitation mentioned by Juan) but I can advise the possibility of performance issues with creating that many macro variables in a stored process.  

 

If you are passing a lot of data to an STP by far the best method is to use file (eg CSV) upload.   You can also save yourself a lot of time and effort by using the open source h54s adapter for this kind of task!  The file upload feature is in the development branch, but will be merged soon.

 

 

 

 

 

 

 

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
bheinsius
Lapis Lazuli | Level 10

SAS TS pointed me to the Tomat option maxPostSize at https://tomcat.apache.org/tomcat-5.5-doc/config/http.html for SASServer1, which has a default limit of 2MB.

That did not help but on the same page i read this:

 

maxParameterCount

The maximum number of parameters (GET plus POST) which will be automatically parsed by the container. A value of less than 0 means no limit. If not specified, a default of 10000 is used. Note that FailedRequestFilter filter can be used to reject requests that hit the limit.

 

Setting that to 1000000 fixed my problem.

 

The file to update is <sasconfigdir>/Levx/Web/WebAppServer/SASServer1_1/conf/server.xml.

In there add maxParameterCount="1000000" to the <Connector ... />

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1395 views
  • 2 likes
  • 3 in conversation