Invantive Query Tool error querying NMBRS.nl - invantive-sql

I want to run a query in Nmbrs.nl getting the journal information of a run.
So I selected a company by using:
using 111111
Then the following query to get the run info:
select *
from CompanyRunsYear(2017)
This gives me a list of the runs in Nmbrs and the ids of those runs. Then I proceeded to run the CompanyRunJournals to get the info I need:
select * from CompanyRunJournals(444444, 888)
I got the following error message:
soap:Sender: Server was unable to read request. ---> There is an error in XML
document (14, 67). ---> Input string was not in a correct format. (
https://api.nmbrs.nl/soap/v2.1/CompanyService.asmx)
The remote server returned an error: (500) Internal Server Error.
Putting the CompanyID and RunID in quotes doesn't work either. Any idea what I am doing wrong here?

The Nmbrs.Company.CompanyRunJournalsV2 does work, it needs 3 parameters, companyid, runid and year. So for example:
select * from Nmbrs.Company.CompanyRunJournalsV2(111111, 444444, 2017)
Please note that this will return an XML file that need further parsing to use.

Related

Error regarding query work item gate in azure pipeline

thanks in advance.
I am facing an issue while adding gate (query work item) to control the azure pipeline flow.
Error message i am getting from logs :)
==============================================================================
Task : Query Work Items
Description : Execute a work item query and check the number of items returned
Version : 0.0.16
Author : Microsoft Corporation
Help URL : https://learn.microsoft.com/azure/devops/pipelines/tasks/utility/work-item-query
==============================================================================
Response Code: 0
Response: An error was encountered while processing request. Exception: {"$id":"*","innerException":null,"message":"TF*****: The query 1****-****-****-****-******* does not exist, or you do not have permission to read it.","typeName":"Microsoft.TeamFoundation.WorkItemTracking.Server.QueryItems.QueryItemNotFoundException, Microsoft.TeamFoundation.WorkItemTracking.Server","typeKey":"QueryItemNotFoundException","errorCode":****,"eventId":****}
Exception Message: The remote server returned an error: (404) Not Found. (type WebException)
Evaluation of expression 'xor(and(or(eq(root['queryType'], 'oneHop'), eq(root['queryType'], 'tree')), and(le(count(root['workItemRelations']), 5), ge(count(root['workItemRelations']), 0))), and(eq(root['queryType'], 'flat'), and(le(count(root['workItems']), 5), ge(count(root['workItems']), 0))))' failed.
Exception Message: Error parsing API response into a JSON object. (type DistributedTaskException)
What I have tried already :)
I have added user to all the groups like , build administrator, contributer , project administrators.
Already tried updating query permission, but no luck.
I am unable to find the issue.
The issue is the account {project name} Build Service ({Org name}) does not have enough permission to access the query.
Steps:
Open Queries->select ... on your query and add that account {project name} Build Service ({Org name}) with READ access.
Note: We should provide the permission for the account {project name} Build Service ({Org name}) to read under Shared Queries page and select query permission page.
Result:
When granting permission, search for the project name, as it does not appear in the initial list, only after performing the search. The project will only appear in the list after you perform the search.
enter image description here

Intermittent problems with querying data from druid using SQL

I query data from druid via SQL. Sometimes it succeeds, but sometimes it fails. My query uses curl; it is:
curl --negotiate -u:srvadmin -X POST -H'Content-Type: application/json' http://du-s12-idc:8082/druid/v2/sql -d #query.json.
When it fails, I get this response:
{"error":"Unknown exception","errorMessage":"Failure getting results for query[6639c357-441f-456c-9a01-0f7ffd0758b7] url[http://du-s28-idc:8083/druid/v2/] because of [Invalid type marker byte 0x3c for expected value token\n at [Source: (SequenceInputStream); line: -1, column:
1]]","errorClass":"io.druid.java.util.common.RE","host":null}
The file query.json is simple:
{"query":"select * from bds_dsp_media_run_info_h_1016 limit 3"}
The data was loaded from hadoop to druid and succeeded. My druid version was 0.11 and built in a cluster with Kerberos.
Does anyone have this problem?
I think Invalid type marker byte 0x3c... exception is just uninformative response that tells you that the server has an internal error, but doesn't give you a clue on what is actually happening. It would help a lot if you could check broker logs when the request is happening.
But, to play a guessing game - I would expect it to be a Kerberos issue. Do you have KRB5_CLIENT_KTNAME env variable populated with the path to your key file?

Configure MongoDB with Nutch2.3, some error about indexerJob?

I had successfully configure MongoDB(5.3.1) and Nutch(2.3), when I run the command "./bin/nutch index -all" some errors printed after inject/generate/fetch/parse/updatedb commands work,the error details like:
SolrIndexerJob: java.lang.RuntimeException: job failed: name=apache-nutch-2.3.1.jar, jobid=job_local140530148_0001
at org.apache.nutch.util.NutchJob.waitForCompletion(NutchJob.java:120)
at org.apache.nutch.indexer.IndexingJob.run(IndexingJob.java:154)
at org.apache.nutch.indexer.IndexingJob.index(IndexingJob.java:176)
at org.apache.nutch.indexer.IndexingJob.run(IndexingJob.java:202)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.nutch.indexer.IndexingJob.main(IndexingJob.java:211)
I had configure the file in $NUTCH_HOME/runtime/local/conf/nutch-site.xml
details:
If all the others steps was running, it would be not a problem with mongodb but with solr (your nutch-site.xml suggests that you wanted index your data in solr). As far that i remember, when i used solr, i precised the core name, it would be something like that :
http://localhost:8983/solr/mycore/

The name of the job cannot be blank. (SqlManagerUI)

I had filled all the parameters but it doesn't let me save my job because this error occurs.
I specified a job name in general mode but it shows this error again.
The name of the job cannot be blank. (SqlManagerUI)
Program Location:
at Microsoft.SqlServer.Management.SqlManagerUI.JobPropertySheet.DoPreProcessExecution(RunType runType, ExecutionMode& executionResult)
at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.DoPreProcessExecutionAndRunViews(RunType runType)
at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.ExecuteForSql(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult)
at Microsoft.SqlServer.Management.SqlMgmt.SqlMgmtTreeViewControl.Microsoft.SqlServer.Management.SqlMgmt.IExecutionAwareSqlControlCollection.PreProcessExecution(PreProcessExecutionInfo executionInfo, ExecutionMode& executionResult)
at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.RunNow(RunType runType, Object sender)
Are you creating the job on the same version of SQL that the server is running?
I have had something like this before when creating the job on my development PC. To fix the problem I RDP'd to the SQL Server and created the job on the server without any problem.
Phil

crystal report error

i am getting error when i am trying to show crystal report or export. i am not being able to understand reading the error message. i have bind my crystal report with dataset and also properly send crystal report parameter. please help me to fix up the problem.
Error Logon failed.
Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt:
Unable to connect: incorrect log on parameters.
Error CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt:
Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
Details: mscorlib : Could not find a part of the path 'D:\Tridip_BBA\BBA JOB Board With New Part\reman\TypedDataset\EOD.xsd'.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_a82e24f3-3616-46fa-bb17-84e169f5d5e7 {AD3F546E-6C3F-4675-9174-9E6F417D5F08}.rpt:
Unable to connect: incorrect log on parameters.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
at EOD_Schedular.frmMain.GenerateReport(Boolean ViewOnly)
at EOD_Schedular.frmMain.Generate(Boolean ViewOnly)
Method Name: ThrowDotNetException
I see Error Logon failed...incorrect log on parameters. Did you try database->verify database?
Or, take a look at this. Does it sound familiar? Crystal Report: Unable to connect incorrect log on parameters
If there are sub reports in this report, then you must explicitly set the datasource for the sub report too. Just setting the entire dataset to main report datasource is not enough.