Collection of #NAME errors in Excel cells with Excel-Custom-Functions #4920
Replies: 1 comment
-
Related to #5 above we have been struggling with a similar issue, but ours is random/intermittent. Our taskpane consistently loads and functions without issue, but we periodically and randomly have issues with functions registering/loading and silently failing. We don't even get the "some of your add-ins functions failed to load" in the status bar - the functions just don't appear and we get the NAME error. Here is an example flow:
It's as if the second load of the add-in is failing to register functions, but subsequent loads then succeed. In attempts to fix this and chasing various modifications to our Office.onReady calls we now are seeing the behavior above whereas in previous instances once the add-in function registration "broke" it was never able to be recovered without an add-in cache clear. In searching github and other forums we haven't seen this exact behavior but we all seem to be dancing around the same issues of caching/functions.json failures or other silent reasons for failure of functions to register. |
Beta Was this translation helpful? Give feedback.
-
My message is neither a bug nor a feature. It is intended to be a collection of possible causes for the #NAME error to help us and other developers track down the error.
Our company created an Excel add-in based on VBA. As Microsoft's development with TypeScript, Windows 365, Office 365, and much more is moving towards online-based applications, we decided a while ago to build a new version of the add-in based on Office-js. So the journey begun.
One of our main issues is the so called #NAME error. The Excel cell just show us
#NAME?
and a short hint to the reason. But the reason is a general one and not specific.I want to start this discussion to collect reaons and solution regarding this error based on the usage of office-js and the Excel-Custom-Functions. If I have described something incorrectly, please correct me. I am very grateful for any helpful hints.
If you have any other problems where the error is displayed as a result, please feel free to add them. I am of course grateful for any suggestions for solutions.
1. Cached and outdated taskpane
Context
The user added the add-in to Excel and did not use it for a while. In the meantime, updates were made on the provider's side. However, the add-in is still using an old version. However, the backend of the add-in expects a different request.
Solution
2. More than one installed versions of the add-in
Context
The add-in has been installed several times. Once as a shared resource by the company administrator and once by the user themselves.
Solution
3. Two add-ins are using the same function
Context
The user uses two different add-ins that have the same function. Excel tries to split the functions between the add-ins and adds the name of the add-in as a prefix to the function. Sometimes this does not work well - the cell does not know from which add-in it receives its data.
Solution
Option 1
Option 2
4. The add-in has not been fully loaded.
Context
Excel is showing “Error installing functions“ in the bottom status bar. The result in the cell is the “#NAME?” error.
Solution
Option 1 (source from General Electric FAQ)
To load Add-In, follow the steps given below:
Option 2
5. A some files are missing while the add-in is loading
Context
If the taskpane (add-in view) is loading but functions aren’t it could be that excel can’t access the functions.json file.
It's based on this Github issue OfficeDev/Excel-Custom-Functions#136 (comment)
Solution
6. Not supported Excel version
Context
The add-in is not loading (blank page in taskpane) and / or the cell shows #NAME?.
Solution
The used Excel version don’t support all requirements used by our add-in.
To interact with the Excel cell, we have to use custom functions.
This is supported with:
It’s not supported with:
Beta Was this translation helpful? Give feedback.
All reactions