Skip to Content
0

Format validation failed during build of last steps in SAP HANA XSA Group 1: Basic Development

Nov 11, 2016 at 12:53 PM

199

avatar image

Hi Experts,

I'm very new in development on SAP Hana. So I started with tutorials from this page. I got my problems in the last steps of SAP HANA XSA Group 1: Basic Development->Creating a Node.js Module. It looks like, that it was successfully until step 17. But If I run web module I got this error:

Application is starting
11/11/16 11:49:31.512 AM [APP/2251-0] ERR    
11/11/16 11:49:31.512 AM [APP/2251-0] ERR    /hana/shared/HXE/xs/ea_data/hxehost/executionroot/21494958-d97c-42e6-b6a0-f5c29597923e/app/node_modules/approuter/lib/configuration/validators.js:205
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        throw new VError('%s%s: %s', source, jsonValidator.error.dataPath, jsonValidator.error.message);
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        ^
11/11/16 11:49:31.512 AM [APP/2251-0] ERR    VError: xs-app.json/routes/0: Format validation failed (Route references unknown destination "nodejs")
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at validateSchema (/hana/shared/HXE/xs/ea_data/hxehost/executionroot/21494958-d97c-42e6-b6a0-f5c29597923e/app/node_modules/approuter/lib/configuration/validators.js:205:11)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Object.module.exports.validateXsApp (/hana/shared/HXE/xs/ea_data/hxehost/executionroot/21494958-d97c-42e6-b6a0-f5c29597923e/app/node_modules/approuter/lib/configuration/validators.js:56:5)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Object.exports.loadConfiguration (/hana/shared/HXE/xs/ea_data/hxehost/executionroot/21494958-d97c-42e6-b6a0-f5c29597923e/app/node_modules/approuter/lib/configuration/app-config.js:38:16)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at configuration (/hana/shared/HXE/xs/ea_data/hxehost/executionroot/21494958-d97c-42e6-b6a0-f5c29597923e/app/node_modules/approuter/configuration.js:57:26)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Object.<anonymous> (/hana/shared/HXE/xs/ea_data/hxehost/executionroot/21494958-d97c-42e6-b6a0-f5c29597923e/app/node_modules/approuter/approuter.js:18:17)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Module._compile (module.js:409:26)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Object.Module._extensions..js (module.js:416:10)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Module.load (module.js:343:32)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Function.Module._load (module.js:300:12)
11/11/16 11:49:31.512 AM [APP/2251-0] ERR        at Function.Module.runMain (module.js:441:10)
Application failed to run

It looks that I made a mistake in mta.yaml? But I can't find the mistake.

_schema-version: '2.0'
ID: DEV602
description: First Test
version: 0.0.1


modules:
 - name: web
   type: html5
   path: web
   requires:
        - name: dev602_01-uaa
        - name: nodejs
   group: destinations
   properties:
        name: nodejs
        url: ~{url}
        forwardAuthToken: true      
   
 - name: db
   type: hdb
   path: db
   requires:
    - name: hdi-container




 - name: js
   type: nodejs
   path: js
   provides:  
    - name: nodejs
      properties:
        url: "${default-url}"
   requires:
   - name: dev602_01-uaa
   - name: db
   - name: hdi-container


resources:
  - name: dev602_01-uaa
    type: com.sap.xs.uaa
    parameters:
      config_path: ./xs-security.json






  - name: hdi-container
    properties:
       hdi-container-name: ${service-name}
    type: com.sap.xs.hdi-container


Can anyone give me a hint how to solve this error?

Many thanks in advance and a nice weekend

Stefan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Stefan Porges Nov 11, 2016 at 02:47 PM
0

solved by my own, it was a formating problem.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Stefan,

Can you provide the solution for this issue. I have similar issue in my MTA project.

Thanks,
Mahesh

0