<?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: .ENV File Error when Deploying from BAS in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649386#M4745397</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;jlongie&lt;/SPAN&gt; and thank you for your response!&lt;/P&gt;&lt;P&gt;We had activated the &lt;STRONG&gt;/UI5/&lt;/STRONG&gt; service but did not have &lt;STRONG&gt;/ABAP_REPOSITORY_SRV&lt;/STRONG&gt; activated in transaction &lt;STRONG&gt;/iwfnd/maint_service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regarding the &lt;B&gt;.env&lt;/B&gt; file, I read in SAP Press Book SAP Fiori: Implementation and Development the &lt;B&gt;.env&lt;/B&gt; file goes in the webapp folder.  I'll try with the &lt;B&gt;.env&lt;/B&gt; file in the root directory after we upgrade our SAP Support Pack (mentioned below).&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2150488-page-366.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2150489-page-367.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm receiving the error: &lt;STRONG&gt;SAPUI5 ABAP Repository with name Z_* does not exist&lt;/STRONG&gt; in transaction &lt;B&gt;/n/iwfnd/error_log&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Based on KBA &lt;B&gt;3263424&lt;/B&gt;, this errors is resolved by implementing &lt;B&gt;SAPK-75211INSAPBASIS&lt;/B&gt; as described in Note &lt;B&gt;3212364&lt;/B&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 19:29:45 GMT</pubDate>
    <dc:creator>former_member846077</dc:creator>
    <dc:date>2023-03-15T19:29:45Z</dc:date>
    <item>
      <title>.ENV File Error when Deploying from BAS</title>
      <link>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaq-p/12649384</link>
      <description>&lt;P&gt;Attempting to deploy a Fiori app and migrate from Web IDE to BAS. Deploying to ABAP Backend server. Connection is successfully connected to Gateway Server via Service Center in BAS. SAP UI5 Service is activated in SICF. Connection is successful in BTP Cockpit when testing Connection.&lt;/P&gt;
  &lt;P&gt;CC: &lt;SPAN class="mention-scrubbed"&gt;jlongie&lt;/SPAN&gt; &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;.env file&lt;/STRONG&gt; is created and has Username and Password defined&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2146809-env-file.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Ui5-deploy.yaml&lt;/STRONG&gt; file refers to credentials and is saved&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2146812-ui5-deployyaml-file.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Error after running script &lt;STRONG&gt;NPM RUN DEPLOY&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2146813-error-from-npm-run-deploy-script.png" /&gt;&lt;/P&gt;
  &lt;P&gt;After re-running deployment with debug script &lt;STRONG&gt;set DEBUG=ux-odata-client &amp;amp; npm run deploy &lt;/STRONG&gt;the same error is displayed again&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2146815-debug-script.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaq-p/12649384</guid>
      <dc:creator>former_member846077</dc:creator>
      <dc:date>2023-03-14T13:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: .ENV File Error when Deploying from BAS</title>
      <link>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649385#M4745396</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;A few things to try;&lt;/P&gt;&lt;P&gt;1. env file location&lt;/P&gt;&lt;P&gt;Ensure the .env file is in the root folder and not in your webapp folder. When you deploy, the .env is only detected in the root folder.&lt;/P&gt;&lt;P&gt;2. Validate endpoint&lt;/P&gt;&lt;P&gt;Since you are using a destination try executing the following curl command;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl -L "https://&amp;lt;destination&amp;gt;.dest/sap/opu/odata/UI5/ABAP_REPOSITORY_SRV/$metadata?saml2=disabled" -vs &amp;gt; curl-abap-output.txt 2&amp;gt;&amp;amp;1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Replace &amp;lt;destination&amp;gt; with the name of your destination. This&lt;/P&gt;&lt;P&gt;If using basic authentication, then update the curl command to;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;curl -u &amp;lt;user&amp;gt;:&amp;lt;password&amp;gt; -L "https://&amp;lt;destination&amp;gt;.dest/sap/opu/odata/UI5/ABAP_REPOSITORY_SRV/$metadata?saml2=disabled" -vs &amp;gt; curl-abap-output.txt 2&amp;gt;&amp;amp;1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Review the generated txt file which in some cases will highlight the root cause.&lt;/P&gt;&lt;P&gt;Please also review the following link, ensuring the pre-requisties are completed;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:45996:50742:46000" target="test_blank"&gt;https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:45996:50742:46000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649385#M4745396</guid>
      <dc:creator>jlong</dc:creator>
      <dc:date>2023-03-15T11:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: .ENV File Error when Deploying from BAS</title>
      <link>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649386#M4745397</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;jlongie&lt;/SPAN&gt; and thank you for your response!&lt;/P&gt;&lt;P&gt;We had activated the &lt;STRONG&gt;/UI5/&lt;/STRONG&gt; service but did not have &lt;STRONG&gt;/ABAP_REPOSITORY_SRV&lt;/STRONG&gt; activated in transaction &lt;STRONG&gt;/iwfnd/maint_service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regarding the &lt;B&gt;.env&lt;/B&gt; file, I read in SAP Press Book SAP Fiori: Implementation and Development the &lt;B&gt;.env&lt;/B&gt; file goes in the webapp folder.  I'll try with the &lt;B&gt;.env&lt;/B&gt; file in the root directory after we upgrade our SAP Support Pack (mentioned below).&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2150488-page-366.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2150489-page-367.png" /&gt;&lt;/P&gt;&lt;P&gt;I'm receiving the error: &lt;STRONG&gt;SAPUI5 ABAP Repository with name Z_* does not exist&lt;/STRONG&gt; in transaction &lt;B&gt;/n/iwfnd/error_log&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Based on KBA &lt;B&gt;3263424&lt;/B&gt;, this errors is resolved by implementing &lt;B&gt;SAPK-75211INSAPBASIS&lt;/B&gt; as described in Note &lt;B&gt;3212364&lt;/B&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 19:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649386#M4745397</guid>
      <dc:creator>former_member846077</dc:creator>
      <dc:date>2023-03-15T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: .ENV File Error when Deploying from BAS</title>
      <link>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649387#M4745398</link>
      <description>&lt;P&gt;The .env file should be in the root of your project since the webapp folder is packaged up into a zip and deployed to your target ABAP system thus you have exposed your username and password.&lt;/P&gt;&lt;P&gt;The .env should be appended to both your .gitignore and if you are including it in your webapp folder, to exclude it by updating the ui5-deploy.yaml configuration to exclude this file.&lt;/P&gt;&lt;P&gt;I'm not familiar with the book reference but for best practice I would not include specific configurations in your webapp folder.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 09:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/env-file-error-when-deploying-from-bas/qaa-p/12649387#M4745398</guid>
      <dc:creator>jlong</dc:creator>
      <dc:date>2023-03-16T09:59:06Z</dc:date>
    </item>
  </channel>
</rss>

