<?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: SchemaBuilder Error on long/short field mismatch in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/schemabuilder-error-on-long-short-field-mismatch/m-p/1296511#M9918</link>
    <description>&lt;P&gt;To add a specific here, this comes from the Gas and Pipeline UN Foundation Asset Package in the PipelineDevice feature class where the TierName field is long and the assigned Network_5_TierName domain is set as short.&amp;nbsp; I just downloaded the latest version to verify it wasn't an old or modification that was made.&amp;nbsp; But it's there as well.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 22:10:11 GMT</pubDate>
    <dc:creator>BillyBuerger</dc:creator>
    <dc:date>2023-06-06T22:10:11Z</dc:date>
    <item>
      <title>SchemaBuilder Error on long/short field mismatch</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/schemabuilder-error-on-long-short-field-mismatch/m-p/1296477#M9917</link>
      <description>&lt;P&gt;I've been trying to do some schema updates on existing feature classes such as changing a subtype description.&amp;nbsp; I'm using the SchemaBuilder to make the update.&amp;nbsp; As a first test, I was following the example from the SchemaBuilder.Modify(TableDescription) documentation and it kept failing with the message...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Error: The domain field type does not match that of the field it is being assigned to.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As seems to be usual for these kinds of things, there's no mention what field has the error.&amp;nbsp; There are 381 fields in this table so that's a lot of fields to check for what the problem might be.&amp;nbsp; It would be extremely helpful if the error message indicated what field has the issue.&amp;nbsp; I had to delete fields until I didn't get the error and then work down to the specific field.&amp;nbsp; Turns out the issue is that the field type is long but the domain type is short.&amp;nbsp; I understand they don't match but a long can hold any value a short can so it seems to be a non-issue.&amp;nbsp; But more importantly, I can do any of these schema edits manually and Pro doesn't complain and allows the schema changes to occur.&amp;nbsp; It seems that the SchemaBuilder is more picky about what is allowed than Pro is itself.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 20:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/schemabuilder-error-on-long-short-field-mismatch/m-p/1296477#M9917</guid>
      <dc:creator>BillyBuerger</dc:creator>
      <dc:date>2023-06-06T20:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: SchemaBuilder Error on long/short field mismatch</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/schemabuilder-error-on-long-short-field-mismatch/m-p/1296511#M9918</link>
      <description>&lt;P&gt;To add a specific here, this comes from the Gas and Pipeline UN Foundation Asset Package in the PipelineDevice feature class where the TierName field is long and the assigned Network_5_TierName domain is set as short.&amp;nbsp; I just downloaded the latest version to verify it wasn't an old or modification that was made.&amp;nbsp; But it's there as well.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 22:10:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/schemabuilder-error-on-long-short-field-mismatch/m-p/1296511#M9918</guid>
      <dc:creator>BillyBuerger</dc:creator>
      <dc:date>2023-06-06T22:10:11Z</dc:date>
    </item>
  </channel>
</rss>

