<?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: Error while retrieving destination in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691619#M4762002</link>
    <description>&lt;P&gt;Hi Edson, &lt;/P&gt;&lt;P&gt;What does the URL look like when you're calling the service? Please share the dataSources configuration in your manifest.json if this is where you are making the call from, as you might need to switch from an absolute to a relative URL. &lt;/P&gt;&lt;P&gt;Of course, this would only work if your BTP destination and your xs-app json are configured correctly. &lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 10:30:13 GMT</pubDate>
    <dc:creator>leonikussmaul</dc:creator>
    <dc:date>2023-03-07T10:30:13Z</dc:date>
    <item>
      <title>Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaq-p/12691617</link>
      <description>&lt;P&gt;Hello Experts.&lt;/P&gt;
  &lt;P&gt;We are having a problem with an App that is Deployed in BTP, this herd calls an Odata that is hosted in the Odata provisioning, which works without a problem, showing the Metadata.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2144808-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But when opening the app, a 500 error appears and it does not show Odata data.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2144809-image.png" /&gt;&lt;BR /&gt;Reviewing the Error Log, I get the following message.&lt;BR /&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;GET request to ...0.0.1/odata/SAP/.../$metadata?sap-language=ES 
completed with status 500 Error while retrieving destination SAP_HCM_ODP from destination service. HTTP status code: 404, token details: 
{"subdomain":"cross-prd-conecta-u8rodjdd",
 "serviceInstanceId":"84aa3622-cf06-474d-aee6-0171ddf58acc",
 "clientId":"sb-clone84aa3622cf06474daee60171ddf58acc!b60514|destination-xsappname!b62",
 "expiration":1678174796,"roleCollections":[]}&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;(the points are to cover the url for confidentiality issues)&lt;BR /&gt;&lt;BR /&gt;Honestly we are very lost, we don't know why it may be failing, so I turn to you for any help or suggestion that could help us solve this problem.&lt;BR /&gt;&lt;BR /&gt;We already reviewed everything that occurred to us, between the destination, the server deployment, the roles and profiles in the users.&lt;BR /&gt;&lt;BR /&gt;We appreciate each and every one of your responses. &lt;BR /&gt;&lt;BR /&gt;Greetings. &lt;BR /&gt;Edson.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 20:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaq-p/12691617</guid>
      <dc:creator>former_member1018358</dc:creator>
      <dc:date>2023-03-06T20:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691618#M4762001</link>
      <description>&lt;P&gt;Hii Edson,&lt;/P&gt;&lt;P&gt;Have you added routes in the xs-app.json file?&lt;/P&gt;&lt;P&gt;if not, add the below code and, please fill the pattern with your URL pattern in blank space, which defines if the URL includes odata/SAP then it will call the destination mentioned in the destination.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    "source": "^/__________/(.*)$", // odata/SAP
    "target": "/_______/$1", // odata/SAP
    "authenticationType": "xsuaa",
    "destination": "SAP_HCM_ODP"
}&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Mar 2023 05:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691618#M4762001</guid>
      <dc:creator>fpatel54</dc:creator>
      <dc:date>2023-03-07T05:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691619#M4762002</link>
      <description>&lt;P&gt;Hi Edson, &lt;/P&gt;&lt;P&gt;What does the URL look like when you're calling the service? Please share the dataSources configuration in your manifest.json if this is where you are making the call from, as you might need to switch from an absolute to a relative URL. &lt;/P&gt;&lt;P&gt;Of course, this would only work if your BTP destination and your xs-app json are configured correctly. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 10:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691619#M4762002</guid>
      <dc:creator>leonikussmaul</dc:creator>
      <dc:date>2023-03-07T10:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691620#M4762003</link>
      <description>&lt;P&gt;Hello Fatema.&lt;/P&gt;&lt;P&gt;Thank you for your answer, yes, everything was already configured, both in the files as you tell me, fortunately yesterday we were able to solve it, it turns out that we needed to configure a Destination in the subaccount to which the application was pointing.&lt;/P&gt;&lt;P&gt;It had been configured in another account, so it could not work and therefore, it did not generate the call correctly.&lt;/P&gt;&lt;P&gt;I appreciate your time in answering my question.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;BR /&gt;ebz&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 20:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691620#M4762003</guid>
      <dc:creator>former_member1018358</dc:creator>
      <dc:date>2023-03-07T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691621#M4762004</link>
      <description>&lt;P&gt;Hello Leoni,&lt;/P&gt;&lt;P&gt;First of all, thanks for your comment, exactly what you say, it was something that we reviewed while we saw why it did not call Odata correctly.&lt;/P&gt;&lt;P&gt;The reason why our app did not show information is because the Destination was configured in another subaccount, with a name similar to the one where the app was hosted and this meant that it did not find anything, therefore, it would never view the information.&lt;/P&gt;&lt;P&gt;Correcting that, we were able to access and see that everything was ok.&lt;/P&gt;&lt;P&gt;Thanks for answering my question.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;P&gt;Greetings.&lt;BR /&gt;ebz.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 20:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691621#M4762004</guid>
      <dc:creator>former_member1018358</dc:creator>
      <dc:date>2023-03-07T20:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691622#M4762005</link>
      <description>&lt;P&gt;Great, thanks for the update - please close this question.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 21:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/12691622#M4762005</guid>
      <dc:creator>leonikussmaul</dc:creator>
      <dc:date>2023-03-07T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error while retrieving destination</title>
      <link>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/13950456#M4894173</link>
      <description>&lt;P&gt;I'm getting similar 500 Internal Server error. On checking the Application logs the error is "Error while retrieving destination DIRECT_SERVICE_BINDING from destination service. HTTP status code: 404". On checking the mta.yaml file, there is no DIRECT_SERVICE_BINDING destination, So how to validate what is the correct destination name to be maintained in xs-app.json. FYI; the data source is a local CAP module for binding the Odata v4 service in UI5 app.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varad&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 04:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/error-while-retrieving-destination/qaa-p/13950456#M4894173</guid>
      <dc:creator>VaradBhagwat</dc:creator>
      <dc:date>2024-11-28T04:42:45Z</dc:date>
    </item>
  </channel>
</rss>

