<?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: Add domains to TargetField (existing in target GDB) based on SourceSchema fields in Data Loading Tools Questions</title>
    <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397200#M167</link>
    <description>&lt;P&gt;I want data transfer only but assign domain to a field based on source field values&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 12:35:29 GMT</pubDate>
    <dc:creator>SumitMishra_016</dc:creator>
    <dc:date>2024-03-18T12:35:29Z</dc:date>
    <item>
      <title>Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397174#M165</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Data Loading Tools. Can I add domains to TargetField (existing in target GDB) based on SourceSchema fields if the source does not have domains?&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/147940"&gt;@TedHoward2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 11:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397174#M165</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-18T11:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397197#M166</link>
      <description>&lt;P&gt;Not in data loading tools.&amp;nbsp; They only are for the transfer of data, not schema.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 12:29:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397197#M166</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-03-18T12:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397200#M167</link>
      <description>&lt;P&gt;I want data transfer only but assign domain to a field based on source field values&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 12:35:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397200#M167</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-18T12:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397203#M168</link>
      <description>&lt;P&gt;There is a new capability coming in 3.3 that will create an coded value domain from the values in the column.&amp;nbsp; You could leverage that after transferring the data.&amp;nbsp; At 3.2 and before, you will need to script the process.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 12:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397203#M168</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2024-03-18T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397445#M169</link>
      <description>&lt;P&gt;The term "assign domain" is throwing us off I think. Do you mean load values to a target field that already has a domain? There are a couple ways to do that. As Mike mentions you could script it by writing a python expression to transfer values. You could also create your own Lookup sheet and map source field(s) values to a target value. The Source field does not have to have a domain.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 18:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397445#M169</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2024-03-18T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397687#M170</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/147940"&gt;@TedHoward2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;"Assign Domain" means "&lt;STRONG&gt;Domains&lt;/STRONG&gt;" already exist in the target geodatabase and I have to assign on the basis of source field values. &lt;STRONG&gt;Can I use the base.py to assign domain codes to the target&lt;/STRONG&gt; like the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;def&lt;/SPAN&gt; &lt;SPAN class=""&gt;assign_domain&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;new_level: &lt;SPAN class=""&gt;int&lt;/SPAN&gt;, new_color: &lt;SPAN class=""&gt;int&lt;/SPAN&gt;, new_line_wt: &lt;SPAN class=""&gt;int&lt;/SPAN&gt;, new_linetype: &lt;SPAN class=""&gt;str&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;int&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if&lt;/SPAN&gt;&lt;SPAN&gt; new_level == &lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt; &lt;SPAN class=""&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; new_color == &lt;/SPAN&gt;&lt;SPAN class=""&gt;3&lt;/SPAN&gt; &lt;SPAN class=""&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; new_line_wt == &lt;/SPAN&gt;&lt;SPAN class=""&gt;2&lt;/SPAN&gt; &lt;SPAN class=""&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; new_linetype == &lt;/SPAN&gt;&lt;SPAN class=""&gt;"Solid"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return&lt;/SPAN&gt; &lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and call the function&amp;nbsp;&lt;SPAN&gt;assign_domain(!NewLevel!, !NewColor!, !NewLineWt!, !NewLinetype!) in Expression column of&amp;nbsp;TargetField&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 06:19:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397687#M170</guid>
      <dc:creator>SumitMishra_016</dc:creator>
      <dc:date>2024-03-19T06:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add domains to TargetField (existing in target GDB) based on SourceSchema fields</title>
      <link>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397827#M173</link>
      <description>&lt;P&gt;Yes that’s exactly how it works. I would suggest adding custom expressions to user.py instead of base.py. This will maintain your expressions if you ever run the Update Data Loading Workspace Schema tool.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 14:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-loading-tools-questions/add-domains-to-targetfield-existing-in-target-gdb/m-p/1397827#M173</guid>
      <dc:creator>TedHoward2</dc:creator>
      <dc:date>2024-03-19T14:00:45Z</dc:date>
    </item>
  </channel>
</rss>

