Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am running into a weird folding error that produces trace output like the following:
DataMashup.Trace Warning: 24579 : {"Start":"2018-05-31T20:22:40.3298408Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"6768","ErrorMessage":"Failed to convert from bool to int8 for expression \"isnewimplementation\". You can override this by using SqlGetInfo for converting from BIT to BIGINT.","ProductVersion":"2.58.5103.501 (PBIDesktop)","ActivityId":"4d0e0e7f-6f7a-4936-ae73-89f251bf42ee","Process":"Microsoft.Mashup.Container.NetFX40","Pid":1264,"Tid":1,"Duration":"00:00:00.0000923"} DataMashup.Trace Warning: 24579 : {"Start":"2018-05-31T20:22:40.3299428Z","Action":"OdbcQuery/FoldingWarning","HostProcessId":"6768","ErrorMessage":"The SoftNumbers feature has not been set. You can override it by using the option parameter in Odbc.DataSource/Odbc.Query.","ProductVersion":"2.58.5103.501 (PBIDesktop)","ActivityId":"4d0e0e7f-6f7a-4936-ae73-89f251bf42ee","Process":"Microsoft.Mashup.Container.NetFX40","Pid":1264,"Tid":1,"Duration":"00:00:00.0000107"} DataMashup.Trace Warning: 24579 : {"Start":"2018-05-31T20:22:40.3300469Z","Action":"OdbcQueryDomain/ReportFoldingFailure","HostProcessId":"6768","Exception":"Exception:\r\nExceptionType: Microsoft.Mashup.Engine1.Runtime.FoldingFailureException, Microsoft.MashupEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\nMessage: Folding failed. Please take a look the information in the trace.\r\nStackTrace:\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitNumberTypeFromFunction(InvocationQueryExpression expression, Boolean isInt)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitInvocation(InvocationQueryExpression expression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitValueEqualsShared(InvocationQueryExpression expression, Boolean nullable)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitInvocation(InvocationQueryExpression expression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitBinary(BinaryQueryExpression binaryExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitBinary(BinaryQueryExpression binaryExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitBinary(BinaryQueryExpression binaryExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitBinary(BinaryQueryExpression binaryExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitBinary(BinaryQueryExpression binaryExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryExpressionVisitor.VisitBinary(BinaryQueryExpression binaryExpression)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQuery.SelectRows(FunctionValue function)\r\n\r\n\r\n","ProductVersion":"2.58.5103.501 (PBIDesktop)","ActivityId":"4d0e0e7f-6f7a-4936-ae73-89f251bf42ee","Process":"Microsoft.Mashup.Container.NetFX40","Pid":1264,"Tid":1,"Duration":"00:00:00.0001315"} DataMashup.Trace Warning: 24579 : {"Start":"2018-05-31T20:22:40.2286206Z","Action":"RemotePageReader/RunStub","HostProcessId":"6768","Exception":"Exception:\r\nExceptionType: Microsoft.Mashup.Engine1.Runtime.ValueException, Microsoft.MashupEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\r\nMessage: [Expression.Error] We couldn't fold the expression to the data source. Please try a simpler expression.\r\nStackTrace:\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQueryDomain.ReportFoldingFailure(NotSupportedException ex)\r\n at Microsoft.Mashup.Engine1.Library.Odbc.OdbcQuery.SelectRows(FunctionValue function)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query, Func`2 operation)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query, Func`2 operation)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query, Func`2 operation)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query)\r\n at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.Optimize(Query query)\r\n at Microsoft.Mashup.Engine1.Language.Query.QueryTableValue.get_OptimizedQuery()\r\n at Microsoft.Mashup.Engine1.Language.Query.QueryTableValue.GetReader()\r\n at Microsoft.Mashup.Engine.Interface.Tracing.TracingDataReaderSource.get_PageReader()\r\n at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.<>c__DisplayClass11.<>c__DisplayClass13.<OnBeginGetDataReaderSource>b__10()\r\n at Microsoft.Mashup.Evaluator.RemotePageReader.<>c__DisplayClass7.<RunStub>b__0()\r\n at Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)\r\n\r\n\r\n","ProductVersion":"2.58.5103.501 (PBIDesktop)","ActivityId":"4d0e0e7f-6f7a-4936-ae73-89f251bf42ee","Process":"Microsoft.Mashup.Container.NetFX40","Pid":1264,"Tid":1,"Duration":"00:00:00.1020642"}
I am using Power BI Desktop version 2.58.5103.501 and the Amazon Redshift connector. The "IsNewImplementation" field is a boolean in the underlying Redshift connector, so I'm not sure what's going on there and why there is a conversion being attempted. Likewise, I am at a complete loss on the "SoftNumbers" issue -- I can't even find anything related to that feature anywhere on the Internet.
I am happy to provide any more details that might be helpful. I know that the Redshift connector likely isn't the most mature connector out there, and I want to do all I can to help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.