Internal DMS Error while inserting data in Azure Datawarehouse - azure

I am getting following error while inserting data in dimension table in Azure data warehouse:
110802;An internal DMS error occurred that caused this operation to fail. Details: Please use this Error ID when contacting your Administrator for assistance. EID:(82b090ae0a614abaa5abbe883e49dad1)
[Microsoft][ODBC Driver 13 for SQL Server]Indicator variable required but not supplied Additional error <2>: ErrorMsg: [Microsoft][ODBC Driver 13 for SQL Server]Indicator variable required but not supplied, SqlState: 22002, NativeError: 0

This is usually an indication of an attempt to insert a NULL value into a non-nullable column.

Related

nodejs mssql package- how do I tell a sql syntax error from a server error like a timeout?

I am running mssql queries (using the nodejs mssql package) from strings. if the query fails how do I know if its a sql syntax error, or a server error (eg a timeout)? Examples of both types include:
Server error:
query update x set y=1 err: Error: operation timed out for an unknown reason
Syntax error:
if mssql config is wrong: ConnectionError: Login failed for user 'xxx'
query create database Logs err: RequestError: CREATE DATABASE permission denied in database 'master'
query create databbbbbase Logs error: RequestError: Unknown object type 'databbbbbase' used in a CREATE, DROP, or ALTER statement
I am running the queries like this await pool.request().query(querystring) and using a catch block to get the error message.
Can I safely say if mssql error message is just 'Error' not a specific type (eg 'ConnectionError') that I should rerun the query?

EXTERNAL TABLE access failed due to internal error: 'Java exception raised on call to HdfsBridge_IsDirExist. Java exception message:

I am trying to create external table through polybase with below syntax on Visual Studio 2015. Its giving me the below error. Can some one pls help on this
CREATE EXTERNAL TABLE dbo.DimDate2External (
DateId INT NOT NULL,
CalendarQuarter TINYINT NOT NULL,
FiscalQuarter TINYINT NOT NULL
)
WITH (
LOCATION='/textfiles/DimDate2.txt',
DATA_SOURCE=AzureStorage,
FILE_FORMAT=TextFile
);
CREATE EXTERNAL DATA SOURCE AzureStorage
WITH (
TYPE = HADOOP,
LOCATION = 'wasbs://<blob_container_name>#<azure_storage_account_name>.‌​blob.core.windows.ne‌​t',
CREDENTIAL = AzureStorageCredential
);
CREATE EXTERNAL FILE FORMAT TextFile WITH ( FORMAT_TYPE = DelimitedText, FORMAT_OPTIONS (FIELD_TERMINATOR = ',') );
EXTERNAL TABLE access failed due to internal error:
'Java exception raised on call to HdfsBridge_IsDirExist. Java
exception message: com.microsoft.azure.storage.StorageException:
Server failed to authenticate the request. Make sure the value of
Authorization header is formed correctly including the signature.:
Error [com.microsoft.azure.storage.StorageException: Server failed to
authenticate the request. Make sure the value of Authorization header
is formed correctly including the signature.] occurred while accessing
external file.'
In the 'LOCATION' syntax I mistakenly misplaced the Blob container and Storage account and got this error. Now its fixed.
CREATE EXTERNAL DATA SOURCE AzureStorage WITH ( TYPE = HADOOP, LOCATION = 'wasbs://#.‌​blob.core.windows.ne‌​t', CREDENTIAL = AzureStorageCredential )
I can reproduce this error if the Azure Storage account element of your external data source is incorrect (XXX in my example):
CREATE EXTERNAL DATA SOURCE eds_dummy
WITH (
TYPE = Hadoop,
LOCATION = 'wasbs://dummy#XXX.blob.core.windows.net',
CREDENTIAL = sc_tpch
);
If the blob container name is incorrect (dummy in my example) but the storage account is correct, you get a very specific error message when trying to create the table:
Msg 105002, Level 16, State 1, Line 27 EXTERNAL TABLE access failed
because the specified path name '/test.txt' does not exist. Enter a
valid path and try again.
There appears to be some kind of validation on the blob container. However if the Azure Storage Account name is incorrect, you do not get an error when you create the external data source, only when you try and create the table:
Msg 105019, Level 16, State 1, Line 35 EXTERNAL TABLE access failed
due to internal error: 'Java exception raised on call to
HdfsBridge_IsDirExist. Java exception message:
com.microsoft.azure.storage.StorageException: The server encountered
an unknown failure: : Error
[com.microsoft.azure.storage.StorageException: The server encountered
an unknown failure: ] occurred while accessing external file.'
To correct, please make sure the Azure Storage Account and Blob container exist.
The easiest way to do this is copy the URL of your file or folder from the portal and fix it up for external tables, ie from this:
https://yourStorageAccountName.blob.core.windows.net/yourBlobContainerName
to this:
wasbs://yourBlobContainerName#yourStorageAccountName.blob.core.windows.net
Good luck.

MemSQL select query 1705 error

I am using memsql community version and I am able to execute some queries but getting error for few queries like
select * from policy;
Error code:
ERROR 1705 (HY000): The query cannot be executed.
MemSQL code generation has failed: Failed to delete .fin file.
This likely indicates a permissions problem or some other issue with your installation ([install dir]/plancache may not be writable by memsqld for example). Did you install and start MemSQL via Ops?
There will probably be a more detailed error message inside of
[install dir]/tracelogs/memsql.log

Database Operation Failed: Azure SQL and Azure Data Factory

Database operation failed on server 'worker.database.windows.net,11146' with SQL Error Number '40197'. Error message from database execution : The service has encountered an error processing your request. Please try again. Error code 4815.
A severe error occurred on the current command. The results, if any, should be discarded..
I'm getting the following error. What does error code 4815 mean? Couldn't find any documentation regarding that error code.
The error 4815 means that the SQL Server engine received an invalid column length from the bcp client for colid. You might want to check the parameters again and try this task again.
Here is some documentation on the error codes. Hope this helps.
https://technet.microsoft.com/en-us/library/cc645613(v=sql.105).aspx

What is State 126 for Error Number 18456 on Azure SQL Database

I have a problem logging into a Azure SQL Database from SQL Server Object Explorer in Visual Studio 2015. I'm getting the normal 18456 login error number but I can't find a reference to State 126. Anyone know what this state means?
Oddly enough I can get a connection using LinqPad on the same machine so I'm pretty sure it's not an Azure SQL Server firewall thing.
Here's the message I get (part of the error detail):
Error Number: 18456
Severity: 11
State: 126
Line Number: 65536
Error 18456 state 126 means that the database requested by the user does not exist. I'd suggest clicking the Options button in the connection dialog to expose additional connection options, and verifying that the Connection Properties tab has a "Connect to database" value of default selected. Then, ensure that the Additional Connection Parameters box is empty.

Resources