You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform [PC desktop, Mac, iOS, Office on the web]: PC Desktop
Host [Excel, Word, PowerPoint, etc.]: Excel
Office version number: Microsoft 365
Operating System: Windows 10
Browser (if using Office on the web): ______
Expected behavior
The ranges of the visible view should be gotten without any error, no matter how many cells there are.
Current behavior
Unfortunately, I get the following error intermittently, depending on how many rows there are to filter.
RichApi.Error: The argument is invalid or missing or has an incorrect format.
The stacktrace does not include the actual offending line. It just points to the last await context.sync(), but I have narrowed it down to the call to const toBeCopied = currentWorkseet.getRanges(visibleView.cellAddresses.toString()).
The error occurs with varying frequency depending on the number of rows that are to be filtered:
100: 0 out of 10 runs
1000: 5 out of 10 runs
10000: 10 out of 10 runs
Steps to reproduce
Create a new Office Task Pane add-in using the Yeoman generator yo office.
Update the run() function with the one listed below this list in the Provide additional details section.
Execute npm run start:desktop.
In Excel, in the taskpane, click "Run".
Open the development tools by right-clicking in the task pane, then clicking "Inspect".
In the development tools window, open the "Console" tab.
Thanks for reporting this issue.
I can reproduce your issue.
It has been put on our backlog<Bug#8791170> for internal track. We will keep track of this issue and let you know if there are any updates.
Hi, @geoffreyvanwyk
your cell address is too long, which exceed the string buffer Limitation which is 65535. Please divide your cell address into small piece to use.
Due to the number of line are different every time after you run the filter, so sometimes work, sometimes fail.
Provide required information needed to triage your issue
After filtering a worksheet, I would like to copy the visible cells to another worksheet as shown in the code below.
Your Environment
Expected behavior
The ranges of the visible view should be gotten without any error, no matter how many cells there are.
Current behavior
Unfortunately, I get the following error intermittently, depending on how many rows there are to filter.
The stacktrace does not include the actual offending line. It just points to the last
await context.sync()
, but I have narrowed it down to the call toconst toBeCopied = currentWorkseet.getRanges(visibleView.cellAddresses.toString())
.The error occurs with varying frequency depending on the number of rows that are to be filtered:
Steps to reproduce
yo office
.run()
function with the one listed below this list in the Provide additional details section.npm run start:desktop
.Provide additional details
Here is the full function.
This issue was closed Duplicate
The text was updated successfully, but these errors were encountered: