Below is my data.
I want to see the Job status only. I'm taking Job Name ans Status in Matrix and it is showing mw the job status as well if job is successfully completed. but the problem is if a job is failed the it is showing me two status for one job. Success and Failed both. where in I only want to see if all step is success then it should show success and it any of step is failed then it should show as failed with one row or if it is running then it should show as running.
Below is the output which I'm getting right now.
Where in the expected output is as below.
This is because one step is completed and one step is failed and it is showing both result since it is not unique. hence requesting you to kindly suggest a solution.
If you want to show only last step then create a measure and put it to the matrix (or filter pane);
MeasuretoCheckLastStep =
var _lastStep = calculate( max(Table[StepID]), FILTER(ALL(Table), Table[JobName] = SELECTEDVALUE(Table[JobName]) )
return if(_lastStep = SELECTEDVALUE(Table[StepID]) , 1, 0)
Related
Do we have an API in Qtest that can provide summary of test cycle execution ?
E.g. Passed: 23 Failed: 7 Unexecuted: 10 Running: 2
Need this data for generating report in our consolidated reporting tool along with data from some other sources.
Nothing that gives exactly what you ask for, but you could use the API calls below to create it yourself.
You can get the status of all test runs in a project using
GET /api/v3/projects/{projectId}/test-runs/execution-statuses
Or, to get results from a specific test cycle, first find all the test runs in that cycle using
/api/v3/projects/{projectId}/test-runs?parentId={testCycleID}&parentType=test-cycle
(append &expand=descendants to find test runs in containers under the test cycle)
and then get the results of each run individually using
/api/v3/projects/{projectId}/test-runs/{testRunId}/test-logs/last-run
See https://qtest.dev.tricentis.com/
I am running Azure Function App with the following PowerShell script to get ADF pipeline runs. It is returning all history of pipeline runs, but it is skipping the Active( In Process) run. It is returning Completed/Failed/Cancelled runs only. Microsoft Documentation shows that it should also return InProgress status as well. I triggered the ADF and made sure that it is running and this script only returned runs starting from the last completed run and previous runs, but completely ignored Active/InProgress run.
This is the script:
#Input Parameters
$ResourceGroupName = 'ABC'
$DataFactoryName = 'XYZ'
$before = (get-date).AddDays(1)
$after = (get-date).AddDays(-1)
#Get Pipeline Run History
$runIds = Get-AzDataFactoryV2PipelineRun -DataFactoryName $DataFactoryName -ResourceGroupName $ResourceGroupName -LastUpdatedAfter $after -LastUpdatedBefore $before
#Return all Retrieved Statuses
$runIds | ForEach-Object {
## Check for all statuses
Write-Host $_.Status
Write-Host $_.RunStart
Write-Host $_.RunEnd
Is this bug or am I missing anything here?
The code looks fine. I tested at my end it works fine. I would give it a shot by widening the timeframe.
$before = (get-date)
$after = (get-date).AddDays(-5)
Also, ensure the pipeline run is not getting completed before the execution of the script.
I figured out the issue. The issue was data object it was returning was sorted different that I expected. Because, Active Pipeline Runs have null RunEnd , it was putting Active Pipelines at the end of the returned rows. So, it was showing all previous runs sorted from most recent to previous ones (sorted desc) but then it at the end it was returning Active runs from most recent to previous ones again.
This is my first try at using R to collect data from pubchem. However i am getting the following error every time for every cid that i have used.
library("rpubchem")
get.cid(46926545)
Error in do.call(cbind, unlist(Filter(function(x) !is.null(x), cvals), :
second argument must be a list
Can anyone point out what am i doing wrong. The link for the cid is "https://pubchem.ncbi.nlm.nih.gov/compound/46926545#section=Top"
I'm refering to LoadDataCSVSample.java program, I am able to load CSV data into BigQuery when I define proper schema and CSV data. But when I provide incorrect data, I receive message as "Load is Done!" but the data is not loaded and I am not able to see the errors. How to modify this sample program to capture errors?
I think this example is missing analyzing errors after job is completed ("Load Is Done").
Jobs are either in PENDING or RUNNING or DONE state.
The fact that job is DONE doesn't tell yet if it is succeeded or failed
To know this - you should use jobId and then use Jobs: get to get status.state of the job. Here you can see if job completed (DONE) or not yet (PENDING or RUNNING), so do this till it is completed and when it is - you can look into status.errorResult for last error or into status.errors for all errors encountered during the running of the job
Adding to Mikhail's answer, here is the code,
JobReference jobRef = insert.execute().getJobReference();
System.out.println("Job ID is: " + jobRef.getJobId());
Boolean Run_Status = true;
while (Run_Status) {
Job pollJob = bigquery.jobs().get(projectId, jobRef.getJobId()).execute();
System.out.println("Job status: " + pollJob.getStatus().getState());
if (pollJob.getStatus().getState().equals("DONE")) {
System.out.println(pollJob.getStatus().getErrors());
Run_Status = false;
}
Thread.sleep(1000);
}
Using me21n to do a returns purchase order (credit) we are getting a pretty uninformative error text in the return table when creating a MIGO entry. This is an enhanced step on the user exit. BAPI_GOODSMVT_CREATE returns;
1, E, WRF_CONS, 010, No data available, , 000000, , , , , GOODSMVT_ITEM, 1, , RPECLNT500
I have attempted to debug further as 'No data available' doesn't mean a whole lot to me. I noticed MB_CREATE_GOODS_MOVEMENT returned a subrc of 5 in the EMKPF structure. Not sure if i have gone off on a tangent here or not... Its pretty darned heavy going in there.
Anyway the create MIGO step is only giving the above return error for a particular vendor code. When we use the exact same data with the exception of Vendor code and Info Record (which populates automatically via the vendor selection) the MIGO step is successful. Any suggestions?
Thanks for the help
Ok this is resolved. We had to add partner LF into Site A302 for Vendor profile. Then add the STO details in SPRO. Huzar for config....