I'm trying to add a webmap from an arcgis enterprise portal. I followed the tutorials on esri WebMap API with the following link: WebMap API Reference
I'm getting the following error: Invalid portal item type 'Web Mapping Application', expected 'Web Map'
You can see in the code that I've already specified the type of the portal Item to 'Web Map'
Any Idea about what's happening?
Here's how I'm adding the Webmap: