<?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: Error ODBC connecting to Athena data migrated from mongoldb in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-ODBC-connecting-to-Athena-data-migrated-from-mongoldb/m-p/4012972#M53748</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/766052"&gt;@jhonatanacelas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It sounds like the issue lies in the column names that contain the '$' symbol, which Athena does not handle well. You can try the following methods and check if they can resolve your problem:&lt;BR /&gt;1. Modify the info in data source with any one of the following ones:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Column Name Escaping&lt;/STRONG&gt;:&amp;nbsp;If your column names contain special characters like “$,” you should enclose them in double quotes when referencing them in your queries.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Column Aliasing&lt;/STRONG&gt;:&amp;nbsp;For example, if you have a column named “_id,” you can alias it as “id” without the special character.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;2. Reconnect to the &lt;SPAN&gt;Athena&amp;nbsp;&lt;/SPAN&gt;connector with modified query&lt;/P&gt;
&lt;P&gt;3. Refresh the data&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 08:28:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-27T08:28:00Z</dc:date>
    <item>
      <title>Error ODBC connecting to Athena data migrated from mongoldb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-ODBC-connecting-to-Athena-data-migrated-from-mongoldb/m-p/4010231#M53719</link>
      <description>&lt;P&gt;I created a DMS task on aws to fetch the collections as CSV files into s3 bucket, and then I using a crawler the columns were mapped on Athena table, however when I tried &amp;nbsp;to use the Athena connector on Power BI as source of data I'm getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error de OLE DB u ODBC: [DataSource.Error] ODBC: ERROR [HY000] [AmazonAthena][AthenaClientError]:&lt;BR /&gt;ErrorType: 1502, ExceptionMessage: io.trino spi.TrinoException: Error: name expected at the position 24 of array &amp;lt; struct&amp;lt; _id:struct&amp;lt;Saw:string&amp;gt;,namestring,country_alpha_2_code:string &amp;gt;&amp;gt;' but '$' is found.&lt;BR /&gt;(Service: null; Status Code: 0; Error Code: null; Request ID: null; Proxy: null).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that there are $ symbols on column names. do you know what to do on this case ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 03:00:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-ODBC-connecting-to-Athena-data-migrated-from-mongoldb/m-p/4010231#M53719</guid>
      <dc:creator>jhonatanacelas</dc:creator>
      <dc:date>2024-06-26T03:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error ODBC connecting to Athena data migrated from mongoldb</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-ODBC-connecting-to-Athena-data-migrated-from-mongoldb/m-p/4012972#M53748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/766052"&gt;@jhonatanacelas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It sounds like the issue lies in the column names that contain the '$' symbol, which Athena does not handle well. You can try the following methods and check if they can resolve your problem:&lt;BR /&gt;1. Modify the info in data source with any one of the following ones:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Column Name Escaping&lt;/STRONG&gt;:&amp;nbsp;If your column names contain special characters like “$,” you should enclose them in double quotes when referencing them in your queries.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;Column Aliasing&lt;/STRONG&gt;:&amp;nbsp;For example, if you have a column named “_id,” you can alias it as “id” without the special character.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;2. Reconnect to the &lt;SPAN&gt;Athena&amp;nbsp;&lt;/SPAN&gt;connector with modified query&lt;/P&gt;
&lt;P&gt;3. Refresh the data&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-ODBC-connecting-to-Athena-data-migrated-from-mongoldb/m-p/4012972#M53748</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T08:28:00Z</dc:date>
    </item>
  </channel>
</rss>

