Skip to content
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

The API you are trying to use cannot be found error returned when any of the Query class methods are called on getQueries #760

Open
3levate opened this issue Sep 10, 2024 · 1 comment
Assignees
Labels
Needs: attention 👋 Waiting on Microsoft to provide feedback Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: product bug Bug in the Office Scripts platform or Office Scripts APIs

Comments

@3levate
Copy link

3levate commented Sep 10, 2024

All of the Query class methods do not work with the workbook.getQueries() method; however, these methods all seem to work on an individual Query object returned by workbook.getQuery("name")


To reproduce:
function main(workbook: ExcelScript.Workbook) {
	const queries = workbook.getQueries();
	queries.forEach((query: ExcelScript.Query) => {
		console.log(query.getName()); //replace with any Query class method
	});
}

Errors returned in console:
image
image
image


Working methods when called on `getQuery()`:
function main(workbook: ExcelScript.Workbook) {
	const query = workbook.getQuery("MASTERFORECAST");
	console.log(query.getLoadedToDataModel());
}

Output:
image
image

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP label Sep 10, 2024
@3levate 3levate changed the title API you are trying to use error from any of the Query class methods called on getQueries API you are trying to use cannot be found error from any of the Query class methods called on getQueries Sep 10, 2024
@3levate 3levate changed the title API you are trying to use cannot be found error from any of the Query class methods called on getQueries The API you are trying to use cannot be found error from any of the Query class methods called on getQueries Sep 10, 2024
@3levate 3levate changed the title The API you are trying to use cannot be found error from any of the Query class methods called on getQueries The API you are trying to use cannot be found error returned when any of the Query class methods are called on getQueries Sep 10, 2024
@michelleranmsft michelleranmsft added Needs: attention 👋 Waiting on Microsoft to provide feedback Status: under investigation Issue is being investigated Type: product bug Bug in the Office Scripts platform or Office Scripts APIs and removed Needs: triage 🔍 New issue, needs PM on rotation to triage ASAP labels Sep 11, 2024
@michelleranmsft michelleranmsft self-assigned this Sep 11, 2024
@michelleranmsft
Copy link
Member

Hi @3levate, thanks for reporting this! Looking into the issue, it appears to be a bug with the API and has been added to our backlog (internal tracking: 9350111). I'll circle back once I have more information to share.

@michelleranmsft michelleranmsft added Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown and removed Status: under investigation Issue is being investigated labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: attention 👋 Waiting on Microsoft to provide feedback Status: in backlog Issue is being tracked in the backlog but timeline for resolution is unknown Type: product bug Bug in the Office Scripts platform or Office Scripts APIs
Projects
None yet
Development

No branches or pull requests

2 participants