{"id":554,"date":"2022-04-23T18:58:41","date_gmt":"2022-04-23T17:58:41","guid":{"rendered":"https:\/\/www.csopro.de\/biblog\/?p=554"},"modified":"2022-04-23T18:58:41","modified_gmt":"2022-04-23T17:58:41","slug":"deployment-eines-cubes-als-power-bi-premium-dataset","status":"publish","type":"post","link":"https:\/\/www.csopro.de\/biblog\/2022\/04\/deployment-eines-cubes-als-power-bi-premium-dataset\/","title":{"rendered":"Deployment eines Cubes als Power BI Premium Dataset"},"content":{"rendered":"\n<p>Seit \u00fcber einem Jahr gibt es nun die M\u00f6glichkeit, Cubes, die man &#8211; wie bisher auch &#8211; in Visual Studio erstellt, nun direkt nach Power BI in einen Arbeitsbereich zu deployen.<\/p>\n\n\n\n<p>Dies hat einige Vorteile:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Man muss keine eigenen Analysis Services Dienste mehr vorhalten (weder on prem noch Azure Analysis Services)<\/li><li>Das spart ggf. Lizenzen, Server-Kapazit\u00e4ten und verringert die Komplexit\u00e4t einer L\u00f6sung<\/li><li>Man kann dennoch auf die Datasets von au\u00dferhalb zugreifen (z.B. Excel Pivot, Reporting Services &#8211; generell mit jedem Tool, das Zugriffe auf Cubes unterst\u00fctzt)<\/li><\/ul>\n\n\n\n<p>Als wir zum ersten Mal ein solches Cube-Deployment allerdings durchgef\u00fchrt haben, ging das nicht, ohne \u00fcber die ein oder andere Klippe zu stolpern. Deshalb beschreibe ich hier, wie man vorgehen muss.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Voraussetzungen<\/h2>\n\n\n\n<p>Ausgangssituation: Ich gehe davon aus, dass wir im Visual Studio einen Cube erstellt haben.<\/p>\n\n\n\n<p>Wichtig ist, dass wir den Kompatibilit\u00e4tsmodus auf 1500 gesetzt haben:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"759\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-7.png\" alt=\"\" class=\"wp-image-568\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-7.png 788w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-7-300x289.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-7-768x740.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/a><figcaption>Kompatibilit\u00e4tsmodus auf 1500 gesetzt<\/figcaption><\/figure>\n\n\n\n<p>(Man beachte, dass diese Einstellung nur bearbeitet werden kann, wenn das Model.bim im Visual Studio ge\u00f6ffnet ist)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Build und Deployment <\/h2>\n\n\n\n<p>\u00dcber einen Build erzeugen wie dann ein asdatabase-File:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik.png\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"318\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik.png\" alt=\"\" class=\"wp-image-555\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik.png 709w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-300x135.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/a><figcaption>Build eines Cube-Projekts innerhalb Visual Studio<\/figcaption><\/figure>\n\n\n\n<p>Das erzeugt im <em>bin<\/em>-Folder folgende Dateien (das ist noch alles unabh\u00e4ngig von unserem Deployment nach Power BI Premium):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"659\" height=\"217\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-1.png\" alt=\"\" class=\"wp-image-556\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-1.png 659w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-1-300x99.png 300w\" sizes=\"auto, (max-width: 659px) 100vw, 659px\" \/><\/a><figcaption>Ordner mit den daraus resultierenden Dateien<\/figcaption><\/figure>\n\n\n\n<p>In der Regel machen wir es nun so, dass wir in unser Quell-Code-Verwaltungssystem das &#8222;Model.asdatabase&#8220; einchecken und von einem Branch in den n\u00e4chsten (-> Test -> Prod) bewegen &#8211; die anderen Dateien werden f\u00fcr den Deployment Wizard nicht ben\u00f6tigt. Hier werden wir gleich einen Fallstrick sehen &#8211; aber dazu gleich mehr.<\/p>\n\n\n\n<p>Nun wollen wir das so erzeugte Model.asdatabase-File in einen Power BI Premium-Arbeitsbereich deployen. Dazu ben\u00f6tigen wir als erstes die Adresse, auf die wir es deployen k\u00f6nnen. Diese finden wir im Arbeitsbereich.<\/p>\n\n\n\n<p>Es ist zu beachten, dass das ein Premium-Feature ist. Der Arbeitsbereich muss deshalb entweder einer Power-BI-Premium-Kapazit\u00e4t zugeordnet sein (erkennbar am Symbol <img loading=\"lazy\" decoding=\"async\" width=\"35\" height=\"31\" class=\"wp-image-560\" style=\"width: 35px;\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/Power-BI-Premium-Kapazitaet.png\" alt=\"\"> ) oder unter einer Power BI Premium Einzelbenutzerlizenz laufen (erkennbar am Symbol <img loading=\"lazy\" decoding=\"async\" width=\"34\" height=\"29\" class=\"wp-image-561\" style=\"width: 34px;\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/Power-BI-Premium-Einzelbenutzerlizenz.png\" alt=\"\">). Unter Einstellungen findet man dann im Reiter Premium die Adresse f\u00fcr die Verbindung:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"blob:https:\/\/www.csopro.de\/303b2454-89bc-4f2a-9d1c-da98d6e4e740\" alt=\"\"\/><figcaption>Einstellungen des Power BI Premium Arbeitsbereichs<\/figcaption><\/figure>\n\n\n\n<p>Mit der Arbeitsbereichverbindung kann man sich dann auch im SQL Server Management Studio auf den XMLA-Endpoint verbinden. Das werden wir sp\u00e4ter noch brauchen.<\/p>\n\n\n\n<p>Nun k\u00f6nnen wir versuchen, den Cube zu deployen. Dazu starten wir den Analysis Services Deployment Wizard und w\u00e4hlen die Model.asdatabase-Datei aus. Als Server tragen wir die powerbi:\/\/-Adresse von oben ein:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"735\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-4.png\" alt=\"\" class=\"wp-image-564\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-4.png 940w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-4-300x235.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-4-768x601.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/a><figcaption>Eingabe des Servers und Datasetnamen im Analysis Services Deployment Wizard<\/figcaption><\/figure>\n\n\n\n<p>Die Eintragungen auf den n\u00e4chsten Seiten sind nicht relevant, zumal wir ja den Cube zum ersten Mal deployen. In der Regel deploye ich sonst Rollen nicht und \u00fcbernehme die bisher geltenden Einstellungen. Auf das Default Procesisng verzichten wir jetzt (wir machen das nachher vom SQL Server Management Studio aus).<\/p>\n\n\n\n<p>Witzigerweise erhalten wir die Fehlermeldung &#8222;Die Datenbank &#8222;BlogDemoCube&#8220; ist nicht vorhanden, oder Sie besitzen keine Zugriffsberechtigung.&#8220; Das ist richtig &#8211; aber wir wollen den Cube ja auch erstmalig deployen. Hier der Screen Shot:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"946\" height=\"737\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-5.png\" alt=\"\" class=\"wp-image-565\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-5.png 946w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-5-300x234.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-5-768x598.png 768w\" sizes=\"auto, (max-width: 946px) 100vw, 946px\" \/><\/a><figcaption>Erste Fehlermeldung beim Deployment<\/figcaption><\/figure>\n\n\n\n<p>Die L\u00f6sung f\u00fcr dieses Problem ist, die Datei &#8222;Model.deploymentoptions&#8220;, die wir vorher gesehen haben, auch in das Verzeichnis zu legen, von wo aus wir die Datei &#8222;Model.asdatabase&#8220; deployen.<br>Wenn wir das aus dem <em>bin<\/em>-Verzeichnis direkt machen, w\u00e4re uns das ganze also gar nicht passiert, da Visual Studio diese Datei dort ja ablegt. Wie gesagt, verwenden wir aber unterschiedliche Branches f\u00fcr unsere Umgebungen und haben dort nur das Model.asdatabase eingecheckt und bisher (onprem Analysis Services oder Azure Analysis Services) konnten wir auch nur mit dem Model.asdatabase deployen.<br>Die Datei &#8222;Model.deploymentoptions&#8220; enth\u00e4lt dar\u00fcber hinaus auch keine Informationen, die nicht im Wizard abgefragt werden. Das macht das ganze umso komischer.<\/p>\n\n\n\n<p>Die &#8222;Model.deploymentoptions&#8220;-Datei sieht so aus (es ist also tats\u00e4chlich keine wertvolle Information, sondern kann einfach so \u00fcbernommen werden):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"xml\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;DeploymentOptions xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" \n                    xmlns:ddl2=\"http:\/\/schemas.microsoft.com\/analysisservices\/2003\/engine\/2\" xmlns:ddl2_2=\"http:\/\/schemas.microsoft.com\/analysisservices\/2003\/engine\/2\/2\" \n                    xmlns:ddl100_100=\"http:\/\/schemas.microsoft.com\/analysisservices\/2008\/engine\/100\/100\" xmlns:ddl200=\"http:\/\/schemas.microsoft.com\/analysisservices\/2010\/engine\/200\" \n                    xmlns:ddl200_200=\"http:\/\/schemas.microsoft.com\/analysisservices\/2010\/engine\/200\/200\">\n                    &lt;TransactionalDeployment>false&lt;\/TransactionalDeployment>\n                    &lt;PartitionDeployment>DeployPartitions&lt;\/PartitionDeployment>\n                    &lt;RoleDeployment>DeployRolesRetainMembers&lt;\/RoleDeployment>\n                    &lt;ProcessingOption>Default&lt;\/ProcessingOption>\n                    &lt;ADALCache>None&lt;\/ADALCache>\n                    &lt;OutputScript>&lt;\/OutputScript>\n                    &lt;ImpactAnalysisFile>&lt;\/ImpactAnalysisFile>\n                    &lt;ConfigurationSettingsDeployment>Deploy&lt;\/ConfigurationSettingsDeployment>\n                    &lt;OptimizationSettingsDeployment>Deploy&lt;\/OptimizationSettingsDeployment>\n                    &lt;WriteBackTableCreation>UseExisting&lt;\/WriteBackTableCreation>\n                &lt;\/DeploymentOptions><\/pre>\n\n\n\n<p>Durchl\u00e4uft man nun nochmal den Deployment-Prozess, \u00e4ndert sich die Fehlermeldung zu &#8222;Der Vorgang wird nur f\u00fcr ein Modell unterst\u00fctzt, dessen Eigenschaft &#8222;DefaultPowerBIDataSourceVersion&#8220; in Power\u00a0BI Premium auf &#8222;PowerBI_V3&#8243; festgelegt ist.&#8220;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"741\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-6.png\" alt=\"\" class=\"wp-image-566\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-6.png 944w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-6-300x235.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-6-768x603.png 768w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/a><figcaption>fehlende Eigenschaft &#8222;DefaultPowerBIDataSourceVersion&#8220;<\/figcaption><\/figure>\n\n\n\n<p>Diese Fehlermeldung ist immerhin aussagekr\u00e4ftig. Wir l\u00f6sen das Problem, indem wir die datei Model.asdatabase in einem Editor (sagen wir Notepad++) bearbeiten. Wir f\u00fcgen nach &#8222;culture&#8220; die geforderte Eigenschaft ein: <strong>&#8222;defaultPowerBIDataSourceVersion&#8220;: &#8222;powerBI_V3&#8220;,<\/strong><\/p>\n\n\n\n<p>Vor der Bearbeitung sieht es so aus:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"name\": \"xxxxxxx\",\n  \"compatibilityLevel\": 1500,\n  \"model\": {\n    \"culture\": \"de-DE\",\n    \"discourageImplicitMeasures\": true,\n    \"dataSources\": [<\/pre>\n\n\n\n<p>Und nach der Bearbeitung so:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"json\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"name\": \"xxxxxxx\",\n  \"compatibilityLevel\": 1500,\n  \"model\": {\n    \"culture\": \"de-DE\",\n    \"defaultPowerBIDataSourceVersion\": \"powerBI_V3\",\n    \"discourageImplicitMeasures\": true,\n    \"dataSources\": [<\/pre>\n\n\n\n<p>Nun funktioniert das Deployment \ud83d\ude42<\/p>\n\n\n\n<p>Der Cube ist im Arbeitsbereich sichtbar:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"280\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-8-1024x280.png\" alt=\"\" class=\"wp-image-569\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-8-1024x280.png 1024w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-8-300x82.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-8-768x210.png 768w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-8.png 1435w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Cube als Power BI Premium Dataset &#8211; sichtbar im Arbeitsbereich<\/figcaption><\/figure>\n\n\n\n<p>Au\u00dferdem sieht man ihn im SQL Server Management Studio:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"156\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-9.png\" alt=\"\" class=\"wp-image-570\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-9.png 831w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-9-300x56.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-9-768x144.png 768w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><\/a><figcaption>sichtbar im SQL Server Management Studio<\/figcaption><\/figure>\n\n\n\n<p>Allerdings sind wir noch nicht fertig, da wir den Cube noch verarbeiten m\u00fcssen.<\/p>\n\n\n\n<p>Davor m\u00f6chte ich aber noch ein paar Hinweise geben:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Beide &#8222;Hacks&#8220; (Model.deploymentoptions und defaultPowerBIDataSourceVersion) sind nur f\u00fcr das erste Deployment relevant. Deployt man eine neue Version des Cubes \u00fcber ein bestehendes Power BI Premium Dataset, sind beide Ver\u00e4nderungen nicht mehr notwendig.<\/li><li>Man k\u00f6nnte defaultPowerBIDataSourceVersion auch im Model.bim eintragen. Allerdings ist das nicht ratsam, da dann das Model.bim nicht mehr in einem Arbeitsbereichserver ge\u00f6ffnet werden kann und man somit nicht mehr im Visual Studio daran weiterarbeiten kann.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Cube verarbeiten<\/h2>\n\n\n\n<p>Machen wir also weiter: Wie nach jedem Deployment (auch nach Azure Analysis Services) muss man die Credentials neu eintragen, die f\u00fcr die Verbindung auf die zugrundeliegende Datenbank benutzt werden:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"637\" height=\"417\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-11.png\" alt=\"\" class=\"wp-image-573\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-11.png 637w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-11-300x196.png 300w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><figcaption>Credentials eintragen<\/figcaption><\/figure>\n\n\n\n<p>(In unserem Fall verwenden wir SQL Server Authentifizierung auf einen SQL Server in Azure)<\/p>\n\n\n\n<p>Nun k\u00f6nnten wir &#8211; wenn es ein Azure Analysis Services-Cube w\u00e4re, die Cubeverarbeitung erfolgreich durchf\u00fchren. Wenn wir aber nun die Verarbeitung starten, kommt eine Fehlermeldung:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"242\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-13.png\" alt=\"\" class=\"wp-image-577\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-13.png 768w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-13-300x95.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><figcaption>Start der Cubeverarbeitung<\/figcaption><\/figure>\n\n\n\n<p>Die Fehlermeldung lautet: &#8222;Failed to save modifications to the server. Error returned: &#8218;{&#8222;error&#8220;:{&#8222;code&#8220;:&#8220;<strong>DMTS_DatasourceHasNoCredentialError<\/strong>&#8222;,&#8220;pbi.error&#8220;:{&#8222;code&#8220;:&#8220;DMTS_DatasourceHasNoCredentialError&#8220;,&#8220;details&#8220;:[{&#8222;code&#8220;:&#8220;Server&#8220;,&#8220;detail&#8220;:{&#8222;type&#8220;:1,&#8220;value&#8220;:&#8220;\/\/servername\/\/&#8220;}},{&#8222;code&#8220;:&#8220;Database&#8220;,&#8220;detail&#8220;:{&#8222;type&#8220;:1,&#8220;value&#8220;:&#8220;\/\/datenbankname\/\/&#8220;}},{&#8222;code&#8220;:&#8220;ConnectionType&#8220;,&#8220;detail&#8220;:{&#8222;type&#8220;:0,&#8220;value&#8220;:&#8220;Sql&#8220;}}],&#8220;exceptionCulprit&#8220;:1}}}&#8220;. Das ist \u00fcberraschend, da wir ja die Credentials gesetzt haben. Wir m\u00fcssen aber noch in der Power BI App im Arbeitsbereich Einstellungen des Datsets machen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"827\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-19-1024x827.png\" alt=\"\" class=\"wp-image-584\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-19-1024x827.png 1024w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-19-300x242.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-19-768x621.png 768w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-19.png 1136w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Einstellungen des Datasets aufrufen<\/figcaption><\/figure>\n\n\n\n<p>Hier sehen wir schon unter &#8222;Datenquellen-Anmeldeinformationen&#8220; den Fehler: &#8222;Ihre Datenquelle kann nicht aktualisiert werden, da die Anmeldeinformationen ung\u00fcltig sind. Aktualisieren Sie Ihre Anmeldeinformationen, und versuchen Sie es erneut.&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"754\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-15-1024x754.png\" alt=\"\" class=\"wp-image-579\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-15-1024x754.png 1024w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-15-300x221.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-15-768x566.png 768w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-15.png 1170w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Fehler unter Datenquellen-Anmeldeinformationen<\/figcaption><\/figure>\n\n\n\n<p>Die L\u00f6sung ist nun nahe liegend: Unter &#8222;Anmeldeinformationen bearbeiten&#8220; muss man die gleichen Credentials nochmal eintragen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-16.png\"><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"822\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-16.png\" alt=\"\" class=\"wp-image-580\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-16.png 621w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-16-227x300.png 227w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><\/a><figcaption>Credentials nochmal eintragen<\/figcaption><\/figure>\n\n\n\n<p>Mit diesen Einstellungen funktioniert jetzt die Cubeverarbeitung:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"342\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-17.png\" alt=\"\" class=\"wp-image-581\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-17.png 740w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-17-300x139.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/a><figcaption>erfolgreiche Cubeverarbeitung<\/figcaption><\/figure>\n\n\n\n<p>Damit haben wir die Aufgabe <strong>komplett erledigt.<\/strong><\/p>\n\n\n\n<p>Eine Anmerkung gibt es allerdings noch: Ich habe den Fall mit einer Datenquelle in Azure durchgespielt. Wenn die Datenquelle on premise liegt, \u00e4ndert sich die letzte Aktion (Einstellungen des Datasets) leicht: In diesem Fall m\u00fcssen dort die Gatewayeinstellungen korrekt gesetzt werden:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-18.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1011\" src=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-18-1024x1011.png\" alt=\"\" class=\"wp-image-582\" srcset=\"https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-18-1024x1011.png 1024w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-18-300x296.png 300w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-18-768x758.png 768w, https:\/\/www.csopro.de\/biblog\/wp-content\/uploads\/2022\/04\/grafik-18.png 1192w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Einstellungen der Gatewayverbindung eines Datasets<\/figcaption><\/figure>\n\n\n\n<p>Damit man diese Einstellung machen kann, muss der eigene User als Mitglied auf dem gateway eingetragen sein (\u00fcber Power BI > Einstellungen > Gateways verwalten).<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Seit \u00fcber einem Jahr gibt es nun die M\u00f6glichkeit, Cubes, die man &#8211; wie bisher auch &#8211; in Visual Studio erstellt, nun direkt nach Power BI in einen Arbeitsbereich zu deployen. Dies hat einige Vorteile: Man muss keine eigenen Analysis Services Dienste mehr vorhalten (weder on prem noch Azure Analysis Services) Das spart ggf. Lizenzen, &hellip; <a href=\"https:\/\/www.csopro.de\/biblog\/2022\/04\/deployment-eines-cubes-als-power-bi-premium-dataset\/\" class=\"more-link\"><span class=\"screen-reader-text\">Deployment eines Cubes als Power BI Premium Dataset<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,9,84,88],"tags":[89,85,86],"class_list":["post-554","post","type-post","status-publish","format-standard","hentry","category-azure-anaysis-services","category-analysisservices","category-power-bi","category-visual-studio","tag-deployment","tag-power-bi-premium","tag-power-bi-premium-dataset"],"_links":{"self":[{"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/posts\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":9,"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"predecessor-version":[{"id":630,"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/posts\/554\/revisions\/630"}],"wp:attachment":[{"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.csopro.de\/biblog\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}