-
Notifications
You must be signed in to change notification settings - Fork 63
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. |
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: