cancel
Showing results for 
Search instead for 
Did you mean: 

the service definition does not exist. Error after adding two user provided services

sucheno
Participant
0 Kudos
3,848

Hello,

I am trying to add two user provided services to access 2 different classic schemas in my container.

DB module build and adding synonyms are working fine if I add only any one of those services, but not success if I add both of them at once.

I have added two seperate .hdbgrants files for these services. ( these files are built successfully before building DB module)

Have you succeeded to consume 2 user provided services in the same project?

Can anyone help to figure out whats going wrong here?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

sucheno
Participant
0 Kudos

Hi,

After raising this to SAP, This issue has been confirmed as bug and they are planning to release the fix in July.

I followed this workaround meanwhile. You can use the physical service name instead of WebIDE generated logical name as below.

      - name: SCHEMA1-grantor
      - name: SCHEMA2-grantor
----
resources:
  - name: SCHEMA1-grantor
    type: org.cloudfoundry.existing-service
  - name: SCHEMA2-grantor
    type: org.cloudfoundry.existing-service

However, Below is the WebIDE default and recommended way of using after the bug fix.

 - name: cross-container-service-1
        group: SERVICE_REPLACEMENTS
        properties:
          key: ServiceName_1
          service: ~{the-service-name}
                            
      - name: cross-container-service-2
        group: SERVICE_REPLACEMENTS
        properties:
          key: ServiceName_2
          service: ~{the-service-name}                      
----
resources:
  - name: cross-container-service-1
    parameters:
       service-name: SCHEMA1-grantor
    properties:
       the-service-name: ${service-name}
    type: org.cloudfoundry.existing-service

  - name: cross-container-service-2
    parameters:
       service-name: SCHEMA2-grantor
    properties:
       the-service-name: ${service-name}
    type: org.cloudfoundry.existing-service

Hope this helps.

Regards,

Suchen Oguri.

Answers (0)