<?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: MakeQueryLayer  retrives some integers as 0 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204336#M58841</link>
    <description>&lt;P&gt;Hello Dan&lt;/P&gt;&lt;P&gt;Those colums are Integers&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2022 21:33:25 GMT</pubDate>
    <dc:creator>DiegoMonge_Chinchilla</dc:creator>
    <dc:date>2022-08-18T21:33:25Z</dc:date>
    <item>
      <title>MakeQueryLayer  retrives some integers as 0</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204315#M58838</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;I´m trying to do a MakeQueryLayer with ArcGIS PRO 3.0.1 and it works as expected.&lt;/P&gt;&lt;P&gt;The problem is when I tried to do it in ArcPy and I get Integer Columns as 0 instead of the real value.&lt;/P&gt;&lt;P&gt;I´m using a .sde file conected to a Oracle data base using the instant client 21.06&lt;/P&gt;&lt;P&gt;This is how I get the data using ArcGIS PRO interface (everything looks fine):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoMonge_Chinchilla_0-1660853812007.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48939i71C9D9D7AC66D9D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiegoMonge_Chinchilla_0-1660853812007.png" alt="DiegoMonge_Chinchilla_0-1660853812007.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I get the data using Arcpy on the Notebook, ArcGIS PRO console or using the python.exe enviroment:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoMonge_Chinchilla_1-1660854051425.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48940i5DE9C3E69AC285CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiegoMonge_Chinchilla_1-1660854051425.png" alt="DiegoMonge_Chinchilla_1-1660854051425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;conexion_oracle = '\conexion_oracle.sde'

query = "select ID_VISITA_TECNICA, CAST(ANIO AS INT) AS ANIO, IDENTIFICACION, PRODUCTOR, REGIONAL, CICLO, N, AREA_APLICADA, PESO_SACO, CANTIDAD_SACOS from CRCAFE.ICFSIG_VISITAS_FERTILIZANTES_VW"

arcpy.management.MakeQueryLayer(conexion_oracle, 'fertilizantes', query, 'ID_VISITA_TECNICA')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be&amp;nbsp;&lt;SPAN&gt;appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:30:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204315#M58838</guid>
      <dc:creator>DiegoMonge_Chinchilla</dc:creator>
      <dc:date>2022-08-18T20:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: MakeQueryLayer  retrives some integers as 0</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204325#M58840</link>
      <description>&lt;P&gt;Are those two columns numbers expressed as text/string values? or are they just left justified?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204325#M58840</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-18T21:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: MakeQueryLayer  retrives some integers as 0</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204336#M58841</link>
      <description>&lt;P&gt;Hello Dan&lt;/P&gt;&lt;P&gt;Those colums are Integers&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204336#M58841</guid>
      <dc:creator>DiegoMonge_Chinchilla</dc:creator>
      <dc:date>2022-08-18T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: MakeQueryLayer  retrives some integers as 0</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204339#M58843</link>
      <description>&lt;P&gt;strange... it is almost like the justification has interpreted it as non-integer... try changing the justification in the source columns first otherwise, Tech Support might be your best bet&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 21:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/makequerylayer-retrives-some-integers-as-0/m-p/1204339#M58843</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-18T21:39:34Z</dc:date>
    </item>
  </channel>
</rss>

