-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel desktop version on Windows refuses to load and parse custom functions metadata file (functions.json) #422
Comments
Thanks for reporting this @Yuri2b. @grangeryy, could you please investigate? |
Hey guys, do you have any updates on this? Have you managed to reproduce? |
@Yuri2b Thanks for report this issue and waiting for a long time. I can't repro this issue use my local environment and we didn't heard such similar issue recently. Is that possible to provide the manifest or CF metadata files for us to continue investigate? And we'd like to suggest you also post your question here to get more attentions and it will well triaged: Office-Js Issues |
This CF file causes an error, its size is 1 MB (1 052 400 bytes). If you remove an arbitrary function from json file and make this file size less then 1 MB (1 048 576 bytes I guess) - it will be loaded without any error and all presented functions will be available. How I reproduce it:
|
@Yuri2b Thanks for the information. If reducing file could resolve the issue, it should be the case. Currently we have a size limitation for the metadata of 1MB. |
Oh, so if you have this limitation - there is no need to raise a new issue on Office-Js Issues right? |
I searched around and didn't find the document. I will open a ticked internally to add it. |
Dear @XuanZhouMSFT, @AlexJerabek, My team is also in the process of migrating a relatively large financial suite from VSTO and Excel-DNA to Office JS. This suite includes hundreds of functions, and we've encountered the same limitation with the This restriction is proving to be a significant blocker for us. While we could reduce the metadata file size by removing meaningful information such as descriptions and parameter types, this would severely impact the user experience. Valuable context that users rely on when interacting with the functions through Excel's standard UI would be lost. As Microsoft is actively moving away from VSTO (e.g., with Outlook recently stopping support for VSTO), we feel it’s essential to adopt the new Office JS framework to future-proof our add-ins. However, this size limitation makes it impossible to fully migrate our solution at the moment. Could you please let us know if there are any plans to increase the metadata file size limit? Addressing this limitation would be incredibly helpful for large-scale add-ins like ours and align with Microsoft’s broader transition away from VSTO. Thank you for your time and attention! |
Prerequisites
I am converting some VSTO Excel plugin to use the new JS API. The current plugin has 500+ UDFs that need to be converted into custom functions. I have created a functions.json metadata file describing all these custom functions and have run into the problem that the windows version of Excel refuse to load this functions.json file if it exceeds 1 MB.
I couldn't find any mention of the limitations in Excel's documentation and couldn't find anyone who had encountered this problem. This is so frustrating, especially since the same project with the same functions.json file works fine in the web version of Excel
Expected behavior
Excel will load and parse all custom functions from functions.json successfully
Current behavior
No custom function has added to Excel (desktop version)
The web version of Excel works without errors or complaints about loading custom functions. All provided functions are visible in the document
Steps to Reproduce
src/functions/functions.ts
functions.json
generated by custom-functions-metadata-plugin indist
folder is more than 1 MbContext
The text was updated successfully, but these errors were encountered: