Open marenac4 opened 1 month ago
Here are some similar issues that might help you. Please check if they can solve your problem.
Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)
Clearing the Office cache can resolve the issue. Users have reported that clearing the cache from specific locations on their machines fixed the problem. For example, on Mac, clearing the cache from '~/Library/Containers/Microsoft Excel/Data/Library/Application Support/Microsoft/Office/16.0/Wef/' and '~/Library/Containers/Microsoft Excel/Data/Library/Caches/' resolved the issue.
Reference:
Ensure there is no name conflict with the add-in. If the add-in is installed multiple times (e.g., via sideload and admin-managed), it can cause name conflicts leading to installation failures. Keeping only one manifest in the environment can help avoid this issue.
Reference:
Check for CORS policy issues if hosting resources on a server. One user found that their problem was due to a CORS policy in their S3 bucket, and enabling public access resolved the issue.
Reference:
Powered by issue-sentinel
Thank you for your recommendations. Before opening this issue, we thoroughly reviewed similar known issues but unfortunately didn’t find a solution that works for us.
I’d also like to highlight that the described issue occurs on both new machines (installing our add-in for the first time) and development machines.
As for the third solution, we believe it does not apply in our case. We previously encountered a similar problem after deploying the add-in code to the server, but that issue was also present when sideloading.
Hi, @marenac4
Thanks for reporting the issue.
I tried to reproduce the problem, but it looks like your add-in requires a login, and I’m unable to proceed without valid credentials.
If possible, could you please share a test account we can use for investigation? You can send the credentials to the following one-time email address: adelev@M365x13055881.onmicrosoft.com. I’ll check it within the next couple of days, but please note that I won’t be monitoring it afterward.
Appreciate your help!
Best regards,
Hello @guoms1,
Thank you for your response.
I have sent the test accounts to the email you provided. However, an account is not required to reproduce our issue. You can simply check whether one of our functions is available, for example: =cmdty.udfs.BCF_LAST(string)
.
If you need any additional information, please don't hesitate to ask.
Thank you.
Hi, @marenac4
Thank you again for the detailed description and for providing test accounts—we really appreciate your collaboration.
After discussing this issue with our domain expert, we’ve gathered a few thoughts and suggestions that might help us move forward:
Please let us know if you’re able to gather any of the above, and we’ll continue working closely with you to resolve this issue.
Best regards,
@guoms1, thanks again for your collaboration.
The key details are as follows:
Reproducibility:
The issue occurs only on the web and does not affect other platforms.
It is 100% reproducible—if the error does not occur immediately after installing the add-in, it does upon refreshing the page.
The issue is present across multiple machines, in different geographical locations, and for both first-time and returning users. Given this, we do not believe caching plays a role.
Manifest Details:
Our manifest is hosted at this URL and is correctly specified in the Partner Center.
Interestingly, when the manifest is downloaded and sideloaded manually, the issue does not occur.
Console Logs:
Further Investigation & Testing:
If you have any suggestions on how to further diagnose or test this issue, please let me know.
Is there a way to increase logging verbosity for better debugging?
Are there specific points in the code where additional console logs would be most useful?
Meanwhile, I am working on creating a minimal reproducible example that excludes any confidential data.
Looking forward to your insights!
- Additionally, please note that the firing of Office.onReady() does not guarantee that custom functions have finished installing. If any logic assumes custom functions are ready immediately after onReady, that could lead to inconsistent behavior—especially in environments where network delays are higher.
@guoms1 What is the correct approach then? I.e is there anything I can await to ensure functions have finished installing?
Error installing functions
We are developing an Excel add-in featuring a Task Pane and custom functions. During the development phase, we sideloaded the add-in without any issues. However, after publishing it on the Microsoft 365 Admin Center and subsequently on AppSource, users have reported encountering the error "Error installing functions" when using the add-in on the web, regardless of whether it was obtained from the Admin Center or AppSource.
Occasionally, our custom functions fail to load, resulting in a #NAME? error in the cells.
Your Environment
Expected behavior
We are expecting custom functions to install and load every time on the web excel when our add-in is installed via AppSource. And not to see an error.
Current behavior
We do see error Error installing functions, and time to time our functions do not load, so we get #NAME? in the cell when calling our functions.
Steps to reproduce
=cmdty.udfs.BCF_LAST(string)