How to enable (or view) SQL log in Directus? - directus

How can I get the initial SQL error which caused this exception in Directus?
api[_].ERROR: Directus\Database\Exception\InvalidQueryException: Failed generating the SQL query.
in /var/www/directus/src/core/Directus/Database/TableGateway/BaseTableGateway.php:812

I don't think there is a log within Directus, but you should be able to access this through your server logs.

Related

Azure Logic Apps SQL Connector Error: Bad Request

I'm using the SQL Connector in Azure Logic Apps to connect to our Azure SQL Database to perform queries, update tables, and execute stored procedures. After several months of developing logic apps, I'm seeing the below error message when using the SQL Connector "Execute Stored Procedure (V2)". I'm only encountering this error with this specific connector. All the other connectors work just fine. Has anyone encountered this error before and had success troubleshooting?
Error:
Could not retrieve values. Error code: 'BadRequest', Message: 'The value's length for key 'application name' exceeds it's limit of '128'.
clientRequestId: 'XXXXX'. More diagnostic information: x-ms-client-request-id is 'XXXXX'.
Just had a call with Microsoft Support and got confirmation: this is the global issue in the SQL connector of LogicApp. They are working on this to fix, no ETA for now.
Update: should be fixed from around 29.03.2022 03:00 CET

Error: Invalid column name 'is_memory_optimized' when expand tables in SQL Server

I am encountering an error message when I try to expand or refresh tables in SQL Server. Since I cannot upload images, I will describe below. Could anyone help me?
I am using SQL Server 2014 CTP1
Failed to retrieve data for this request.(Microsoft.SqlServer.Management.Sdk.Sfc)
Additional information:
An exception occurred while executing a Transact-
SQL statement or batch.
(Microsoft.SqlServer.ConnectionInfo)
Invalid column name 'is_memory_optimized'.
Invalid column name 'is_memory_optimized'.(Microsoft SQL Server, Error: 207)
Screenshot:
Image http://tinypic.com/r/6p6iap/8
I just uninstalled the CTP1, and installed the final SQL Server 2014 version. Problem solved. Thanks everyone.

Getting read timeout error on pentaho on calling pentaho reports

I am using pentaho bi server 4.5 version, I have huge data for the particular tenant. When I am trying to generate report for particular period .. It is giving error as "Read Timeout" . And displaying as below :
ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://xx.xxx.xx.xxx:8081/pentaho/ViewAction?
The following error was encountered:
Read Timeout
The system returned:
[No Error]
A Timeout occurred while waiting to read data from the network. The network or server may be down or congested. Please retry your request.
Please help me out.
And also need help on how to increase the read time on bi server.
Thanks in advance,
Mounesh
We can control the query timeout for PRPTs as follows.
Master Report > Attributes > query > timeout
Here you can define the how many seconds the report times out.
Master Report > Attributes > query > limit
Here you can define how many rows are returned to the report.
If using the Manage Data Sources Perspective in PUC you can add an extra property to set the query timeout.
This socketTimeout is valid for PostgreSQL and MySQL if you use any other DB let me know.
For further knowledge:
/biserver-ee/pentaho-solutions/system/mondrian/mondrian.properties
mondrian.rolap.queryTimeout=300
This accounts for Analyzer/ Mondrian timeouts.

Error while disabling publishing and distribution

Hi I delete all publications and subscriptions on sql server 2008 . Then try to disabling publishing and distribution for reconfigure replication but have an error :
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
Invalid object name 'dbo.sysmergesubscriptions'.
Changed database context to 'master'. (Microsoft SQL Server, Error: 208) Ho solve it ?
One thing you can do is: create that object by yourself. Most likely there would be more than one table/view missing. Just script those missing objects from another database (for example, develop environment) and create them in your production box.

Can't create branch TFS 2008 - Error 8152

I'm trying to create a new development branch from main (our first branch) but with no luck.
I've tried google but google doesn't seem to want to help me today...
The error i receive is this:
A database error occurred (SQL error 8152) ---> String or binary data would be truncated.
SRV-TFS.TfsVersionControl..prc_PendBranch: Database Update Failure - Error 8152 executing INSERT statement for tbl_PendingChange
please check the name of your branch. I think its too long that TFS database allows.