<?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: There is an error during the draw &amp;lt;layer name&amp;gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&amp;lt;DB name&amp;gt;,(2.) &amp;lt;service Account&amp;gt;,(3.) &amp;lt;view/table&amp;gt;',(4.) ]. in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337640#M12996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't log this with Esri support, but I'm guessing it's related to the format of the query that the ODBC driver is expecting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL Server Management Studio, for instance, you can issue the query in the form that's set in ArcMap by default, and it will run successfully.&amp;nbsp; (SELECT * FROM &amp;lt;database&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;)&amp;nbsp; So I would think that either ArcMap is transforming the query somehow before sending it or the ODBC driver is somehow mishandling the query in such a way that removing the database qualifier fixes it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 12:20:43 GMT</pubDate>
    <dc:creator>MattNicol</dc:creator>
    <dc:date>2017-03-30T12:20:43Z</dc:date>
    <item>
      <title>There is an error during the draw &lt;layer name&gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&lt;DB name&gt;,(2.) &lt;service Account&gt;,(3.) &lt;view/table&gt;',(4.) ].</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337635#M12991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done a search and tried a few things and nothing is working.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error we're getting:&lt;/P&gt;&lt;P&gt;There is an error during the draw &amp;lt;layer name&amp;gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&amp;lt;DB name&amp;gt;,(2.) &amp;lt;service Account&amp;gt;,(3.) &amp;lt;view/table&amp;gt;',(4.) ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's ONLY happening on non-SDE databases.&amp;nbsp; They reside on the same SQL server as SDE.&lt;/P&gt;&lt;P&gt;It's ONLY happening after upgrading to 10.4.1 from 10.3.1.&amp;nbsp; Prior to the upgrade, it all worked fine.&lt;/P&gt;&lt;P&gt;We can view the data just fine in ArcMap, but once the service is published, we get errors in the Service when we try to load it and nothing draws.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we have checked:&lt;/P&gt;&lt;P&gt;We can replicate it on other servers, so it's clearly not a one off.&lt;/P&gt;&lt;P&gt;MSSQL DB version is 2014 Enterprise edition.&lt;/P&gt;&lt;P&gt;Up to date DB drivers.&lt;/P&gt;&lt;P&gt;All ArcGIS for Server updates are done.&lt;/P&gt;&lt;P&gt;Service accounts have permissions in the DB.&lt;/P&gt;&lt;P&gt;Data store is registered and validates.&lt;/P&gt;&lt;P&gt;Service doesn't load in browser OR in ArcMap.&amp;nbsp; Which is as I would expect since I suspect the server.&lt;/P&gt;&lt;P&gt;We occasionally get : &lt;SPAN style="color: #505051; font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #cee6fa; display: inline !important; float: none;"&gt;Failed to rename cache folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We have even tried a test server, creating a new service from scratch and publishing as the service account with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for some ideas.&amp;nbsp; What have we missed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337635#M12991</guid>
      <dc:creator>TracyArchibald</dc:creator>
      <dc:date>2017-02-01T22:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: There is an error during the draw &lt;layer name&gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&lt;DB name&gt;,(2.) &lt;service Account&gt;,(3.) &lt;view/table&gt;',(4.) ].</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337636#M12992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into this in 10.5.&amp;nbsp; Here's how I resolved it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcMap:&lt;/P&gt;&lt;P&gt;Layer properties &amp;gt; Source tab &amp;gt; Change Query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query was in the form of "select &amp;lt;columns&amp;gt; from &lt;STRONG&gt;&amp;lt;database&amp;gt;.&lt;/STRONG&gt;&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the &amp;lt;database&amp;gt; qualifier, and after saving&amp;nbsp;the map document and overwriting the&amp;nbsp;map service, the features correctly displayed in the preview in ArcGIS Server Manager and in my Web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, change the query in ArcMap to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;columns&amp;gt; from &amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 14:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337636#M12992</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2017-02-27T14:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: There is an error during the draw &lt;layer name&gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&lt;DB name&gt;,(2.) &lt;service Account&gt;,(3.) &lt;view/table&gt;',(4.) ].</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337637#M12993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt's solution works!&lt;/P&gt;&lt;P&gt;ESRI support suggested that we either make the service account a system admin (AHAHAHAHA! No) or we use a database user. &amp;nbsp;These solutions work as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 20:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337637#M12993</guid>
      <dc:creator>TracyArchibald</dc:creator>
      <dc:date>2017-03-29T20:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: There is an error during the draw &lt;layer name&gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&lt;DB name&gt;,(2.) &lt;service Account&gt;,(3.) &lt;view/table&gt;',(4.) ].</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337638#M12994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy and Matt,&lt;/P&gt;&lt;P&gt;Did Esri Support give any explanation as to why this occurs?&lt;/P&gt;&lt;P&gt;Was Esri Support able to reproduce the issue in their testing environment?&lt;/P&gt;&lt;P&gt;Are you currently in the process of having a defect logged for this issue with Esri Support?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for updating this thread!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 20:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337638#M12994</guid>
      <dc:creator>AbraamPankhurst</dc:creator>
      <dc:date>2017-03-29T20:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: There is an error during the draw &lt;layer name&gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&lt;DB name&gt;,(2.) &lt;service Account&gt;,(3.) &lt;view/table&gt;',(4.) ].</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337639#M12995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I talked with ESRI Canada and it sounds like it's been logged with ESRI Corporate.&lt;/P&gt;&lt;P&gt;I'd guess probably the same thing that "fixed" secured printing with web tier credentials...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 20:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337639#M12995</guid>
      <dc:creator>TracyArchibald</dc:creator>
      <dc:date>2017-03-29T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: There is an error during the draw &lt;layer name&gt;(1.) DBMS table not found[42S02:[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid object name '&lt;DB name&gt;,(2.) &lt;service Account&gt;,(3.) &lt;view/table&gt;',(4.) ].</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337640#M12996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't log this with Esri support, but I'm guessing it's related to the format of the query that the ODBC driver is expecting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL Server Management Studio, for instance, you can issue the query in the form that's set in ArcMap by default, and it will run successfully.&amp;nbsp; (SELECT * FROM &amp;lt;database&amp;gt;.&amp;lt;schema&amp;gt;.&amp;lt;table&amp;gt;)&amp;nbsp; So I would think that either ArcMap is transforming the query somehow before sending it or the ODBC driver is somehow mishandling the query in such a way that removing the database qualifier fixes it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 12:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/there-is-an-error-during-the-draw-lt-layer-name-gt/m-p/337640#M12996</guid>
      <dc:creator>MattNicol</dc:creator>
      <dc:date>2017-03-30T12:20:43Z</dc:date>
    </item>
  </channel>
</rss>

