Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncation error should be a user exception #98

Open
pivnicek opened this issue Dec 11, 2018 · 1 comment
Open

Truncation error should be a user exception #98

pivnicek opened this issue Dec 11, 2018 · 1 comment

Comments

@pivnicek
Copy link
Contributor

PDOException:SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]A .NET Framework error occurred during execution of user-defined routine or aggregate \"geography\":  System.Data.SqlServer.TruncationException: Trying to convert return value or output parameter of size 72 bytes to a T-SQL type with a smaller size limit of 60 bytes. System.Data.SqlServer.TruncationException:     at System.Data.SqlServer.Internal.CXVariantBase.StringToWSTR(String pstrValue, Int64 cbMaxLength, Int32 iOffset, EPadding ePad)

Trace

{\"errFile\":\"\/code\/vendor\/keboola\/db-extractor-common\/src\/Keboola\/DbExtractor\/Extractor\/Extractor.php\",\"errLine\":289,\"errCode\":\"42000\",\"errTrace\":\"#0 \/code\/vendor\/keboola\/db-extractor-common\/src\/Keboola\/DbExtractor\/Extractor\/Extractor.php(289): PDOStatement->fetch(2)\\n#1 \/code\/src\/Keboola\/DbExtractor\/Extractor\/MSSQL.php(228): Keboola\\\\DbExtractor\\\\Extractor\\\\Extractor->writeToCsv(Object(PDOStatement), Object(Keboola\\\\Csv\\\\CsvFile), true)\\n#2 \/code\/vendor\/keboola\/db-extractor-common\/src\/Keboola\/DbExtractor\/Application.php(170): Keboola\\\\DbExtractor\\\\Extractor\\\\MSSQL->export(Array)\\n#3 \/code\/vendor\/keboola\/db-extractor-common\/src\/Keboola\/DbExtractor\/Application.php(65): Keboola\\\\DbExtractor\\\\Application->runAction()\\n#4 \/code\/src\/run.php(55): Keboola\\\\DbExtractor\\\\Application->run()\\n#5 {main}\",\"errPrevious\":\"\"} 
@pivnicek pivnicek changed the title Truncation error Truncation error should be a user exception Dec 11, 2018
@pivnicek
Copy link
Contributor Author

should throw a user exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant