Giter Site home page Giter Site logo

Comments (9)

imaginariuss avatar imaginariuss commented on July 28, 2024 1

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.

jlad00 avatar jlad00 commented on July 28, 2024

I get this as well when trying to use shared queries. Also on ADO 2019 On Prem.

from adoscheduledworkitemquery.

bronder avatar bronder commented on July 28, 2024

I have this same deal with On Prem 2019.

##[error]Cannot read property 'queryResultType' of null

Thanks,
Scott

from adoscheduledworkitemquery.

tomzosh avatar tomzosh commented on July 28, 2024

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.

stuartrainsworth avatar stuartrainsworth commented on July 28, 2024

Having the same problem.

from adoscheduledworkitemquery.

stuikomma avatar stuikomma commented on July 28, 2024

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.

imaginariuss avatar imaginariuss commented on July 28, 2024

@stuikomma Hi, have you managed to fix this issue?

from adoscheduledworkitemquery.

HEMANTHSHANKAR avatar HEMANTHSHANKAR commented on July 28, 2024

@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.

MichelZ avatar MichelZ commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.