<?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: Make Table View Error in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542588#M72934</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you the owner of the table? If not, see if you can create an editing group and have the table shared to that group. So you have permission to view and edit the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are the owner the table, are you able to sign into enterprise within the script, or are you signed into enterprise when running the script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on what you have said it sounds like its a viewing/permissions error that can be caused by your account permissions. Did your organization recently update enterprise, you may have been assigned the wrong user type.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/user-types-orgs.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/arcgis-online/administer/user-types-orgs.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 17:29:13 GMT</pubDate>
    <dc:creator>BrandonMcAlister</dc:creator>
    <dc:date>2024-09-25T17:29:13Z</dc:date>
    <item>
      <title>Make Table View Error</title>
      <link>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542498#M72932</link>
      <description>&lt;P&gt;arcpy.management.MakeTableView has been working in the past but not sure why its suddenly not working.. still have to see if there were upgrades etc that might have effected this but figured I would see if there was something i was doing wrong ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the script I get an error&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;ERROR 000732: Input Table: Dataset &lt;A href="https://url/hosting/rest/services/Hosted/Adopt/FeatureServer/1?token=XXR3Pg4riCpWUxGaZ691nv8G6JKmO3-KufqXjtm8PBxxxxxommIBGzPECSrBrjSVZMG135nXa4BusS2LamyWkRiiooiBYgRUxp9" target="_blank"&gt;https://url/hosting/rest/services/Hosted/Adopt/FeatureServer/1?token=XXR3Pg4riCpWUxGaZ691nv8G6JKmO3-KufqXjtm8PBxxxxxommIBGzPECSrBrjSVZMG135nXa4BusS2LamyWkRiiooiBYgRUxp9&lt;/A&gt; does not exist or is not supported&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Failed to execute (MakeTableView).&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;BUT if I copy that URL with the token as seen above in the error it navigates and opens the REST for that table with NO issues... It exists... why is it telling me it does not exist or not supported... Does this NOT work on an Enterprise Hosted Feature Layer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;# VERSION 1
    url = r"https://url/hosting/rest/services/Hosted/Adopt/FeatureServer/"
    inputFeatureTable = url + '1'  # index of 1 meaning the TABLE 
    whereClause = "IMPORTED = 'No'"
    arcpy.management.MakeTableView(inputFeatureTable, "fLyr", whereClause, "", "")

# VERSION 2
    inputFeatureTable = r"https://url/hosting/rest/services/Hosted/Adopt/FeatureServer/1?token=" + currenttoken
    whereClause = "IMPORTED = 'No'"
    arcpy.management.MakeTableView(inputFeatureTable, "fLyr", whereClause, "", "")
    
# VERSION 3    
arcpy.management.MakeTableView(r"https://url/hosting/rest/services/Hosted/Adopt/FeatureServer/1?token=" + currenttoken, "fLyr", "IMPORTED = 'No'", "", "")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 14:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542498#M72932</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-09-25T14:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table View Error</title>
      <link>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542537#M72933</link>
      <description>&lt;P&gt;For some reason if the hosted FL is not shared public I cannot edit it or see it?&amp;nbsp; That's really weird.. EVEN if I have a token it give that error...&amp;nbsp;&lt;BR /&gt;I Make it public and it works... BUT I cannot have this public...&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 15:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542537#M72933</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-09-25T15:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table View Error</title>
      <link>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542588#M72934</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/633156"&gt;@kapalczynski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you the owner of the table? If not, see if you can create an editing group and have the table shared to that group. So you have permission to view and edit the table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are the owner the table, are you able to sign into enterprise within the script, or are you signed into enterprise when running the script?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on what you have said it sounds like its a viewing/permissions error that can be caused by your account permissions. Did your organization recently update enterprise, you may have been assigned the wrong user type.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/arcgis-online/administer/user-types-orgs.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/arcgis-online/administer/user-types-orgs.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 17:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542588#M72934</guid>
      <dc:creator>BrandonMcAlister</dc:creator>
      <dc:date>2024-09-25T17:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Make Table View Error</title>
      <link>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542605#M72936</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/640285"&gt;@BrandonMcAlister&lt;/a&gt;&amp;nbsp; Thanks... Yea that seems to have been it... Weird... I was using an Admin User to do this edit... I just assumed because it was an admin user it would have global permissions to make the edit... As soon as I added it to the group it worked... THANKS AGAIN&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 17:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/make-table-view-error/m-p/1542605#M72936</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-09-25T17:58:08Z</dc:date>
    </item>
  </channel>
</rss>

