on 2021 Dec 03 7:16 AM
Hello,
I try to use Fiori Generator to connect to an oData service provided by an SAP ECC System which runs on premise.
After setting everything in generator like this

But Generator fails with this error message
{"message":"@sap/fiori:app generator failed - process.on(uncaughtException) process.on(uncaughtException) Cannot read property 'edmx' of undefined","stack":"TypeError: Cannot read property 'edmx' of undefined\n\tat default_1.prompting (C:\\Users\\myuser\\AppData\\Roaming\\npm\\node_modules\\@sap\\generator-fiori\\generators\\fiori-elements\\app\\index.js:1:117676)\n\tat processTicksAndRejections (internal/process/task_queues.js:93:5)"}
VS Code 1.62.3
SAP Fiori Tools Extension Pack 1.4.3
node.js 16.13.1
What's wrong here?
EDIT: I was able to create an app by connecting to Nothwind service https://services.odata.org/V2/Northwind/Northwind.svc/. So it seems to be caused by some way connecting to local ECC system. Are there any ICF services necessary (between the oData services itself obviously)?
Patrick
Request clarification before answering.
Hello,
after spending hours into this issue it finally works with some limitations. Our System landscape consists of a SAP ECC System (Backend) and a standalone Fiori Gateway system (frontend).
I'm not able to connect to frontend system (Option "Connect to a system"). For some reason, it always return "URI invalid", which is not true
I'm not able to connect to frontend system (Option "Connect to oData Service"). This gets caused as the system is configured to use SAML Authentication, which fails here. It is possible to also use basic authentication, but Yeoman generator doesn't provide this option.
But I'm able to connect to backend system (Option "Connect to oData Service"). After authentication, it provides a list of all known services (/ifwnd/maint_service). Read carefully, it provides a list of all KNOWN services, which means, it also shows services which are known but corresponding ICF node is inactive. You can't distinct if the service is really active or configured but inactive. If you choose a service which is inactive, the error I've posted as initial question occurs. Because we use this service in production (registered and active on frontend system) I didn't check if it also runs on backend system.
This just as reference, if someone else run into this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did some additional tests using Postman to verify the service I want to connect to.
We use some identity provider (SAML) which does authentication. So when I call an URL, an implicit redirect occurs to authenticate.
This doesn't work correct in postman which makes me think might me also true for VS Code generator. But when I provide credentials as basic auth in postman, the service metadata gets retrieved correctly without any further error.
So when I connect to the service as oData service instead ABAP on-premise, how can I provide credentials? I don't see any fields where I can enter credentials but they're necessary to connect successfully

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.