title: xs-app.json/routes/0: Format validation failed (Route references unknown destination "service-destination")
body: <p>trying to install the approuter currently, following this tutorial:</p>
  
  <p><a href="https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/" rel="nofollow noreferrer">https://blogs.sap.com/2017/07/18/step-7-with-sap-s4hana-cloud-sdk-secure-your-application-on-sap-cloud-platform-cloudfoundry/</a></p>
  
  <p>When pushing the approuter to CF, I get an destination error:</p>
  
  <blockquote>
    <p>xs-app.json/routes/0: Format validation failed (Route references unknown destination "service-destination")</p>
  </blockquote>
  
  <p>This is my manifest.yml:</p>
  
  <pre><code>---
  applications:
  - name: xyz
    command: 'node approuter/approuter.js'
    host: xyz-93deb1cd-7b72-4060-94e7-21342342
    path: approuter
    memory: 128M
    buildpack: https://github.com/cloudfoundry/nodejs-buildpack
    env:
      TENANT_HOST_PATTERN: 'xyz(.*).cfapps.eu10.hana.ondemand.com'
      destinations: "[{"name":"service-destination", "url": "https://gfuowbasdatq19agtuthorizations-srv.cfapps.eu10.hana.ondemand.com", "forwardAuthToken": true}]"
      SAP_JWT_TRUST_ACL: '[{"clientid" : "*", "identityzone" : "*"}]'
  
    services:
      - my-xsuaa
      - service-destination
  </code></pre>
  
  <p>This is my xs-app.json:</p>
  
  <pre><code>{
    "routes": [{
      "source": "/",
      "target": "/",
      "destination": "service-destination"
    }]
  }
  </code></pre>
  
  <p>Where is the application actually searching for this destination? I created it in my CF-account as well, pointing to my service-url.</p>