Comments (9)
The following Exception appears to be thrown consistently after the first 51 "Agave.HostCall.IssueCall" lines in the VisualStudio output box (which equates to supporting a maximum of 10 Tasks if you first get the GUID by Index, then get 4 fields per GUID as in my tests):
Exception was thrown at line 2953, column 13 in https://localhost:44378/Scripts/Office/1/project-win32-16.00.debug.js
0x80043200 - JavaScript runtime error: unknown exception
from office-js.
Following up with our Project team on this issue. thanks
from office-js.
We are having the same issue with getTaskByIndexAsync: After 50 Tasks we get 5001 Internal Error on subsequent calls. Any news on this issue?
from office-js.
Hi Kriede,
am not sure you will be getting a response any time soon.
You can Code around this obvious limitation by ensuring no more than 40-45 Async calls are made in parallel using JQuery
Best,
Cameron
function getTaskOtherFieldsThenNext(taskIndex, maxTaskIndex, deferAllTasks) {
// Create a Defer Object for the current Task to be read and stored against a JSON Object
var deferTask1 = $.Deferred();
// Is current Task a Leaf (or the Project Task) ?
if (tasksArray[taskIndex].taskIsLeaf == true || taskIndex == 0) {
getTaskJSONOtherFields(tasksArray[taskIndex], deferTask1);
} else {
// Only need ******* for Leaves and Parent Task, so Resolve promise immediately for other tasks to continue
deferTask1.resolve();
}
// Processing to be performed once Task Promise has been resolved
$.when( deferTask1 ).done( function () {
// getTaskJSONKeyFields has finished its work for current Task. Go to next Tasks or finish
if (taskIndex >= maxTaskIndex) {
// If we have treated the last task, then 'All Tasks' Promise has been fulfilled
return deferAllTasks.resolve();
} else {
// Kick off read for next Task (n + 1)
taskIndex++;
getTaskOtherFieldsThenNext(taskIndex, maxTaskIndex, deferAllTasks);
}
});
}
from office-js.
Apologies for the lack of response on this. I'm transferring this issue to the OfficeDev/office-js repo, which members of the product team monitor for customer-reported issues like this.
from office-js.
Update: the team owning this issue is currently investigating
from office-js.
If anyone on this thread has a complete sample they reproduce the problem with I'd like to get this one resolved. I appear to be able to read task details in 100 tasks with no issues, but I want to be sure I am not missing anything.
Thanks, and sorry for the huge delay in addressing this.
Brian Smith
from office-js.
Closing this issue due to inactivity, but if anyone has new information or a sample as @LunchWithaLens requested, let us know and we'll re-open it.
from office-js.
Hi iam try use
Office.context.document.getTaskByIndexAsync(3, function (resultTask) { if (resultTask.status === Office.AsyncResultStatus.Succeeded) { this.setState({ idDocuMongo: resultTask.value + "_ GUID _" + parseInt(Math.random() * 100) }); } else { matrizTask.push("resultTask.error"); } } );
but i don't get anything
from office-js.
Related Issues (20)
- Office library not loading for iOS 17.4 HOT 3
- Range references stored in worksheet.names are corrupted on first use of add-in upon install HOT 4
- Request for a Union method for Excel HOT 3
- ExtendedOverrides is not a valid child element of OfficeApp HOT 4
- GetAttachmentsAsync does not return the list of attachments in Outlook Online HOT 2
- There is no event for drag and drop of email id in to cc or bcc section in outlook office add-in HOT 2
- Several customers get stuck installing our Powerpoint add-in HOT 2
- Smart Alert Feature not working in Outlook Mac Thick Client on OnAppointmentSend events. HOT 6
- PowerPoint add-in not displaying in Slide Show display HOT 1
- Integrated spam-reporting add-in: Office.context undefined HOT 2
- How Nested App Authentication can be setup in azure. HOT 5
- Unable to publish manifest file - support URL is not accessible HOT 10
- I have developed an outlook add-in. It is working fine in web version. But not working in desktop outlook app. HOT 17
- Excel add-in not updating for some clients HOT 6
- getUserIdentityTokenAsync returning failed "An internal server error" HOT 11
- insertFileFromBase64 causes accumulation of styles HOT 2
- Failed to install or load custom functions addin On microsoft 365 Web Production HOT 3
- Excel Add-in online - function wizard function arguments broken HOT 4
- Office.context.document.getFileAsync return corrupted file
- Excel Taskpane Add-in Iframe Unable to load blob URLs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-js.