SAP-samples / abap-platform-refscen-flight

SFlight is back! This is the Flight Reference Scenario for the ABAP RESTful Application Programming Model.
Apache License 2.0
249 stars 98 forks source link

Publish service failed - 'Test object cannot be created in foreign namespace' #14

Closed itsmesabari closed 1 year ago

itsmesabari commented 1 year ago

Hi ,

I have successfully pulled this repo to my on-premise system 2022.

I am facing issue in the below step - Publish failed with error 'Test object cannot be created in foreign namespace' To generate service artifacts for the service bindings: In each service binding, choose the button Publish or choose Publish local service endpoint in the top right corner of the editor.

Please suggest

image

I missed the below step and deleted the /DMO/ namespace locally by selecting the pop shown during pull request. Do not delete the /DMO/ namespace locally because the pull operation will fail if no suiting namespace exists in your package.

Thanks,

MarinaBlank commented 1 year ago

Hi itsmesabari,

Depending on the configuration of your client in the system, it is not possible to publish the service via the publish button in the service binding. Instead, you have to use Gateway tools to publish it. I recently included a note in the README file that addresses this issue. Please see Service Binding - Service Transport for instructions on how to publish the service with Gateway Tools.

Best regards, Marina

itsmesabari commented 1 year ago

Thanks @MarinaBlank for the update.

Publish button is enabled, but we are getting error. Is there any setting we need to make in the system ? Please suggest.

MarinaBlank commented 1 year ago

Hi Itsemesabari,

Publishing via the "Publish" button does not work. You have to use the gateway tools indicated in Service Binding - Service Transport.

Best regards, Marina