Closed adam8797 closed 8 months ago
Hi @adam8797, I responded on StackOverflow. For now, if you can, I'd recommend following the Custom Functions tutorial to debug with VS Code, which you can do on Windows or Excel for the web.
@keyur32 thanks for the reply. I’ll try to keep the two threads in sync, but I figure the issue is probably better for discussion.
To recap the SO comments, I’m running the following:
Visual Studio 2019 Version 16.2.5 with Office Developer Tools 16.0.28818.01
And I also attached Fiddler and confirmed that the only web request Excel makes is to the home page
I just attempted to run the example project found in https://github.com/OfficeDev/Excel-Custom-Functions by doing the following:
npm install
npm start
WEF Logs
9/19/2019 13:22:06 Medium Web Add-In Runtime Logging Session Started
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Script", Line=35, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Page", Line=38, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Metadata", Line=41, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Namespace", Line=44, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Script", Line=35, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Page", Line=38, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Metadata", Line=41, CharPosition=14
9/19/2019 13:22:06 Monitorable Manifest Skipped unrecognized XML element for add-in ID : ca968be6-628b-4f14-ba3c-3e614effa9bd, Location : Element Namespace "http://schemas.microsoft.com/office/taskpaneappversionoverrides" : Element Name "Namespace", Line=44, CharPosition=14
Regarding to https://github.com/OfficeDev/Excel-Custom-Functions, you may miss a step "npm run build" before "npm start" is executed.
@xiaochunms just ran it agin on a fresh copy of the repo and I saw no change. Logs still complain about unrecognized XML
Hey, thanks for the additional details. I would like to double check your version of office as that channel may not yet support custom functions.
Just to double check. Open excel > get addins > in the store dialog search for an addin: “Data drum”. Does it appear and let you insert the addin and custom function?
@keyur32 I tried to add it, but I’m leaning inconclusive on this one. The add-in “Data Drum” failed to install and start, with my WEF logs complaining that access to the Manifest XML failed (similar to the errors from the initial post). However, I’m also behind a corporate firewall and its very possible that I’m just not able to install external add-ins. I tried some others from the store, and nothing would install.
There is a tutorial you may can have a try: https://docs.microsoft.com/en-us/office/dev/add-ins/tutorials/excel-tutorial-create-custom-functions?tabs=excel-windows.
This issue has been automatically marked as stale because it is marked as needing author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your interest in Office Add-ins!
Please disregard the @msftbot's comment about this issue being marked as stale; I've updated tags so this is no longer the case.
@kbrandl Thanks, I’m still interested in finding a fix for this.
@xiaochunms I’ve gone through that tutorial already, and I have what I believe should be a working add-in. I’ve also tried the example add-ins and none work. I think this issue is before the add-in even gets loaded, or during the parsing of the manifest. Either with my setup or with Excel, but I need some more help determining which is the culprit.
Is there any update on this? I'm experiencing the exact same problem.
This is a mirror of a question I posted on Stack Overflow, just trying to get more attention.
Please excuse my lack of formatting here. Because of a Corporate Firewall I’m not able to POST to github, so I’m submitting this from mobile.
I’ll copy the MarkDown from StackOverflow here, as it should contain all the same information that the issue template asks for, and I’ll be happy to fill any lapses in information or context
First, environment:
Excel Version 1905 (Build 11629.20246 Click-To-Run) Connected to Office 365 ProPlus
Windows 10 Enterprise 10.0.16299 Build 16299
I've been trying to work with the Custom Functions API in Excel, but its consistently failing to load my Manifest. I'm using Visual Studio for development, and its handling side loading.
The Add-In seems to partially load, as the task pane does open up and load, but none of my custom functions register.
I've also run the example project from https://github.com/OfficeDev/Excel-Custom-Functions-JS and it fails to load with similar errors.
My administrator has granted me access to the Add-In store, thinking that may be part of the issue, but it did not help.
Its my belief that there is some GPO or setting that has disabled the Custom Functions API, but I'm not about to find any documentation about such a setting. I've done everything I can to confirm that the Manifest I'm providing is valid, but still Excel claims that its invalid.
The basic structure of the Web Project is as follows:
I've confirmed that the web server is serving the pages at the expected locations.
Here is the Manifest that I'm trying to load. Visual studio does NOT complain about it being invalid, and it is checking the schema. It does complain if I make any change that is invalid.
Note that
~remoteAppUrl
is being correctly transformed at build timeSee my WEF Logs:
I think my issue is happening before the loading of the actual scripts, but for completeness here are the contents of the files in
/dist/
functions.html
functions.js
functions.json