<?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 Is it possible to set the field length when publishing a feature layer from a spatially enabled dataframe? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1090848#M62129</link>
    <description>&lt;P&gt;I'm publishing a feature layer from a spatially-enabled dataframe using the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.to_featurelayer" target="_self"&gt;.to_featurelayer&lt;/A&gt; method on the GeoAccessor class. Works great, no issues there.&lt;/P&gt;&lt;P&gt;One of the columns in my SDF contains a comma-separated list of "amenities" for each feature. Obviously, the number of amenities varies by location. When attempting to update a record, I'd found that none of the records in my publish contained the maximum number of amenities, the field length was set to a lower length than what I might need in the future.&lt;/P&gt;&lt;P&gt;Is there a way to explicitly set the field length when publishing through the Python API? I've looked through the documentation and don't see an obvious way to do this but I'm hoping I've missed something.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 16:29:47 GMT</pubDate>
    <dc:creator>JohnMDye</dc:creator>
    <dc:date>2021-08-20T16:29:47Z</dc:date>
    <item>
      <title>Is it possible to set the field length when publishing a feature layer from a spatially enabled dataframe?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1090848#M62129</link>
      <description>&lt;P&gt;I'm publishing a feature layer from a spatially-enabled dataframe using the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.to_featurelayer" target="_self"&gt;.to_featurelayer&lt;/A&gt; method on the GeoAccessor class. Works great, no issues there.&lt;/P&gt;&lt;P&gt;One of the columns in my SDF contains a comma-separated list of "amenities" for each feature. Obviously, the number of amenities varies by location. When attempting to update a record, I'd found that none of the records in my publish contained the maximum number of amenities, the field length was set to a lower length than what I might need in the future.&lt;/P&gt;&lt;P&gt;Is there a way to explicitly set the field length when publishing through the Python API? I've looked through the documentation and don't see an obvious way to do this but I'm hoping I've missed something.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 16:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1090848#M62129</guid>
      <dc:creator>JohnMDye</dc:creator>
      <dc:date>2021-08-20T16:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set the field length when publishing a feature layer from a spatially enabled dataframe?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1361354#M69424</link>
      <description>&lt;P&gt;I'm having the same issue! I even update the field length through AGOL, but when the data updates the field length reverts to 255 characters.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 13:48:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1361354#M69424</guid>
      <dc:creator>HayesBuchanan</dc:creator>
      <dc:date>2023-12-15T13:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to set the field length when publishing a feature layer from a spatially enabled dataframe?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1537417#M72807</link>
      <description>&lt;P&gt;I know this is 3 years ago but did you find a solution? - I have the same problem...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 16:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-set-the-field-length-when/m-p/1537417#M72807</guid>
      <dc:creator>DBlake</dc:creator>
      <dc:date>2024-09-11T16:25:05Z</dc:date>
    </item>
  </channel>
</rss>

