<?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: [XS Advanced]  HDBEXT - Error during pool.acquire() in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445476#M13342</link>
    <description>&lt;P&gt;Worked for me! Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 10:17:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-10-22T10:17:42Z</dc:date>
    <item>
      <title>[XS Advanced]  HDBEXT - Error during pool.acquire()</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445472#M13338</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;in our projekt we are having a NodeJS application that connects to the HANA database via the node-module "sap-hdbext". Just like in several example regarding that matter we use ExpressJS as our REST-Interface.&lt;BR /&gt;The code where we connect the HDB-Middleware to Express looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/35171-node.png" /&gt;&lt;/P&gt;&lt;P&gt;Then in the express routes we use "var db = req.db" to get a database session from the middleware. On that we are able to call db.exec(...) and so on. Everything works fine so far...at least most of the time. Sometimes we get the following error message as soon as we call one of the routes:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;„error:
SAP_HDBEXT MIDDLEWARE: error during pool.acquire():
{"message":"the predefined session variable cannot be set via
SET command:
XS_APPLICATIONUSER","code":455,"sqlState":"HY000","level":1,"position":0,"status":500}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error:
the predefined session variable cannot be set via SET command:
XS_APPLICATIONUSER”&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So express apparently fails to retrieve a connection from the middleware offered by sap-hdbext. Restarting or redeploying the application doesn't help and it usually affects all NodeJS application using that method of creating db sessions. It does not always affect all users at a time but it does happen to every user once in while without ANY pattern noticable.&lt;/P&gt;&lt;P&gt;Usually after a couple of hours or on the next day everything works fine again without having changed anything.&lt;/P&gt;&lt;P&gt;Has anyone had the same issue or has an idea where it originates?&lt;/P&gt;&lt;P&gt;I'm thankful for any help!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Henrik Lawall&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 13:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445472#M13338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-05-19T13:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: [XS Advanced]  HDBEXT - Error during pool.acquire()</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445473#M13339</link>
      <description>&lt;P&gt;Did you find answer to this question? We have a similar issue with node.js on XSA/ODATA. After few dates, when sapui5 application is run, odata returns set XS_APPLICATIONUSER error. We are doing an investigation, at the moment we think it may be connected to limited resources (we have a minimal set), problem with acquiring connections from db pool, some wrong configuration of JS &amp;lt;-&amp;gt; DB connection (but I believe we have standard set).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445473#M13339</guid>
      <dc:creator>TomaszWilk</dc:creator>
      <dc:date>2017-10-17T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: [XS Advanced]  HDBEXT - Error during pool.acquire()</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445474#M13340</link>
      <description>&lt;P&gt;What is the version of hdbext you are using?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 01:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445474#M13340</guid>
      <dc:creator>lsubatin</dc:creator>
      <dc:date>2017-11-01T01:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: [XS Advanced]  HDBEXT - Error during pool.acquire()</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445475#M13341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I just stumbled over the same error. I was able to fix it by switching two lines of code. It works by first connecting to the HANA middleware before calling the passport authentication.&lt;/P&gt;
  &lt;P&gt;Cheers,&lt;/P&gt;
  &lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445475#M13341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-05T14:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: [XS Advanced]  HDBEXT - Error during pool.acquire()</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445476#M13342</link>
      <description>&lt;P&gt;Worked for me! Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 10:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445476#M13342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-22T10:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: [XS Advanced]  HDBEXT - Error during pool.acquire()</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445477#M13343</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;markus.kurz&lt;/SPAN&gt;,&lt;BR /&gt;It worked for me as well&lt;/P&gt;&lt;P&gt;Thanks,Sachin&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Dec 2021 07:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xs-advanced-hdbext-error-during-pool-acquire/m-p/445477#M13343</guid>
      <dc:creator>sachinbr</dc:creator>
      <dc:date>2021-12-01T07:33:46Z</dc:date>
    </item>
  </channel>
</rss>

