Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create destination service for a UI5 app for Build Work Zone

alkozakiewicz1
Discoverer
0 Kudos
662

Full disclosure: Very experienced developer, but totally new to this product.

I am following the steps for Develop an App for SAP Build Work Zone, standard edition with Your Own Dev Tools.

I am on this page. When I perform the steps to deploy the application, I am getting the following error when it goes to create the destination service: Service broker error: Service broker destination-service-broker failed with: Service broker parameters are invalid: Destination name: contains invalid character.

What I believe is the relevant section of the mta.yaml file is as follows:

resources:
  - name: tutorial.myui5project-destination-service
    type: org.cloudfoundry.managed-service
    parameters:
      service: destination
      service-name: tutorial.myui5project-destination-service
      service-plan: lite
      config:
        HTML5Runtime_enabled: true
        version: 0.0.1
        init_data:
          instance:
            existing_destinations_policy: update
            destinations:
              - Name: ""
                Authentication: NoAuthentication
                ProxyType: Internet
                Type: HTTP
                URL: https://services.odata.org
                HTML5.DynamicDestination: true
                HTML5.ForwardAuthToken: true
 
This was all generated automatically by following the tutorial steps. A lot of Googling and searching the SAP KB has led me nowhere.  Any ideas?
 
Al

 

7 REPLIES 7

junwu
Active Contributor
0 Kudos
641

as very experienced developer, did you ever read the error msg?

gregorw
Active Contributor
0 Kudos
577

Why don't you give your destination a name? How would you expect to use a destination without a name?

0 Kudos
544

#1, the code was generated automatically during the tutorial. 

#2 if, as I assume, I provide a name under destinations:, I get exactly the same error.

 

Al

gregorw
Active Contributor
0 Kudos
542

In Step 4 Create a new destination I can see that the destination is created manually. So it seems that the Instance destination in your mta.yaml was added by one of the yeoman generator steps. Have you tracked the steps with git commits? So you could find out. I would suggest that you remove everything starting at config. Maybe @nicoschoenteich can have a look here and do adjustments to the tutorial. 

nicoschoenteich
Developer Advocate
Developer Advocate
497

There was a recent change in the easy-ui5 project generator, more specifically the model subgenerator, as it can now add a destination and route (xs-app.json) for new data models automatically. We don't want this for this tutorial mission, as we add the route manually and create a manually added subaccount level destination. So when prompted to set up a route and destination as part of "yo easy-ui5 project model", say no. I will update the tutorial accordingly.

I will also update the easy-ui5 generator so that the destination name can't be empty 😅

alkozakiewicz1
Discoverer
0 Kudos
374

Thanks for the answers (except one). If I am understanding correctly (no guarantee) there is now a problem with the tutorial here  in Step 5 as the route is now missing?