Skip to Content
0
Jan 20, 2021 at 01:16 PM

Show page map not working for OData v2 apps

835 Views

Dear Experts,

I developed 6 Fiori Elements apps with FE Tools on a CAP app. Two of them consume OData v2 services, and the other ones consume OData v4 services.

The Shop Page map functionality runs fine for the v4 apps, but it doesn't for v2, showing a blank screen instead of the pages structure.

I noticed that v2 apps were not detected by the Application Modeler:

I also noticed an error in the Application Modeler extensions log:

19:12:11 [ERROR] - Error getting config for project 'c:\Users\mmauri\ipWorkspace\sfcSandbox'. Error was: [Error: at Object.A [as readCapServiceMetadataEdmx] (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:122:46010) at async ProjectProvider.readAnnotationFiles (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:122:38847) at async Object.m [as generateSapuxConfig] (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:357:792277) at async E (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:594:70867) at async FioriToolsFSImpl.I [as _projectContentProvider] (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:594:73321) at async FioriToolsFSImpl.readDirectory (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:122:70831) at async ConfigTreeDataProvider.getChildren (c:\Users\mmauri\.vscode\extensions\sapse.sap-ux-application-modeler-extension-1.0.24\dist\extension-min.js:594:66423) at async m.fetchChildrenNodes (c:\Users\mmauri\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:661:883)]

For testing purposes, I created my v2 apps in two different ways:

- With Data Source "Connect to an OData Service" and http://localhost:4004 (where the service runs)

- With Data Source "Upload a metadata Document" and providing the CAP service metadata file.

And then I noticed some weird behavior: the Page map for V2 apps works fine if I add the app folder to the current Workspace, but stop working after reloading VSCode. I have prepared a short video to illustrate it, watch it here: gif / mp4

Any help would be appreciated.

Best regards,

Marc

Attachments

picture1.png (33.9 kB)
picture2.png (86.0 kB)