{"id":4555,"date":"2022-12-23T00:19:56","date_gmt":"2022-12-23T00:19:56","guid":{"rendered":"https:\/\/www.petecodes.co.uk\/?p=4555"},"modified":"2022-12-23T00:20:04","modified_gmt":"2022-12-23T00:20:04","slug":"understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer","status":"publish","type":"post","link":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/","title":{"rendered":"Understanding the Power BI Desktop Azure Data Explorer error “We reached the end of the buffer”"},"content":{"rendered":"\n

Microsoft’s Power BI and Azure Data Explorer (ADX) play really nicely together. Power BI has a 1st party connector which allows us to use Kusto Query Language (KQL) to pull data directly into Power BI.<\/p>\n\n\n\n

However, there’s a gotcha I ran into recently while working on a project that took me a while to figure out.<\/p>\n\n\n\n

When configuring the Azure Data Explorer (Kusto) connector from Power BI Desktop’s “Get Data” dialog;<\/p>\n\n\n

\n
\"\"<\/a>
Power BI – Azure Data Explorer Connector<\/figcaption><\/figure><\/div>\n\n\n

We then need to fill out the various settings for the connector;<\/p>\n\n\n\n

\"\"<\/a>
Power BI – Azure Data Explorer Settings<\/figcaption><\/figure>\n\n\n\n

Hitting the OK button here will then either prompt you to sign into your Azure Account for ADX, or show a list of results from ADX if you’re already signed in.<\/p>\n\n\n\n

However, instead we get a dialog saying “Unable to connect” with a message of; <\/p>\n\n\n\n

We encountered an error while trying to connect. Details: “We reached the end of the buffer.”<\/p><\/blockquote>\n\n\n\n

\"\"<\/a>
Power BI Desktop Issue<\/figcaption><\/figure>\n\n\n\n

A pretty unhelpful message to be fair. This took me ages to figure out, however it seems that the issue is that the login I was given had a domain name which didn’t match the domain name of the Azure Subscription.<\/p>\n\n\n\n

I actually discovered this when I found a workaround.<\/p>\n\n\n\n

It turns out that if you add a Microsoft Federated Email address to the Azure Data Explorer database by running a query similar to this from the ADX query page in the portal;<\/p>\n\n\n\n

.add database myadxdatabase users ('msauser=someuser@hotmail.com') 'Pete Gallagher (hotmail)'<\/code><\/pre><\/div>\n\n\n\n

We can then sign in with this Microsoft Federated email address instead of the account we’d use to sign into the portal, and the connection is successful.<\/p>\n\n\n\n

This works even if this Microsoft email address isn’t a registered user in the Subscription through AAD.<\/p>\n\n\n\n

However, the real fix is to make sure you have an email address login for the portal that matches the Subscription domain. You can find the domain in a few places, such as in the Subscriptions page in the portal, and finding the Directory shown in the overview page;<\/p>\n\n\n\n

\"\"<\/a>
Azure Subscription Directory<\/figcaption><\/figure>\n\n\n\n

You’ll then need to remember to add the new user to the database as well, with something like;<\/p>\n\n\n\n

.add database myadxdatabase users ('aaduser=someuser@contoso.com') 'Pete Gallagher (contoso)'<\/code><\/pre><\/div>\n\n\n\n

Hoping this helps somebody out there!<\/p>\n","protected":false},"excerpt":{"rendered":"

Microsoft’s Power BI and Azure Data Explorer (ADX) play really nicely together. Power BI has a 1st party connector which…<\/p>\n","protected":false},"author":1,"featured_media":4556,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[15,57,58],"acf":[],"aioseo_notices":[],"yoast_head":"\nUnderstanding the Power BI Desktop Azure Data Explorer error "We reached the end of the buffer" - Pete Codes<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding the Power BI Desktop Azure Data Explorer error "We reached the end of the buffer" - Pete Codes\" \/>\n<meta property=\"og:description\" content=\"Microsoft’s Power BI and Azure Data Explorer (ADX) play really nicely together. Power BI has a 1st party connector which…\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\" \/>\n<meta property=\"og:site_name\" content=\"Pete Codes\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-23T00:19:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-23T00:20:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"720\" \/>\n\t<meta property=\"og:image:height\" content=\"290\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"PeteCodes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"PeteCodes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\"},\"author\":{\"name\":\"PeteCodes\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7\"},\"headline\":\"Understanding the Power BI Desktop Azure Data Explorer error “We reached the end of the buffer”\",\"datePublished\":\"2022-12-23T00:19:56+00:00\",\"dateModified\":\"2022-12-23T00:20:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\"},\"wordCount\":381,\"publisher\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png\",\"keywords\":[\"Azure\",\"Azure Data Explorer\",\"Power Bi\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\",\"url\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\",\"name\":\"Understanding the Power BI Desktop Azure Data Explorer error \\\"We reached the end of the buffer\\\" - Pete Codes\",\"isPartOf\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png\",\"datePublished\":\"2022-12-23T00:19:56+00:00\",\"dateModified\":\"2022-12-23T00:20:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage\",\"url\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png\",\"contentUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png\",\"width\":720,\"height\":290},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.petecodes.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding the Power BI Desktop Azure Data Explorer error “We reached the end of the buffer”\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#website\",\"url\":\"https:\/\/www.petecodes.co.uk\/\",\"name\":\"Pete Codes\",\"description\":\"Pete Gallagher - Developer and Public Speaker\",\"publisher\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.petecodes.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#organization\",\"name\":\"Pete Codes\",\"url\":\"https:\/\/www.petecodes.co.uk\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png\",\"contentUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png\",\"width\":189,\"height\":100,\"caption\":\"Pete Codes\"},\"image\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7\",\"name\":\"PeteCodes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g\",\"caption\":\"PeteCodes\"},\"sameAs\":[\"https:\/\/wordpress-634681-2064240.cloudwaysapps.com\"],\"url\":\"https:\/\/www.petecodes.co.uk\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding the Power BI Desktop Azure Data Explorer error \"We reached the end of the buffer\" - Pete Codes","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/","og_locale":"en_US","og_type":"article","og_title":"Understanding the Power BI Desktop Azure Data Explorer error \"We reached the end of the buffer\" - Pete Codes","og_description":"Microsoft’s Power BI and Azure Data Explorer (ADX) play really nicely together. Power BI has a 1st party connector which…","og_url":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/","og_site_name":"Pete Codes","article_published_time":"2022-12-23T00:19:56+00:00","article_modified_time":"2022-12-23T00:20:04+00:00","og_image":[{"width":720,"height":290,"url":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png","type":"image\/png"}],"author":"PeteCodes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"PeteCodes","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#article","isPartOf":{"@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/"},"author":{"name":"PeteCodes","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7"},"headline":"Understanding the Power BI Desktop Azure Data Explorer error “We reached the end of the buffer”","datePublished":"2022-12-23T00:19:56+00:00","dateModified":"2022-12-23T00:20:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/"},"wordCount":381,"publisher":{"@id":"https:\/\/www.petecodes.co.uk\/#organization"},"image":{"@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage"},"thumbnailUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png","keywords":["Azure","Azure Data Explorer","Power Bi"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/","url":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/","name":"Understanding the Power BI Desktop Azure Data Explorer error \"We reached the end of the buffer\" - Pete Codes","isPartOf":{"@id":"https:\/\/www.petecodes.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage"},"image":{"@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage"},"thumbnailUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png","datePublished":"2022-12-23T00:19:56+00:00","dateModified":"2022-12-23T00:20:04+00:00","breadcrumb":{"@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#primaryimage","url":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png","contentUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2022\/12\/image.png","width":720,"height":290},{"@type":"BreadcrumbList","@id":"https:\/\/www.petecodes.co.uk\/understanding-the-power-bi-desktop-azure-data-explorer-error-we-reached-the-end-of-the-buffer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.petecodes.co.uk\/"},{"@type":"ListItem","position":2,"name":"Understanding the Power BI Desktop Azure Data Explorer error “We reached the end of the buffer”"}]},{"@type":"WebSite","@id":"https:\/\/www.petecodes.co.uk\/#website","url":"https:\/\/www.petecodes.co.uk\/","name":"Pete Codes","description":"Pete Gallagher - Developer and Public Speaker","publisher":{"@id":"https:\/\/www.petecodes.co.uk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.petecodes.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.petecodes.co.uk\/#organization","name":"Pete Codes","url":"https:\/\/www.petecodes.co.uk\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/","url":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png","contentUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png","width":189,"height":100,"caption":"Pete Codes"},"image":{"@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7","name":"PeteCodes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g","caption":"PeteCodes"},"sameAs":["https:\/\/wordpress-634681-2064240.cloudwaysapps.com"],"url":"https:\/\/www.petecodes.co.uk\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts\/4555"}],"collection":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/comments?post=4555"}],"version-history":[{"count":1,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts\/4555\/revisions"}],"predecessor-version":[{"id":4561,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts\/4555\/revisions\/4561"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/media\/4556"}],"wp:attachment":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/media?parent=4555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/categories?post=4555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/tags?post=4555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}