Open SharonCKC opened 3 months ago
Hi @SharonCKC Thanks for reaching us. But I can repro your issue on Excel online. You can see this video:
https://github.com/user-attachments/assets/c6532637-6284-4ed3-93ee-3fa8f20a8654
Do you have a big dataset in your workbook? Or could you share your test workbook to help us repro this issue? Thanks.
Hello @shanshanzheng-dev, thank you for investigating. No I don't have a big dataset in the workbook. Here's another fresh workbook that I shared, and here's a screenshot of the issue:
https://github.com/user-attachments/assets/b90a2bcb-e219-4c67-a318-951ca985908e
Hi @SharonCKC Thanks for providing this doc link and video, I can repro this issue. We'll take a look and report back if we have a suggestion for you. Thanks.
Hello @shanshanzheng-dev, I still see the bug (only in Excel on the browser) which is causing our add-in not to be able to detect a new column. Just wanted to follow up if there's anything that can be done at this time?
Hi @SharonCKC, Thanks for your patience! However, this issue seems more complex than we expected. We are still under investigation and fix. please stay tuned. Will update here when we have any progress. Thanks again!
Hi @SharonCKC, As I mentioned before, this issue is under the deeply investigation and fix. However, these days, we find a workaround for this case, which may somehow help you out first. Could you add a Delaying by setTimeout using await? Here is the sample code:
async function test() { await Excel.run(async (context) => { console.log("try"); await new Promise((resolve) => setTimeout(resolve, 100)); await context.sync(); console.log("done"); }); }
We've done the first test on our machine, and this seems to be a workaround. If you are struggling on this issue, please try the above method. Hope this will work well! Thanks for your patience again!
Provide required information needed to triage your issue
When executing code for the
worksheets.onChanged
event handler, code execution is stuck oncontext.sync()
and doesn't continue. This can only be observed in Excel on the web; no issue was found in Excel PC and Excel Mac.Your Environment
Expected behavior
Code should continue to execute after
context.sync()
is run.Current behavior
Code execution is stuck on
context.sync()
.Steps to reproduce
context.sync()
is run, "done" should be printed in the console.Provide additional details
Code snippet below: