<?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: ValueError when attempting to import Urban API as a Python module to ArcGIS Online Notebook in ArcGIS Urban API Questions</title>
    <link>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1640803#M40</link>
    <description>&lt;P&gt;Hi Ridley,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for reporting this. I was able to reproduce the error and our team will have a look at this. I will get back to you as soon as we fixed the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if you have any other questions.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Aug 2025 08:24:13 GMT</pubDate>
    <dc:creator>ThierryWeber</dc:creator>
    <dc:date>2025-08-11T08:24:13Z</dc:date>
    <item>
      <title>ValueError when attempting to import Urban API as a Python module to ArcGIS Online Notebook</title>
      <link>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1640080#M39</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a number of ArcGIS Online Notebooks that leverage the Urban API to maintain my Urban models. Today I discovered that they are no longer functional, and error out when attempting to import the Urban API as a Python module. (Specifically they return&amp;nbsp;&lt;EM&gt;ValueError: Schema already has Time=Time&lt;/EM&gt;). I have not made any changes to the code, leading me to believe the issue may be being caused by a recent update to the API.&lt;/P&gt;&lt;P&gt;For ease of testing, I've created a public version of the first few cells of these Notebooks so you can test the issue. The third cell returns the error for me when run:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/home/item.html?id=33d1a0aabb6d498cb52dde98b8bb9809" target="_blank"&gt;arcgis.com/home/item.html?id=33d1a0aabb6d498cb52dde98b8bb9809&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 16:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1640080#M39</guid>
      <dc:creator>RidleySoudack</dc:creator>
      <dc:date>2025-08-07T16:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: ValueError when attempting to import Urban API as a Python module to ArcGIS Online Notebook</title>
      <link>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1640803#M40</link>
      <description>&lt;P&gt;Hi Ridley,&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for reporting this. I was able to reproduce the error and our team will have a look at this. I will get back to you as soon as we fixed the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if you have any other questions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 08:24:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1640803#M40</guid>
      <dc:creator>ThierryWeber</dc:creator>
      <dc:date>2025-08-11T08:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: ValueError when attempting to import Urban API as a Python module to ArcGIS Online Notebook</title>
      <link>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1643140#M41</link>
      <description>&lt;P&gt;Hi Ridley,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We found the cause of the ValueError. We added a&amp;nbsp;&lt;SPAN&gt;type 'Time'&amp;nbsp;to our schema which leads to this error, as by default the generated code for the schema includes some time-related utility types.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution:&amp;nbsp;&lt;BR /&gt;Add the following argument to the sgql generator:&amp;nbsp;&lt;SPAN&gt;'--exclude-default-types=Time'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New sgql generator code:&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;!sgqlc-codegen schema --exclude-default-types=Time urban_api_schema.json urban_api_schema.py&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;This solves the error for me. We will also adjust the documentation to include this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2025 05:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1643140#M41</guid>
      <dc:creator>ThierryWeber</dc:creator>
      <dc:date>2025-08-19T05:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: ValueError when attempting to import Urban API as a Python module to ArcGIS Online Notebook</title>
      <link>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1645616#M42</link>
      <description>&lt;P&gt;Hi Thierry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for following up and for the solution - just confirming this works on my end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great week!&lt;/P&gt;&lt;P&gt;Ridley&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 14:23:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-urban-api-questions/valueerror-when-attempting-to-import-urban-api-as/m-p/1645616#M42</guid>
      <dc:creator>RidleySoudack</dc:creator>
      <dc:date>2025-08-26T14:23:15Z</dc:date>
    </item>
  </channel>
</rss>

