Skip to Content

SAP HANA XSA : Failed to resolve reference for provided property:<...>

I am using HANA Express Edition (SAP-CAL -> GCP ).

I have followed the exercise for creating node js app. But I get above error repeatedly.

I tried some of the online resolution but unable to hack.

1. Port Hint

2. Checked Apps are running in same space

3. Cross checked names and all.

My mta.yaml & app router coide is given below.

Let me know if you need more info to help.

Complete Source can be found at My Git Hub Repository

MTA.YAML

ID: openSAP_hana5
_schema-version: '2.0'
version: 0.0.1
modules:
  - name: web
    type: html5
    path: web
    requires:
      - name: openSAP_hana5-uaa
      - name: ps_js_api
        group: destinations
        properties:
          name: ps-js-backend
          url: '~{psjsurl}'
          forwardAuthToken: true
  - name: psdb
    type: hdb
    path: psdb
    requires:
      - name: hdi_psdb_2
        properties:
          TARGET_CONTAINER: '~{hdi-container-name_2}'
      - name: cross-container-products
        group: SERVICE_REPLACEMENTS
        properties:
          key: ServiceName_Products
          service: '~{product-service-name}'
      - name: cross-container-sflights
        group: SERVICE_REPLACEMENTS
        properties:
          key: ServiceName_Sflights
          service: '~{sflight-service-name}'
      - name: hdi_usrdb
        group: SERVICE_REPLACEMENTS
        properties:
          key: ServiceName_UserDB
          service: '~{hdi-container-usrdb}'
  - name: usrdb
    type: hdb
    path: usrdb
    requires:
      - name: hdi_usrdb
  - name: ps_js
    type: nodejs
    path: ps_js
    provides:
      - name: ps_js_api
        properties:
          psjsurl: '${default-url}'
    requires:
      - name: openSAP_hana5-uaa
      - name: hdi_psdb_2
      - name: psdb
resources:
  - name: openSAP_hana5-uaa
    type: com.sap.xs.uaa
    parameters:
      config_path: ./xs-security.json
  - name: hdi_psdb_2
    parameters:
      config:
        schema: hana5
    properties:
      hdi-container-name_2: '${service-name}'
    type: com.sap.xs.hdi-container
  - name: cross-container-products
    parameters:
      service-name: CROSS_SCHEMA_PRODUCTS
    properties:
      product-service-name: '${service-name}'
    type: org.cloudfoundry.existing-service
  - name: cross-container-sflights
    parameters:
      service-name: CROSS_SCHEMA_SFLIGHTS
    properties:
      sflight-service-name: '${service-name}'
    type: org.cloudfoundry.existing-service
  - name: hdi_usrdb
    parameters:
      config:
        schema: usrdb
    properties:
      hdi-container-usrdb: '${service-name}'
    type: com.sap.xs.hdi-container
provider: eprsonline
description: Software Development on SAP HANA (Update Q4/2016)
copyright: eprsonline


XS-APP.JSON

{
	"welcomeFile": "index.html",
	"authenticationMethod": "route",
	"routes": [{
	  "source": "(.*)(.xsjs)",
	  "destination": "ps-js-backend",
	  "csrfProtection": false,
	  "authenticationType": "xsuaa"
	}, {
	  "source": "(.*)(.xsodata)",
	  "destination": "ps-js-backend",
	  "authenticationType": "xsuaa"
	}]


}

Tagged: Lucia Subatin Thomas Jung

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 05, 2018 at 04:48 PM

    How about showing us more of the error log. Just getting a single line fragment in the title isn't really enough.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 06, 2018 at 02:57 PM

    That tells me you are trying to start the web module before you have started the Node.js module. You have to run the modules in the correct order otherwise the Web module fails when it can't communicate with the node.js module it sits in front of.

    Add comment
    10|10000 characters needed characters exceeded