<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Maximum length of GPString parameter for a Published Geoprocessing Service. in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387936#M27184</link>
    <description>&lt;P&gt;I tried creating a dummy script for the toolbox that prints more than 9 million input strings in ArcGIS Pro. Unfortunately, it crashed&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;.&amp;nbsp; (My office laptop is 32 GB, I7- gen 13, NVME, RTX 4050) I try to simulate what the ArcGIS Server does if I use the ArcGIS Pro. I think the problem is not in the limitation or platform. Is it possible that your string is saved in a file first? i.e input_data.txt. Then republish the GP service by changing the input format parameter to a file&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 10:09:16 GMT</pubDate>
    <dc:creator>AlexanderDanielPratama</dc:creator>
    <dc:date>2024-02-28T10:09:16Z</dc:date>
    <item>
      <title>Maximum length of GPString parameter for a Published Geoprocessing Service.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1386631#M27177</link>
      <description>&lt;P&gt;There is a Geoprocessing tool that has been published in an ArcGIS server instance. this tool has several parameters defined as GPString.&lt;/P&gt;&lt;P&gt;One of the parameters is intended to receive a collection of objects in WKT format.&lt;/P&gt;&lt;P&gt;Doing some initial test the Geoprocessing service works with any issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the tool is exposed to real examples, it start receiving long strings, it means really loooong strings.&lt;/P&gt;&lt;P&gt;For this case it is send an string with 9.220.000 characters approx. and the service answer is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cristian_Galindo_0-1708935229486.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95789i28F6EE3A05087555/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cristian_Galindo_0-1708935229486.png" alt="Cristian_Galindo_0-1708935229486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When the log of the server is check, it indeed create the job and try to process it, but the Python code of the tool never receives the parameter (As can be seen in the 4th message - it should prints the parameter):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cristian_Galindo_1-1708935409848.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95790iBE433C9A8A2DEB92/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cristian_Galindo_1-1708935409848.png" alt="Cristian_Galindo_1-1708935409848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have trying to figure it, through the documentation, about the limit of the GP parameters, but so far, i have not found it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I found two possible solutions, it is to use the upload task of the GPService and pass the upload item id as a parameter, the other one is to use the SOAP endpoint (but SOAP endpoint are going to be deprecated.....so...better not to implement it)&lt;/P&gt;&lt;P&gt;Does any one know this limitation? probably someone from inside ESRI? (&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/208959"&gt;@SimonSuo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/262744"&gt;@SimonSuo1&lt;/a&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 08:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1386631#M27177</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2024-02-26T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GPString parameter for a Published Geoprocessing Service.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387873#M27180</link>
      <description>&lt;P&gt;May I clarify first the size of your string in MB? If one string is equal to one byte, so 9 million string is 9 MB cmiiw.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my experience, there is no limitation of string or file, probably the causing of the limits are the Windows IIS&amp;nbsp; or Linux Webserver. You may increase the limit size first.&amp;nbsp;&lt;A href="https://www.inflectra.com/Support/KnowledgeBase/KB306.aspx" target="_blank"&gt;Increasing the Maximum Upload File Size in IIS - KB306 - Inflectra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I never use so many strings in gptool in the parameter. I agree that you better use your first alternative solution.&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 06:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387873#M27180</guid>
      <dc:creator>AlexanderDanielPratama</dc:creator>
      <dc:date>2024-02-28T06:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GPString parameter for a Published Geoprocessing Service.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387907#M27182</link>
      <description>&lt;P&gt;Hello Alexander, as you state, and under my knowledge this string is about 9 Mb.&lt;/P&gt;&lt;P&gt;taking into account your proposed solution I can state that I have a WebAdaptor configured in IIS 10, it allows by default 30Mb as maxAllowedContentLenght, that should enough for this use case. As I an using a POST call, the size of the limit on the query string should not affect.&lt;/P&gt;&lt;P&gt;do you have any other suggestion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387907#M27182</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2024-02-28T08:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GPString parameter for a Published Geoprocessing Service.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387936#M27184</link>
      <description>&lt;P&gt;I tried creating a dummy script for the toolbox that prints more than 9 million input strings in ArcGIS Pro. Unfortunately, it crashed&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;.&amp;nbsp; (My office laptop is 32 GB, I7- gen 13, NVME, RTX 4050) I try to simulate what the ArcGIS Server does if I use the ArcGIS Pro. I think the problem is not in the limitation or platform. Is it possible that your string is saved in a file first? i.e input_data.txt. Then republish the GP service by changing the input format parameter to a file&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 10:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387936#M27184</guid>
      <dc:creator>AlexanderDanielPratama</dc:creator>
      <dc:date>2024-02-28T10:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Maximum length of GPString parameter for a Published Geoprocessing Service.</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387940#M27185</link>
      <description>&lt;P&gt;Hi Alexander,&amp;nbsp;&lt;/P&gt;&lt;P&gt;my use case is to receive one (1) string with 9.220.000 characters as a GPString.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 10:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/maximum-length-of-gpstring-parameter-for-a/m-p/1387940#M27185</guid>
      <dc:creator>Cristian_Galindo</dc:creator>
      <dc:date>2024-02-28T10:27:24Z</dc:date>
    </item>
  </channel>
</rss>

