<?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: Problem using sa_install_feature() in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843596#M4874439</link>
    <description>&lt;P&gt;Bingo! The archive st_geometry_config.tgz contains the file epsg_uom.dat - and this archive is missing in the deployment.&lt;/P&gt;
&lt;P&gt;It seems to be an issue of the deployment assistent...&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2011 02:10:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-07T02:10:53Z</dc:date>
    <item>
      <title>Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaq-p/13843586</link>
      <description>&lt;P&gt;I'm using this script on my development machine (SA 12.0.1.3298 dev. edit) to append predefined UOM, SRS and spatial compatibility functions:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;IF&lt;/SPAN&gt; &lt;SPAN class="p"&gt;((&lt;/SPAN&gt;&lt;SPAN class="n"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;count&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="o"&gt;*&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="n"&gt;SYSSPATIALREFERENCESYSTEM&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="mi"&gt;10&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;THEN&lt;/SPAN&gt; 
  &lt;SPAN class="n"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="n"&gt;sa_install_feature&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'st_geometry_predefined_uom'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
  &lt;SPAN class="n"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="n"&gt;sa_install_feature&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'st_geometry_predefined_srs'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
  &lt;SPAN class="n"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="n"&gt;sa_install_feature&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'st_geometry_compat_func'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;END&lt;/SPAN&gt; &lt;SPAN class="n"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;That works fine in ISQL. Now we try to deploy SA-12.0.0.2483 (oem) using the deployment assistent. After installing on a "clean" machine (WinXP SP3) and executing this script in dbisqlc results in an error:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;Error&lt;/SPAN&gt; &lt;SPAN class="o"&gt;-&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;156&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;Invalid&lt;/SPAN&gt; &lt;SPAN class="n"&gt;expression&lt;/SPAN&gt; &lt;SPAN class="n"&gt;at&lt;/SPAN&gt; &lt;SPAN class="s"&gt;'ST_Geometry::ST_LoadConfigurationData('&lt;/SPAN&gt;&lt;SPAN class="n"&gt;epsg_uom&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;dat&lt;/SPAN&gt;&lt;SPAN class="s"&gt;')'&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;42&lt;/SPAN&gt;&lt;SPAN class="n"&gt;W08&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;Does anyone know how to solve this problem?&lt;/P&gt;
&lt;P&gt;Thanks, Juergen&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 09:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaq-p/13843586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-06T09:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843587#M4874430</link>
      <description>&lt;P&gt;No, I don't - but as you seem to test a deployment, I would strongly recommend to deploy the same version you're using on your development machine (or at least a 12.0.1 version).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 09:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843587#M4874430</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-07-06T09:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843588#M4874431</link>
      <description>&lt;P&gt;First, test to determine if it is dbisqlc's fault... I doubt it, but it's an easy test (just use dbisqlc instead of dbisql on the development machine). The dbisqlc utility is ancient and (IMO) should not be used for anything important... but that is a value judgement on my part &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The dbo.sa_install_feature() procedure can be examined, even edited, in Sybase Central. &lt;/P&gt;
&lt;P&gt;Try using the stored procedure debugger to step through its execution... you might be able to see where it is failing, in that procedure or another one it calls like dbo.st_geometry_predefined_uom.&lt;/P&gt;
&lt;P&gt;Alternatively, you could try putting MESSAGE STRING ( stuff, more_stuff, etcetera ) TO CONSOLE statements inside those procedures to see what is going on.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 11:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843588#M4874431</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-07-06T11:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843590#M4874433</link>
      <description>&lt;P&gt;Oh, yes... 12.0.0.2483 is the original GA... IMO under no circumstances should anyone deploy that.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 11:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843590#M4874433</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-07-06T11:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843591#M4874434</link>
      <description>&lt;P&gt;&lt;A href="https://sqlanywhere-forum.sap.com/users/26/volker-barth/"&gt;@Volker&lt;/A&gt;: Clearly, you needed more reputation points, so I promoted your comment to an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 11:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843591#M4874434</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-07-06T11:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843592#M4874435</link>
      <description>&lt;P&gt;Many thanks for your reply.
I think it's not an issue with dbisqlc, because we noticed the same problem inside our app using NativeDB as client component.&lt;/P&gt;
&lt;P&gt;With your help now I found the code causing the problem:
The sa_install_feature procedure calls st_geometry_predefined_uom or st_geometry_predefined_srs (depending on the parameter). In both of them there is the last line containing the expression addressed by the error message:&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="o"&gt;...&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;openstring&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;value&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;ST_Geometry::&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ST_LoadConfigurationData&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;'epsg_srs.dat'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;))&lt;/SPAN&gt; &lt;SPAN class="n"&gt;with&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="o"&gt;...&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;end&lt;/P&gt;
&lt;P&gt;So I know the line but I don't know the reason and I don't know how to fix it. It looks like being an issue of a missing file, but on my development machine it works and there I cannot find a file 'epsg_srs.dat'.&lt;/P&gt;
&lt;P&gt;Note: I changed deployment to 12.0.1.3324. The problem persists.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 11:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843592#M4874435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-06T11:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843593#M4874436</link>
      <description>&lt;P&gt;From the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbreference/sa-install-feature-sysproc.html"&gt;docs&lt;/A&gt;:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Feature name definitions are provided in the st_geometry_config.tgz file located in the scripts directory. If the file is removed and you attempt to install features that are dependent on the file, an error is returned.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But if that file is missing, I would expect an error with SQLCODE -1438 (SQLE_SLERR_CONFIG_FILE_ERR).&lt;/P&gt;
&lt;P&gt;Just guessing...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843593#M4874436</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-07-06T12:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843594#M4874437</link>
      <description>&lt;P&gt;&lt;A href="https://sqlanywhere-forum.sap.com/users/2/breck-carter/"&gt;@Breck&lt;/A&gt;: Sure, but unfortunately they don't seem to get counted, cf. the &lt;A href="http://sqlanywhere-forum.sap.com/users/26/volker-barth/reputation/"&gt;summary&lt;/A&gt;...&lt;/P&gt;
&lt;P&gt;No, I don't mind, it won't affect whether a party's coming:)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 13:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843594#M4874437</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-07-06T13:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843595#M4874438</link>
      <description>&lt;P&gt;The error was "Invalid expression at 'ST_Geometry::ST_LoadConfigurationData('epsg_uom.dat')'" which sounds a lot more basic than "can't find epsg_uom.dat"... it's reads like a fundamental syntax error, not a runtime semantic error.&lt;/P&gt;
&lt;P&gt;...and that was probably just about as helpful as "try waving a dead chicken over the keyboard" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2011 17:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843595#M4874438</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2011-07-06T17:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843596#M4874439</link>
      <description>&lt;P&gt;Bingo! The archive st_geometry_config.tgz contains the file epsg_uom.dat - and this archive is missing in the deployment.&lt;/P&gt;
&lt;P&gt;It seems to be an issue of the deployment assistent...&lt;/P&gt;
&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 02:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843596#M4874439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-07T02:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using sa_install_feature()</title>
      <link>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843589#M4874432</link>
      <description>&lt;P&gt;The DeploymentWizard.exe "forgets" to include the file st_geometry_config.tgz into the MSI.
When I copy this file to the scripts folder then it works!&lt;/P&gt;
&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 02:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/problem-using-sa-install-feature/qaa-p/13843589#M4874432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-07T02:51:58Z</dc:date>
    </item>
  </channel>
</rss>

