Прямое соединение PowerBI с ошибкой PostgreSQL.Ошибка OLE или ODBC: [Expression.Error] Не удалось сложить выражение в источник данных - PullRequest
0 голосов
/ 21 мая 2018

Согласно информации от Microsoft DataConnectors Я хочу создать соединитель от PowerBi к PostgreSQL через этот драйвер ODBC , используя прямой запрос .Я повторно использовал код из примера Microsoft , просто настроил ConnectionString, больше ничего.После создания файла .mez, который я импортировал в PowerBI, я хочу подключиться к серверу PostgreSQL. Вот так выглядит диалог подключения .Соединение установлено успешно, и я могу видеть таблицы в БД и использовать их.И вот, вот в чем проблема: когда я выбираю какой-либо столбец для отображения данных в таблице или на графике, я получаю OLE или ODBC ошибку: [Expression.Error] Мы не можем сложить выражение в данныеисточник .Я также включил трассировку в параметрах диагностики, поэтому вот содержимое журнала:

DataMashup.TraceWarning: 24579:
    "Start": "2018-05-18T10:51:56.6199845Z",
    "Action": "OdbcQuery/FoldingWarning",
    "HostProcessId": "25020",
    "Function Name": "Group",
    "ProductVersion": "2.58.5103.501 (PBIDesktop)",
    "ActivityId": "f06a4b5b-09ba-40ce-bd99-424710286b77",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 1,
    "Duration": "00:00:00.0000051"
DataMashup.TraceInformation: 24579: 
    "Start": "2018-05-18T10:51:56.6199552Z",
    "Action": "BackgroundThread/RollingTraceWriter/Flush",
    "ProductVersion": "2.58.5103.501 (PBIDesktop)",
    "ActivityId": "00000000-0000-0000-0000-000000000000",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 8,
    "Duration": "00:00:00.0000560"
DataMashup.TraceWarning: 24579: 
    "Start": "2018-05-18T10:51:56.6199999Z",
    "Action": "OdbcQuery/FoldingWarning",
    "HostProcessId": "25020",
    "ErrorMessage": "This ODBC driver doesn't set the GroupByCapabilities feature. You can override it by using SqlCapabilities.",
    "ProductVersion": "2.58.5103.501 (PBIDesktop)",
    "ActivityId": "f06a4b5b-09ba-40ce-bd99-424710286b77",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 1,
    "Duration": "00:00:00.0000159"
DataMashup.TraceInformation: 24579: 
    "Start": "2018-05-18T10:51:56.6200385Z",
    "Action": "BackgroundThread/RollingTraceWriter/Flush",
    "ProductVersion": "2.58.5103.501 (PBIDesktop)",
    "ActivityId": "00000000-0000-0000-0000-000000000000",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 9,
    "Duration": "00:00:00.0000215"
DataMashup.TraceWarning: 24579: 
    "Start": "2018-05-18T10:51:56.6201305Z",
    "Action": "OdbcQueryDomain/ReportFoldingFailure",
    "HostProcessId": "25020",
    "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.OdbcQuery.Group(Grouping grouping)\r\n   at Microsoft.Mashup.Engine1.Runtime.OptimizingQueryVisitor.VisitQuery(Query query, Func`2 operation)\r\n\r\n\r\n",
    "ProductVersion": "2.58.5103.501 (PBIDesktop)",
    "ActivityId": "f06a4b5b-09ba-40ce-bd99-424710286b77",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 1,
    "Duration": "00:00:00.0000504"
DataMashup.TraceInformation: 24579: 
    "Start": "2018-05-18T10:51:56.6202107Z",
    "Action": "BackgroundThread/RollingTraceWriter/Flush",
    "ProductVersion": "2.58.5103.501 (PBIDesktop)",
    "ActivityId": "00000000-0000-0000-0000-000000000000",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 8,
    "Duration": "00:00:00.0000154"
DataMashup.TraceWarning: 24579: 
    "Start": "2018-05-18T10:51:56.6199413Z",
    "Action": "RemotePageReader/RunStub",
    "HostProcessId": "25020",
    "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.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.b__10()\r\n   at Microsoft.Mashup.Evaluator.RemotePageReader.c__DisplayClass7.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": "f06a4b5b-09ba-40ce-bd99-424710286b77",
    "Process": "Microsoft.Mashup.Container.NetFX40",
    "Pid": 11080,
    "Tid": 1,
    "Duration": "00:00:00.0005557"

Есть идеи, как устранить эту ошибку?Спасибо

...