Quantcast
Channel: Power Query topics
Viewing all 27424 articles
Browse latest View live

Importing Sharepoint Library with Column Headings

$
0
0

I am trying to 'get data' from a sharepoint library, but I want to process the contents of the library itself, rather than data stored within and files in the library. I hope that makes sense...

 

The column headings of the sharepoint library are, say, 'file name', 'field x', 'field y', 'field z'. When I 'get data', the column headings of the imported data are 'content', 'file name', 'extension', date accessed', date modified', etc. - not of interest.

 

Does anyone know how to import the data fields associated with each file from the sharepoint library, rather than the metadata for each file?

 

Thanks!


On-premises data gateway service start timeout after server reboot.

$
0
0

A server running the On-premises data gateway service has to be rebooted regularly (for other reasons). Every time (4 so far), the gateway service fails to start.  Here's the message from the Windows Event Log:

 

A timeout was reached (120000 milliseconds) while waiting for the On-premises data gateway service service to connect.

 

I can start the service manually without any problems.  I put the windows service on "delayed start" but that hasnt fixed it. Any ideas?

Connect Power BI to Microsoft Dynamics CRM 2011

$
0
0

I have look through multiple post trying to connect to either the content pack or directly to CRM throught the desktop (Ver November 2018).

 

Every post I see refers to Dynamics CRM Online, or the *CRM Online content Pack, but neither is available. Everything I see, is referring to D365.

 

I can't imagine Microsoft removed data connectivity to one of their own products, so I have to think that I must be doing something wrong.

 

I tried connecting directly through OData connector, on the desktop, but kept getting this error "Details: "OData: The given URL neither points to an OData service or a feed: ", however I am using the correct URL provided in the CRM under Developer Resources.

Power BI failing to connect to Stream Analytics.

$
0
0

Hi everyone!

 

I'm trying to stream data from Event Hub to PowerBI using Stream analytics. While creating an Stream Analytics output to Power BI, it asks for authorization. When I authorize and put in my credentials it gives me the below error. 

"We couldn't connect to that service, likely because of settings put in place by your IT team. Open Azure in a different Web browser to try again"

 

I tried 3 different browsers and incognito window without any success.

 

Have you seen this error before, or do you have any clue on the cause? Thanks!

 

Natalia

Combining Duplicate data into one

$
0
0

Hi,

 

I am new to the PBI scene and have been searching for a solution to combine two data records into one. I have viewed trasnform, group by , etc... and so far all the steps I followed did not work out or I may be just doing something wrong or the solutions is not even what I am looking for. So the issue i am having is that I have a dashboard that I have created that shows the computer and the users associated/assigned to the computers. Whats happening to the data is that the computer gets duplicated values due to multiple users that are using the same computer. What I would like to see if there is a way to merge both users to display in one row which references the same computer. Hope I explained it right. I have highlighted the issue I am having and hope there is a way to change the view that the users using the same computer can be displayed at the same time but only counting one computer... Thank you for reviewing my post and hope that someone would be able to help me...

 

 

Capture2.jpg

 

Google Oauth2 (Google My Business API)

$
0
0

Hi,

 

I've done a lot of searching on this the past couple of days but keep hitting a brick wall. Basically I'm looking to use the Google My Business API within Power BI.

 

Now I manage to connect to the API using the access token in the uri, but obviously this expires in 1 hours time. The code below i'm using is:

let    
    ufnGetList = (pgToken) =>
        let 
            result = Json.Document(
                        Web.Contents("***My google business uri here with access token and page token parameter" & pgToken)
                        ),
            nextPageToken = try result[nextPageToken] otherwise null,
            reviews = result[reviews],
            record = [reviews = reviews, nextPageToken = nextPageToken]
        in
            record,
    resultSet = List.Generate(
                    () => ufnGetList(""),
                    each _[nextPageToken] <> null,
                    each ufnGetList(_[nextPageToken]),
                    each [nextPageToken = _[nextPageToken], reviews = _[reviews]]
                    ),
    lastPageToken = List.Last(Table.FromRecords(resultSet)[nextPageToken]),
    lastResultSet = ufnGetList(lastPageToken)[reviews],
    firstResultSet = List.First(Table.FromRecords(resultSet)[reviews]),
    combineList = List.Combine({ firstResultSet, lastResultSet}),

The above gets the dataset and will loop over the pages to return all results.

 

My issue, as mentioned comes with the access token.

 

I know Google uses Oauth 2 and provides a refresh token but can anyone help me with how I would implement this in Power Query?

 

I've tried multiple post methods but keep getting hit with a (400) Bad Request error from https://accounts.google.com/o/oauth2/token

 

I've tried to follow the Twitter guide thats out there for using an Oauth 2 API but the code below fails;

 

/*
This M script gets an bearer token and performs a tweet search from the Twitter REST API
https://dev.twitter.com/oauth/application-only

Requires establishing a Twitter application in order to obtain a Consumer Key & Consumer Secret
https://apps.twitter.com/

IMPORTANT - The Consumer Key and Consumer secret should be treated as passwords and not distributed
*/

let
 // Concatenates the Consumer Key & Consumer Secret and converts to base64
 authKey = "Basic " & Binary.ToText(Text.ToBinary("***my client id***:***my client secret***"),0),
 url = " https://accounts.google.com/o/oauth2/token",
 // Uses the Twitter POST oauth2/token method to obtain a bearer token
 GetJson = Web.Contents(url,
     [
         Headers = [#"Authorization"=authKey,
                    #"Content-Type"="application/x-www-form-urlencoded;charset=UTF-8"],
              Content = Text.ToBinary("grant_type=authorization") 
     ]
 ),
 FormatAsJson = Json.Document(GetJson),
 // Gets token from the Json response
 AccessToken = FormatAsJson[access_token],
 AccessTokenHeader = "bearer " & AccessToken,
 // Uses the Twitter GET search/tweets method using the bearer token from the previous POST oauth2/token method
 GetJsonQuery = Web.Contents("***url to access google my business reviews***",
     [
         Headers = [#"Authorization"=AccessTokenHeader]
     ]
 ),
 FormatAsJsonQuery = Json.Document(GetJsonQuery),
in
FormatAsJsonQuery

 

Any help is appreciated.

OData from different databases

$
0
0

Hello,

 

I am trying to get data from two databases in the same report. I am using oData as source. However, when I am going to edit the data form one of the two databases the other one is diconnecting. Is it possible to use oData from different databases? How can I keep them connected and use my data in the same query?

Cant Refresh Data Using Gateway from REST API / Jira

$
0
0

All went well to get the data from Jira REST API but couldnet connect to gateway to refresh data !!!

Error Message below

 

You can't schedule refresh for this dataset because the following data sources currently don't support refresh:

  • Data source for Query1111.jpg

Thanks

 


Multiple Access files, one for each year.

$
0
0

Hi!

 

I am going to create a data model which will have as the main table, one that is in 5 different Access files (one for each year data). They all have the same data structure of course and are in the same folder, it is just one file for each year. What is the best way to integrate them in 1 table with all the rows in Power BI so all the data transformations in the query editor will aply to all the data?

 

Thank you very much!! and sorry for my english.

 

Merry Christmas BTW!

How to add additional Salesforce Reports to an existing dataset based on Salesforce Reports

$
0
0

I have successfully created a dataset from multiple Salesforce Reports, and then created a report and Dashboard from the dataset.

 

I now have some new Salesforce reports that I would like to add to this dataset to include in the existing report and dashboard.

 

I can't see any way to add additional Salesforce reports to a dataset? Am I missing something or is it simply not possible?

On-Premise Gateway doesn't work when appending tables from different sources

$
0
0

Hello guys,

 

I'm trying to pull data from Azure SQL Server and from MySQL (Amazon RDS) via On-Premise gateway.

Everything works fine if I do it separately but the moment I try to append those tables the gateway gives me that error:

"Cannot connect to the mashup data source."

  

Both tables have the same columns and same data types.

I have tried to play with privacy levels too as said in some other topics but didn't work.
We have the latest gateway version installed.


The Operation causing problems:

= Table.Combine({#"MySQL - Data", #"SQLServer - Data"})

 

Looking at the gatewayInfo logs we found that:

"[DM.Pipeline.Common] Failed to read GatewayCore property: EnableFastCombine, Ex: Object reference not set to an instance of an object."

 

On the other side, at the gatewayError logs:

GatewayPipelineErrorCode=DM_GWPipeline_UnknownError
GatewayVersion=
InnerType=MashupValueException
InnerMessage=<pi>Microsoft SQL: Cannot open server 'server' requested by the login. Client with IP address 'ip address' is not allowed to access the server. To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect.</pi>
InnerToString=<pi>Microsoft.Data.Mashup.MashupValueException (0x80004005): Microsoft SQL: Cannot open server 'server' requested by the login. Client with IP address 'ip address' is not allowed to access the server. To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect.

 

If I Append only the tables from Azure it works fine too.

I am missing something? Is there anything we can do to solve the problem from the PowerBI before start playing with IP permissions and stuff like that?

 

I think I can solve it with UNION in DAX but those tables are both pretty large and I don't think it is my best option.

 

Thank you!

Filtering table

$
0
0

Hi everyone.

 

I have a table with data in this format:

Date      param_1    param_2       param_3

date     value         value            value

 

How can I filter it, so filter will have options to select param_1, param_2 and param_3?

 

Regards,

Yerkhan

Partial data returned for App Insights/Log Analytics query (was working previously)

$
0
0

 

Hi,

 

I've had a report that has been running well for about 6 months, it pulls data from App Insights/Log Analytics via the REST Query API.

 

The query is actually aggregating several sources, e.g. each query will look something like:

 

union app("app1").requests, app("app2").requests
| where...

As of this weekend, it's only getting data in from the first app, the other data is not appearing when running the report via PowerBI online, however if I download the PBIX and run it on the desktop, everything is fine.

 

Can anyone help me understand why I am only getting partial data through?

 

The report has not changed in several weeks. The data source is also succesfully refreshing according to the PowerBI services page. (No errors anyway)

 

 

Thanks

Rest API with empty Record

$
0
0

Im Newer in PBI 

I would like to connect to Rest API thas done , but i have this problem 

Capture.JPG

when i would like to expand the column i dont have the ICON ?

i learn the basics on Language M and i m still struggling to find the solution how can i get value of the this records .?

I have 5 column ho i have column like Image !!

Thank you in advance 

 

Direct Query - SAP HANA Database

$
0
0

Good afternoon,

 

I have a question about the Direct Query mode of the SAP HANA Database connection.

 

Creating and using the connection in the first instance works perfectly - I can connect to Calculation Views stored on our HANA databases, design dashboards and publish them.

 

My issue is that once that initial connection is made, it cannot be changed or edited. This is a massive burden when trying to replicate the same dashboard across multiple databases, because the layout has to be built from scratch again in a new dashboard with a new connection.

 

As an example, we have a sales dashboard looking at a Calc. View for our Australian database. We'd like the same dashboard for our New Zealand database. I'd expect to be able to create a copy of the dashboard file and change the connection to look at the New Zealand Calc. View, especially because all the fields are the same. Unfortunately, I can't find a way to do this.

 

Does anybody have a solution? Data Source Settings only allows me to change the connection credentials.

 

HANA Direct Query Power BI.JPG

 

 


Linking Workbook to CSV file from Yahoo Finance

$
0
0

I am trying to connect a workbook to a CSV file from the web (yahoo finance, stock prices). The link is below:

 

https://query1.finance.yahoo.com/v7/finance/download/ITRI?period1=752486400&period2=1545033600&interval=1d&events=history&crumb=JiSm7uJUQd7

 

When I try to connect to it with the query editor, it shows "we couldn't authenticate with the credentials provided. Please try again."

 

My steps are 

 

1. Copy CSV link from Yahoo Finance

2. Go to "get data from web"

3. Paste link using the basic editor

4. Access web content anonymously

5. Connect

 

Is there anything I need to change in my steps? And has anyone else connected to a CSV from Yahoo Finance?

 

Thank you for any help on this!

 

 

Connecting to API data source

Can't update or schedule refresh using a m function to load data from Elastic Search

$
0
0

Hello there, this is my first time working with this tecnology and I had to see If anything can give me a hand with this.

 

I'm using the function written in this post to load a bunch of data from a internal elastic search server, the only change I did was using two parameters to pass the two first params of the function (they are always the same, I dont have to modify them atleast in this document)

In Power Bi desktop, for now is working fabulous, but at the time to upload the document to the web app I would also like to schedule a diary update like with other documents (or at least a manually update) but the site shows the following error:

 

 

 

Both params have enable load checked, and the data source in case you try to load indepently like a web resource works perfectly, and I dont know what I'm missing Smiley Frustrated

 

Best regards and thanks in advance, from what I've been able to read through the forum, you're doing a great job. Smiley Very Happy

 

 

SalesForce - Connecting Data Tables on Power BI export

$
0
0

Hello all,

 

I am using Power BI to pull from "SalesForce Objects" folder when I "Get Data". The issue I am having is I want to pull two items "Account" and "Transaction", but there doesn't appear to be a field I can use to build a "Relationship". In other words, how would I map any Transaction to a particular Account without a field that matches both tables?

 

For the short term, I know I can build a report that provides the data to give a breakdown of transactions that are linked to an account, but if we ever scale to doing over 2k transactions, then that report will not help in the long run. 

 

Any help would be appreciated. Thank you in advance!

 

Sincerely,

 

Vj

OData error calling function

$
0
0

Hi,

 

I would like to get help from you guys, I have a problem trying to get data from a OData source.

The data comes from a OData function and it receives a JSON as a parameter, in Power BI that JSON is a record. The query that represents this first step is:

let
    Origen = OData.Feed("MY-ODATA-URL", null, [Implementation="2.0"]),
    #"executeQuery3_function (parameters as record) as table" = Origen{[Name="executeQuery3",Signature="function (parameters as record) as table"]}[Data]
in
    #"executeQuery3_function (parameters as record) as table"

 At moment there is not problem. Then, I fill the next fields to call that function

 

1.PNG

 

The error happens after I press 'Invoke'. The error is the next:

Unexpected error: Specified method is not supported.
Detalles:
    Microsoft.Mashup.Evaluator.Interface.ErrorException: Specified method is not supported. ---> Microsoft.Mashup.Evaluator.Interface.ErrorException: Specified method is not supported. ---> Microsoft.Mashup.Evaluator.Interface.ErrorException: Specified method is not supported. ---> Microsoft.Mashup.Evaluator.Interface.ErrorException: Specified method is not supported. ---> Microsoft.Mashup.Evaluator.Interface.ErrorException: Specified method is not supported. ---> System.NotSupportedException: Specified method is not supported. ---> System.NotSupportedException: Specified method is not supported.
   at Microsoft.Mashup.Engine1.Library.OData.V4_7.QueryBuilder.ODataQueryExpressionVisitor.VisitConstant(ConstantQueryExpression constantExpression)
   at Microsoft.Mashup.Engine1.Library.OData.V4_7.QueryBuilder.ODataQueryExpressionVisitor.Compile(QueryExpression queryExpression)
   at Microsoft.Mashup.Engine1.Library.OData.V4_7.QueryBuilder.ODataExpression.BuildConstantNode(Value value)
   at Microsoft.Mashup.Engine1.Library.OData.V4_7.UnboundFunctionValue.InvokeN(Value[] args)
   at Microsoft.Mashup.Engine1.Language.DebugInstruction.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.FunctionInvocationInstruction2.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.DebugInstruction.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.InstructionInvocationInstruction2.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.DebugInstruction.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.MembersFunctionValue1.Invoke(Value arg0)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.Force(Int32 index)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.get_Item(Int32 index)
   at Microsoft.Mashup.Engine1.Language.MembersFunctionValue1.Invoke(Value arg0)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.Force(Int32 index)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.get_Item(Int32 index)
   at Microsoft.Mashup.Engine1.Runtime.Library.Linker.BindFunctionValue.TypedInvoke(RecordValue environment, Value section, TextValue name)
   at Microsoft.Mashup.Engine1.Runtime.NativeFunctionValue3`4.Invoke(Value arg0, Value arg1, Value arg2)
   at Microsoft.Mashup.Engine1.Language.MembersFunctionValue0.Invoke()
   at Microsoft.Mashup.Engine1.Language.ListInstruction.RuntimeListValue.Force(Int32 index)
   at Microsoft.Mashup.Engine1.Language.ListInstruction.RuntimeListValue.get_Item(Int32 index)
   at Microsoft.Mashup.Engine1.Language.MembersFunctionValue1.Invoke(Value arg0)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.Force(Int32 index)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.get_Item(Int32 index)
   at Microsoft.Mashup.Engine1.Language.FunctionInvocationInstruction2.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.Instruction.ExecuteCondition(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.DebugInstruction.ExecuteCondition(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.IfInstruction.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.DebugInstruction.Execute(MembersFrame1& frame)
   at Microsoft.Mashup.Engine1.Language.MembersFunctionValue1.Invoke(Value arg0)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.Force(Int32 index)
   at Microsoft.Mashup.Engine1.Language.RecordInstruction.RuntimeRecordValue.get_Item(Int32 index)
   at Microsoft.Mashup.Engine1.Language.MembersFunctionValue0.Invoke()
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.BeginGetResult(DocumentEvaluationParameters parameters, Action`1 callback)
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.BeginGetResult(DocumentEvaluationParameters parameters, Action`1 callback)
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.BeginGetResult(DocumentEvaluationParameters parameters, Action`1 callback)
   at Microsoft.Mashup.Evaluator.FirewallPartition.BeginGetResult[T](Action`1 callback)
   at Microsoft.Mashup.Evaluator.FirewallDocumentEvaluator.Evaluation`1.OnBufferComplete(Exception exception)
   at Microsoft.Mashup.Evaluator.Firewall.BeginBufferPartitions(Action`1 callback)
   at Microsoft.Mashup.Evaluator.FirewallDocumentEvaluator.BeginGetResultInternal[T](DocumentEvaluationParameters parameters, Action`1 callback)
   at Microsoft.Mashup.Evaluator.Interface.IDocumentEvaluatorExtensions.GetResult[T](IDocumentEvaluator`1 evaluator, DocumentEvaluationParameters parameters)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetResult[T](IMessageChannel channel, BeginGetResultMessage message, Action`1 action)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetPreviewValueSource(IMessageChannel channel, BeginGetPreviewValueSourceMessage message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.OnMessageWithUnknownChannel(IMessageChannel baseChannel, MessageWithUnknownChannel messageWithUnknownChannel)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.EvaluationHost.Run()
   at Microsoft.Mashup.Evaluator.SafeThread2.<>c__DisplayClass15.<CreateAction>b__14(Object o)
   at Microsoft.Mashup.Container.EvaluationContainerMain.SafeRun(String[] args)
   at Microsoft.Mashup.Container.EvaluationContainerMain.Main(String[] args)
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.<>c__DisplayClass2.<BeginGetResult>b__0(EvaluationResult2`1 result)
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.<>c__DisplayClass2.<BeginGetResult>b__0(EvaluationResult2`1 result)
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.BeginGetResult(DocumentEvaluationParameters parameters, Action`1 callback)
   at Microsoft.Mashup.Evaluator.SimpleDocumentEvaluator.BeginGetResult(DocumentEvaluationParameters parameters, Action`1 callback)
   at Microsoft.Mashup.Evaluator.FirewallPartition.BeginGetResult[T](Action`1 callback)
   at Microsoft.Mashup.Evaluator.FirewallDocumentEvaluator.Evaluation`1.OnBufferComplete(Exception exception)
   at Microsoft.Mashup.Evaluator.Firewall.BeginBufferPartitions(Action`1 callback)
   at Microsoft.Mashup.Evaluator.FirewallDocumentEvaluator.BeginGetResultInternal[T](DocumentEvaluationParameters parameters, Action`1 callback)
   at Microsoft.Mashup.Evaluator.Interface.IDocumentEvaluatorExtensions.GetResult[T](IDocumentEvaluator`1 evaluator, DocumentEvaluationParameters parameters)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetResult[T](IMessageChannel channel, BeginGetResultMessage message, Action`1 action)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetPreviewValueSource(IMessageChannel channel, BeginGetPreviewValueSourceMessage message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.OnMessageWithUnknownChannel(IMessageChannel baseChannel, MessageWithUnknownChannel messageWithUnknownChannel)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.EvaluationHost.Run()
   at Microsoft.Mashup.Evaluator.SafeThread2.<>c__DisplayClass15.<CreateAction>b__14(Object o)
   at Microsoft.Mashup.Container.EvaluationContainerMain.SafeRun(String[] args)
   at Microsoft.Mashup.Container.EvaluationContainerMain.Main(String[] args)
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.<>c__DisplayClassb.<>c__DisplayClassd.<OnBeginGetPreviewValueSource>b__a()
   at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.<>c__DisplayClass5.<RunStub>b__3()
   at Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.EvaluationHost.<>c__DisplayClass7.<TryReportException>b__6()
   at Microsoft.Mashup.Common.SafeExceptions.IgnoreSafeExceptions(IEngineHost host, IHostTrace trace, Action action)
   at Microsoft.Mashup.Evaluator.EvaluationHost.TryReportException(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Exception exception)
   at Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)
   at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.RunStub(IEngineHost engineHost, IMessageChannel channel, Func`1 getPreviewValueSource)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.<>c__DisplayClass1e`1.<OnBeginGetResult>b__1b()
   at Microsoft.Mashup.Evaluator.EvaluationHost.ReportExceptions(IHostTrace trace, IEngineHost engineHost, IMessageChannel channel, Action action)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetResult[T](IMessageChannel channel, BeginGetResultMessage message, Action`1 action)
   at Microsoft.Mashup.Evaluator.RemoteDocumentEvaluator.Service.OnBeginGetPreviewValueSource(IMessageChannel channel, BeginGetPreviewValueSourceMessage message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.OnMessageWithUnknownChannel(IMessageChannel baseChannel, MessageWithUnknownChannel messageWithUnknownChannel)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.EvaluationHost.Run()
   at Microsoft.Mashup.Evaluator.SafeThread2.<>c__DisplayClass15.<CreateAction>b__14(Object o)
   at Microsoft.Mashup.Container.EvaluationContainerMain.SafeRun(String[] args)
   at Microsoft.Mashup.Container.EvaluationContainerMain.Main(String[] args)
   --- End of inner exception stack trace ---
   at Microsoft.Mashup.Evaluator.EvaluationHost.OnException(IEngineHost engineHost, IMessageChannel channel, ExceptionMessage message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.ChannelMessenger.ChannelMessageHandlers.TryDispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.MessageHandlers.Dispatch(IMessageChannel channel, Message message)
   at Microsoft.Mashup.Evaluator.Interface.IMessageChannelExtensions.WaitFor[T](IMessageChannel channel)
   at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.WaitFor(Func`1 condition, Boolean disposing)
   at Microsoft.Mashup.Evaluator.RemotePreviewValueSource.PreviewValueSource.get_TableSource()
   at Microsoft.Mashup.Evaluator.Interface.TracingPreviewValueSource.get_TableSource()
   at Microsoft.Mashup.Host.Document.Analysis.PackageDocumentAnalysisInfo.PackagePartitionAnalysisInfo.SetPreviewValue(EvaluationResult2`1 result, Func`1 getStaleSince, Func`1 getSampled)

and the query that Power BI generates for this call is:

let
    Origen = executeQuery3([entity="product", xpaths="name"])
in
    Origen

I do not know what I'm doing wrong.

 

NOTE: the function exists and I have already tested in Postman. The function receives a JSON like this:

{
    "parameters": {
        "entity": "product",
        "xpaths": "name,SKU"
    }
}

 

Thanks in advance

Viewing all 27424 articles
Browse latest View live




Latest Images