<?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 Error with ArcGIS Service Area API call  'code': 400, 'extendedCode': -2147024809, 'message': 'Invalid or missing input parameters. in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/error-with-arcgis-service-area-api-call-code-400/m-p/1420294#M1210</link>
    <description>&lt;P&gt;Hi, I made API call for service area but getting below error.&lt;BR /&gt;Couldn't understand what is the problem in the pasted code.&lt;BR /&gt;&lt;STRONG&gt;Please suggest me options to resolve it.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;{'error': {'code': 400, 'extendedCode': -2147024809, 'message': 'Invalid or missing input parameters.', 'details': ['Invalid input coordinates [spatialReference].']}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;url = "&lt;A href="https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World/solveServiceArea" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World/solveServiceArea&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;facilities={&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 4326&lt;BR /&gt;},&lt;BR /&gt;"features": [&lt;BR /&gt;{&lt;BR /&gt;"geometry": {&lt;BR /&gt;"x": -118.806574,&lt;BR /&gt;"y": 34.013606&lt;BR /&gt;},&lt;BR /&gt;"attributes": {&lt;BR /&gt;"Name": "Fire Station 34",&lt;BR /&gt;"Attr_TravelTime": 4&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"geometry": {&lt;BR /&gt;"x": -118.729687,&lt;BR /&gt;"y": 34.070172&lt;BR /&gt;},&lt;BR /&gt;"attributes": {&lt;BR /&gt;"Name": "Fire Station 29",&lt;BR /&gt;"Attr_TravelTime": 5&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;params = {&lt;BR /&gt;"f": "json",&lt;BR /&gt;"token": "hidden token",&lt;BR /&gt;"facilities":facilities ,#"-118.806574, 34.013606 ;-118.729687, 34.070172"&lt;BR /&gt;"defaultBreaks": [10], # Distance in miles for the service areas&lt;BR /&gt;"travelDirection": "esriNATravelDirectionToFacility",&lt;BR /&gt;"outSR": 4326&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Make POST request to solveServiceArea API&lt;BR /&gt;response = requests.post(url, data=params)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 08:44:11 GMT</pubDate>
    <dc:creator>SangamRaj</dc:creator>
    <dc:date>2024-05-08T08:44:11Z</dc:date>
    <item>
      <title>Error with ArcGIS Service Area API call  'code': 400, 'extendedCode': -2147024809, 'message': 'Invalid or missing input parameters.</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/error-with-arcgis-service-area-api-call-code-400/m-p/1420294#M1210</link>
      <description>&lt;P&gt;Hi, I made API call for service area but getting below error.&lt;BR /&gt;Couldn't understand what is the problem in the pasted code.&lt;BR /&gt;&lt;STRONG&gt;Please suggest me options to resolve it.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;{'error': {'code': 400, 'extendedCode': -2147024809, 'message': 'Invalid or missing input parameters.', 'details': ['Invalid input coordinates [spatialReference].']}}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;url = "&lt;A href="https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World/solveServiceArea" target="_blank"&gt;https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World/solveServiceArea&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;facilities={&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 4326&lt;BR /&gt;},&lt;BR /&gt;"features": [&lt;BR /&gt;{&lt;BR /&gt;"geometry": {&lt;BR /&gt;"x": -118.806574,&lt;BR /&gt;"y": 34.013606&lt;BR /&gt;},&lt;BR /&gt;"attributes": {&lt;BR /&gt;"Name": "Fire Station 34",&lt;BR /&gt;"Attr_TravelTime": 4&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"geometry": {&lt;BR /&gt;"x": -118.729687,&lt;BR /&gt;"y": 34.070172&lt;BR /&gt;},&lt;BR /&gt;"attributes": {&lt;BR /&gt;"Name": "Fire Station 29",&lt;BR /&gt;"Attr_TravelTime": 5&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;params = {&lt;BR /&gt;"f": "json",&lt;BR /&gt;"token": "hidden token",&lt;BR /&gt;"facilities":facilities ,#"-118.806574, 34.013606 ;-118.729687, 34.070172"&lt;BR /&gt;"defaultBreaks": [10], # Distance in miles for the service areas&lt;BR /&gt;"travelDirection": "esriNATravelDirectionToFacility",&lt;BR /&gt;"outSR": 4326&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Make POST request to solveServiceArea API&lt;BR /&gt;response = requests.post(url, data=params)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 08:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/error-with-arcgis-service-area-api-call-code-400/m-p/1420294#M1210</guid>
      <dc:creator>SangamRaj</dc:creator>
      <dc:date>2024-05-08T08:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error with ArcGIS Service Area API call  'code': 400, 'extendedCode': -2147024809, 'message': 'Invalid or missing input parameters.</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/error-with-arcgis-service-area-api-call-code-400/m-p/1642704#M1439</link>
      <description>&lt;P&gt;Use Python multiline string like below and it'll work.&amp;nbsp; To understand why, try out with Postman or VSCode Thunderclient to see each of the key-values of the form encoded fields you'll know why &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;facilities= """{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}"""&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Aug 2025 14:34:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/error-with-arcgis-service-area-api-call-code-400/m-p/1642704#M1439</guid>
      <dc:creator>AndyWong_59stv</dc:creator>
      <dc:date>2025-08-17T14:34:19Z</dc:date>
    </item>
  </channel>
</rss>

