<?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: Value changing in ArcGIS Data Interoperability Ques.</title>
    <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019651#M31</link>
    <description>&lt;P&gt;Wait a while we'll rename it too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 15:12:49 GMT</pubDate>
    <dc:creator>BruceHarold</dc:creator>
    <dc:date>2021-01-25T15:12:49Z</dc:date>
    <item>
      <title>Value changing</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019237#M27</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been working on a tool to pull an MS Access query and transform it into a Portal Feature Service.&amp;nbsp; Had it working for a week, but now it does not work anymore.&amp;nbsp; There is one specific problem...&lt;/P&gt;&lt;P&gt;There are 20 fields that contain a simple 1 or 0 in the Access db.&amp;nbsp; When I export to CSV, all of the data in those fields is either a 1 or a 0 for every record.&amp;nbsp; My Portal Feature Service is ready for those values in each of those integer fields with a domain (1=True, 0=False)&amp;nbsp; .&amp;nbsp; When I first made my Workbench Tool, it worked.&amp;nbsp; I had an Access Reader, VertexCreator, CoordinateSystemSetter, Reprojector, and the Portal Feature Service Writer.&lt;/P&gt;&lt;P&gt;Now, for some reason, all of my 1 values are writing as -1 (negative one).&amp;nbsp; I have no idea why.&amp;nbsp; When I look at a table, I see "No" or "-1" now.&amp;nbsp; The 0 (zero) is coming out right, but the 1 is being changed to a -1.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been tearing this tool apart, building new ones, to no avail.&lt;/P&gt;&lt;P&gt;I &lt;U&gt;have found&lt;/U&gt; that the field type of all of these 1/0 fields coming out of the MS Access Reader are defined as "[yesno]".&amp;nbsp; When inspecting the data of the reader and each of the Transformers, I see values of "Yes" and "No" for each.&amp;nbsp; Seeing that the 0 is obviously making it into my Feature Service correctly, I thought that I could just open up the writer and in the Value entry for every one of these fields - and use the Arithmetic Editor and say [fieldname]*-1.&amp;nbsp; Hey, 0*-1=0 (no change) and -1*-1=1 (yay, positive one).&amp;nbsp; BUT alas, it said that I had a string calculation error - can't math "No"*-1.&amp;nbsp; So - how is the No being converted to a 0 and the Yes being converted to a -1.&amp;nbsp; (&lt;EM&gt;I am seriously confused now...&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;So I found the&amp;nbsp;&lt;U&gt;AttributeValueMapper&lt;/U&gt; and, in one field, mapped "Yes" to 1 and "No" to 0.&amp;nbsp; &lt;STRONG&gt;Ran the tool, and it worked.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Well - &lt;STRONG&gt;now I have to format an AttributeValueMapper for another 19 fields????&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;EDIT&lt;/FONT&gt; -&amp;nbsp;&lt;/STRONG&gt;Back in the office, trying to string a number of the AttributeValueMappers together and find that I cannot configure the newly changed value to map to the original field in the next AttributeValueMapper.&amp;nbsp; Can't attach the "_looked_up" field to the correct field in the next one.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="red represents field I want to pass from first AttributeValueMapper to the next." style="width: 775px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4464i32E76C1C17F8EC4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="ValueMappers.PNG" alt="red represents field I want to pass from first AttributeValueMapper to the next." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;red represents field I want to pass from first AttributeValueMapper to the next.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can I just use the same field name in the Destination Attribute to string them together?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Samefield.PNG" style="width: 367px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/4465i3158DCF18307B1BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Samefield.PNG" alt="Samefield.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This does not seem right.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Adam&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 14:03:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019237#M27</guid>
      <dc:creator>AdamRepsher</dc:creator>
      <dc:date>2021-01-25T14:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019607#M29</link>
      <description>&lt;P&gt;Adam you can chain two NullAttributeMapper transformers to do this, in one change 'Yes' to a new value 1 and in the other 'No' to 0.&amp;nbsp; Somewhat unhelpfully BulkAttributeMapper is an alias name for the transformer.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 13:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019607#M29</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2021-01-25T13:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019631#M30</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1173"&gt;@BruceHarold&lt;/a&gt;&amp;nbsp;!&amp;nbsp; I am finding that using FME for the first months is like when I started to use tools in ArcGIS Desktop.&amp;nbsp; I know what I want to do - but what does Esri call it???&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":rolling_on_the_floor_laughing:"&gt;🤣&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Still strange why the reader is interpreting a field instead of just giving me a value.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 14:37:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019631#M30</guid>
      <dc:creator>AdamRepsher</dc:creator>
      <dc:date>2021-01-25T14:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Value changing</title>
      <link>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019651#M31</link>
      <description>&lt;P&gt;Wait a while we'll rename it too &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 15:12:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-data-interoperability-ques/value-changing/m-p/1019651#M31</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2021-01-25T15:12:49Z</dc:date>
    </item>
  </channel>
</rss>

