<?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: Data services: erroneous expression in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647104#M164331</link>
    <description>&lt;P&gt;Can you try a table without a hash in its name?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 09:03:33 GMT</pubDate>
    <dc:creator>former_member187605</dc:creator>
    <dc:date>2018-03-23T09:03:33Z</dc:date>
    <item>
      <title>Data services: erroneous expression</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaq-p/647101</link>
      <description>&lt;P&gt;We want to truncate tables with a user other than the table owner. Latter has a package providing a procedure to do so.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;    procedure TRUNCATE_TABLE(
        I_TABLE_NAME user_objects.object_name%type,
        I_CASCADE boolean default false
    );&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;We imported the package into the datastore but it complains about datatype impossible to import. As it happens this is fancy boolean. We try to use it anyway as this has a default in a script running in a batch job before the dataflow.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/121106-2018-03-21-15-44-46-sap-data-services-designer-bj.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;We can select the procedure from the list in the select functions dialog (though not in the smart editor??) but get following parameter list.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/121107-2018-03-21-15-40-11-define-input-parameters.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;We only entered the I_TABLE_NAME getting &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DS_DWH_ETL.IL."PKG_OBJECT_MANAGEMENT.TRUNCATE_TABLE"(HE#PATIENT, AL_UNSPECIFIED_PARAM, AL_UNSPECIFIED_PARAM)&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;in the script editor. Executing this returns mentionned error. Also following adaptions do not alter the result.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DS_DWH_ETL.IL."PKG_OBJECT_MANAGEMENT.TRUNCATE_TABLE"(HE#PATIENT)&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DS_DWH_ETL.IL."PKG_OBJECT_MANAGEMENT.TRUNCATE_TABLE"("HE#PATIENT")&lt;/CODE&gt;&lt;/PRE&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DS_DWH_ETL.IL."PKG_OBJECT_MANAGEMENT.TRUNCATE_TABLE"('HE#PATIENT', false)&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;What are we missing?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Btw, we also tried the SQL function with the same result. And we also tried it with a non-fancy named inexisting table hoping for a table or view does not exist error to no avail.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Kind regards Thiemo&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 15:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaq-p/647101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-21T15:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data services: erroneous expression</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647102#M164329</link>
      <description>&lt;P&gt;Why do you want to call a procedure for truncating a table?&lt;/P&gt;
  &lt;P&gt;sql ('&amp;lt;datastore name&amp;gt;','truncate table OWNER.TABLE') will do the trick.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 08:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647102#M164329</guid>
      <dc:creator>former_member187605</dc:creator>
      <dc:date>2018-03-22T08:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data services: erroneous expression</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647103#M164330</link>
      <description>&lt;P&gt;It would if the data store user had the database rights to do so. Our concept is to seperate ownership of the database object from the manipulation of the data. That is, we use an ETL user to manipulate the data in the tables owned by IL. As Oracle's policy on truncate right implies the right to drop it, user ETL has not got it. (We feel this is badly designed but we cannot help it). We therefore created this workaround by package.&lt;/P&gt;
  &lt;P&gt;To get a better feeling about what we are doing wrong, we created a script containing only following.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;sql('DS_DWH_ETL', 'truncate table LZ.HE#PAITENT');&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;However, the error basically persists:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;5616    7496    VAL-030159    22/03/2018 11:45:21    Found erroneous expression &amp;lt;&amp;gt;. Check its syntax and fix this expression.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Mar 2018 18:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647103#M164330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-22T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data services: erroneous expression</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647104#M164331</link>
      <description>&lt;P&gt;Can you try a table without a hash in its name?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 09:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647104#M164331</guid>
      <dc:creator>former_member187605</dc:creator>
      <dc:date>2018-03-23T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data services: erroneous expression</title>
      <link>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647105#M164332</link>
      <description>&lt;P&gt;The culprit was an empty parameter hand over into the data flow containing the script. All works as expected now.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 11:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-services-erroneous-expression/qaa-p/647105#M164332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-23T11:10:33Z</dc:date>
    </item>
  </channel>
</rss>

