<?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>Question Re: Table not found in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848559#M4879402</link>
    <description>&lt;P&gt;Running Version 12.0.1.3436 which is the latest EBF.
Using DECLARE LOCAL TEMPORARY TABLE.
The sp has not changed.&lt;/P&gt;
&lt;P&gt;It seems to fail at various places but occasionaly runs perfectly.
Most recently failed on this statement: "delete from zt_temp;"&lt;/P&gt;
&lt;P&gt;zt_temp had been referenced in various inserts and updates previously in the sp.&lt;/P&gt;
&lt;P&gt;I've tried running this maually and using an event but both fail.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2011 15:37:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-19T15:37:02Z</dc:date>
    <item>
      <title>Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaq-p/13848553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've upgraded to v12 and am encountering a strange problem.&lt;/P&gt;
&lt;P&gt;I run a watcom sp which loads about 30 text files into local temp tables and processes the data before adding it to the database.  All temp tables are declared "not transactional".&lt;/P&gt;
&lt;P&gt;I'm now getting random "Table '%1' not found" errors at random places in the code.
The procedure hasn't been changed.  It does call an external DLL but it's not failing at this point, only on a select into the temp.&lt;/P&gt;
&lt;P&gt;I'm at a loss!&lt;/P&gt;
&lt;P&gt;TC&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 12:34:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaq-p/13848553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T12:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848555#M4879398</link>
      <description>&lt;P&gt;From what version are you upgrading?&lt;/P&gt;
&lt;P&gt;IIRC, in v9 there was a change w.r.t. &lt;STRONG&gt;local temporary tables&lt;/STRONG&gt;: Before that, they could be declared with an owner name, so it was possible to declare local temporary names with the same table name (but a different owner name). Might this be an issue here?&lt;/P&gt;
&lt;P&gt;Though according to the &lt;A href="http://dcx.sybase.com/index.html#1201/en/sachanges/unloading-reloading-upgrading-newjasper.html"&gt;v12 docs&lt;/A&gt; that would imply a failure already in the upgrade process...&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848555#M4879398</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-09-19T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848556#M4879399</link>
      <description>&lt;P&gt;Thanks for you answer.&lt;/P&gt;
&lt;P&gt;V10 to 12.  No owner names on temp tables. No temp tables duplicate main table names.&lt;/P&gt;
&lt;P&gt;Code has always worked before&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848556#M4879399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848557#M4879400</link>
      <description>&lt;P&gt;Is it possible that you have declared the temporary tables in a scope-specific way that you were not aware of previously? (e.g. &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbreference/create-local-temporary-table-statement.html"&gt;CREATE LOCAL TEMPORARY TABLE&lt;/A&gt; vs. &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbreference/declare-local-temporary-table-statement.html"&gt;DECLARE LOCAL TEMPORARY TABLE&lt;/A&gt; )?&lt;/P&gt;
&lt;P&gt;Can you post a code sample of your stored procedure as a new comment to this question?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 14:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848557#M4879400</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2011-09-19T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848558#M4879401</link>
      <description>&lt;P&gt;What specific version and build of 12.x are you running? (SELECT @@version)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 14:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848558#M4879401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T14:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848559#M4879402</link>
      <description>&lt;P&gt;Running Version 12.0.1.3436 which is the latest EBF.
Using DECLARE LOCAL TEMPORARY TABLE.
The sp has not changed.&lt;/P&gt;
&lt;P&gt;It seems to fail at various places but occasionaly runs perfectly.
Most recently failed on this statement: "delete from zt_temp;"&lt;/P&gt;
&lt;P&gt;zt_temp had been referenced in various inserts and updates previously in the sp.&lt;/P&gt;
&lt;P&gt;I've tried running this maually and using an event but both fail.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 15:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848559#M4879402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-19T15:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848560#M4879403</link>
      <description>&lt;P&gt;Can you try to put MESSAGE statements (or separate error handlers) in the SP to have more control on where or when the control flow stops?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2011 15:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848560#M4879403</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-09-19T15:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848554#M4879397</link>
      <description>&lt;P&gt;There were some recent changes to made to the logic that encompasses stored procedure execution in order to correct a defect related to the inlining of SELECT statements within procedures and SQL user-defined functions. It is possible that your issue may be related, but we'll need more information (preferably a repro, which it sounds like you have) in order to diagnose the problem. &lt;/P&gt;
&lt;P&gt;Do you have a support plan?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2011 08:09:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848554#M4879397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-20T08:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table not found</title>
      <link>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848561#M4879404</link>
      <description>&lt;P&gt;Sorry for the late reply but have been doing a lot of testing.&lt;/P&gt;
&lt;P&gt;I've been running the routine every 30 mins using an event and finding that it fails 2 times out of 6 on accessing different local temp tables.&lt;/P&gt;
&lt;P&gt;I've also found that if I substitute an external CLR DLL which loads a file the fault clears.&lt;/P&gt;
&lt;P&gt;Neither the DLL, or the call to the DLL is failing; it seems to fail randomly thoughout the SP but only when accessing a temp tabel.&lt;/P&gt;
&lt;P&gt;We don't have a support plan.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2011 16:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/table-not-found/qaa-p/13848561#M4879404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T16:06:56Z</dc:date>
    </item>
  </channel>
</rss>

