A refeance to the included ./desktop-landscape.xml does not exist in the .json file
Hello,
So I am trying to do some edits directly on the app.json file. what I have done is to copy the line "featureActions": "item://menu/{some-uuid}", and add it to other sublayer items, so that they can inherit the same functions when u click on them.
when I upload this app I get the error that a referance to the included desktop-landscape.xml does not exists in the json file. I have looked at the json file an it conatins a referance to that file, so I am unsure of whether its error could be traced to this, or that it has something to do with my edits.
this is the error message in norwegian:

-
Hey Paal Pedersen,
It looks like the error is referencing a "Layout (Desktop-Landscape)" that isn't defined in your app. However, I wouldn't focus too much on that specific error just yet.
From what you're describing, it seems like you're trying to add a Feature Action to a sublayer item. The best approach for this is through the Designer interface, as it ensures your app configuration remains valid. Have you already tried this? If so, is there a particular reason you're not configuring Feature Actions directly on the Map component?
As a best practice, I recommend avoiding manual edits to the app JSON whenever possible. If you do need to make manual changes, I suggest using the JSON editor in Designer (press Ctrl+Shift+E to access it) or leveraging Item Manager to view and edit the app item content. These tools provide a safer and more controlled environment for making changes.
0 -
Hi Paal,
I received the same error a few months back whenever I tried to upload a .zip for an application I had made any changes to, despite the reference to the xml not being altered in any way. It ended up being an issue with how the files were re-zipped. Using an extension like WinZip seemed to resolve the issue, though I'm not sure why and it hasn't been consistent for all of my team members.
It would be great to have this issue investigated, as it can really hinder SDK development.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare