Comments (9)
I've found a reason: you need to go to Queries / Share queries select three dots (...) Security you need to Add User Project collection Build service () and specify Read permission to Allow
from adoscheduledworkitemquery.
I get this as well when trying to use shared queries. Also on ADO 2019 On Prem.
from adoscheduledworkitemquery.
I have this same deal with On Prem 2019.
##[error]Cannot read property 'queryResultType' of null
Thanks,
Scott
from adoscheduledworkitemquery.
I am also getting this error trying to run a simple shared query.
##[debug]task result: Failed
##[error]Cannot read property 'queryResultType' of null
##[debug]Processed: ##vso[task.issue type=error;]Cannot read property 'queryResultType' of null
##[debug]Processed: ##vso[task.complete result=Failed;]Cannot read property 'queryResultType' of null
Finishing: Send Query Result as E-Mail
How can I resolve this issue?
from adoscheduledworkitemquery.
Having the same problem.
from adoscheduledworkitemquery.
Did you find a solution to this issue?
I guess this is where it fails switch(result.queryResultType)
because result
is null.
https://github.com/Quadrotech/ADOScheduledWorkItemQuery/blob/master/ado-scheduledworkitemquery-task/ado-scheduledworkitemquery-taskV1/index.ts#L200
This result comes straight out of queryById, so maybe updating that lib might help?
Here's my azure-pipelines.yml
pool:
vmImage: windows-latest
steps:
- task: ADOScheduledWorkItemQuery@0
inputs:
sendMethod: 'SMTP'
connectedServiceNameSMTP: 'SMTP'
project: <project id>
queryType: 'Shared'
query: <query id>
sendIEmpty: true
subject: <subject>
emailAddresses: <email>
The pipeline log ends with:
##[debug]queryType=Shared
##[debug]query=<query id>
##[debug]null=Shared
##[debug]task result: Failed
##[error]Cannot read property 'queryResultType' of null
from adoscheduledworkitemquery.
@stuikomma Hi, have you managed to fix this issue?
from adoscheduledworkitemquery.
@imaginariuss i added a user "Project collection Build service ()" with read permission it solves the issue but i need to know why its solves the problem
from adoscheduledworkitemquery.
Here is the successor to this task, as I am not working at the publisher company anymore:
https://marketplace.visualstudio.com/items?itemName=TechFreak.TFADOScheduledWorkItemQuery
from adoscheduledworkitemquery.
Related Issues (20)
- Error executing the query, receiving a cryptic error message HOT 1
- SMTP not working, and keeps on showing Authentication error
- Not All Project are showing HOT 3
- Ordering HOT 7
- Silent failure on "Work items and direct links" type queries HOT 4
- Send Query Result as E-Mail HOT 1
- None of My Queries are showing up in the My Query ID Dropdown HOT 1
- Possible to schedule export of CSV? HOT 1
- SMTP connections empty? HOT 3
- URL in email does not direct to project HOT 2
- Unable to verify the first certificate HOT 1
- Unable to use the extension Scheduled Work Item Query HOT 2
- Not able to put CC list in email section HOT 1
- ##[error]Cannot read property 'queryResultType' of null HOT 2
- Possibility to edit email body HOT 1
- Unable to use this extension in Azure DevOps HOT 1
- End point not present HOT 2
- "Send e-mail on empty result" option does not work for hierarchical queries HOT 3
- Send email with wrong hyperlink HOT 1
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 adoscheduledworkitemquery.