cwebbbi / PowerBITextAnalytics

A Power BI custom data connector to call the Microsoft Cognitive Services Text Analytics API
MIT License
22 stars 2 forks source link

PBI unable to detect custom data connectors #2

Open leungi opened 7 years ago

leungi commented 7 years ago

Chris,

I opened the sample pbix file, but can't see the custom connector as an option. Checking the queries, the following msg is seen:

Expression.Error: The import TextAnalytics.DetectLanguage matches no exports. Did you miss a module reference?

Look forward to testing it when it works! Thanks. Ivan

cwebbbi commented 7 years ago

Sorry to ask this question, but you have installed the .mez file in the right directory, and enabled custom data connectors as a preview feature in Power BI Desktop? See https://powerbi.microsoft.com/en-us/blog/data-connectors-developer-preview/ for more details.

leungi commented 7 years ago

Chris,

Apologies for delayed response.

The .meq may be the issue. I already turned on feature preview.

I tried to compile the .sln file to generate .meq but no luck opening it; I use VS 2013, 2015, 2017, and all gave the same error message – ‘unsupported’.

Is it possible for you to compiled and post .meq to repo?

Thanks again for your help!

Ivan

cwebbbi commented 7 years ago

Did you install the Power BI SDK for Visual Studio, as detailed in the Power BI blog post I linked to above?

Send me an email direct and I'll send you the file. You can find my contact details at www.crossjoin.co.uk

leungi commented 7 years ago

Thanks for the suggestion Chris; I should’ve installed the SDK first.

So I did, and got the .mez file. I placed it in ‘User\Documents\Microsoft Power BI Desktop\Custom Connectors’ as per guide, but PBI still can’t detect it.

Look FW to your advice.

Ivan

cwebbbi commented 7 years ago

Can you post the error message that you see when you try to run one of the queries from the .pbix file containing the examples?

leungi commented 7 years ago

There are 2 error messages when running the .pbix in the repo:

· missing module; likely due to PBI not detecting .mez file for some reason

Expression.Error: The import TextAnalytics.DetectLanguage matches no exports. Did you miss a module reference?

· Data source error; I presume this is a temp file that stores the results from API

DataSource.Error: Could not find a part of the path 'C:\Users\\AppData\Local\Microsoft\Windows\INetCache\IE\G6IAUWZW\feed[1]'.

Details:

C:\Users\<user>\AppData\Local\Microsoft\Windows\INetCache\IE\G6IAUWZW\feed[1]
cwebbbi commented 7 years ago

Did you enable the Custom Data Connector preview feature in the Options dialog in Power BI Desktop?

leungi commented 7 years ago

Yes, first thing I did.

cwebbbi commented 7 years ago

I have no idea what the problem is then, sorry...!

leungi commented 7 years ago

No problem; you tried. Thanks again Chris. I’ll try to debug.

karun-r commented 6 years ago

Did you find any resolution for the error @leungi ? I am seeing the same error for one of my custom data connectors

leungi commented 6 years ago

Haven't tried it again since. With the multiple updates on PBI thus far, it may just work now.

Will update when I have a chance to try.