Error loading model: The connection string is not valid. #1506
Replies: 2 comments 4 replies
-
|
I just realized that this site is for Tabular Editor 3. I've been using Tabular Editor 2. If this isn't the place to talk about that I apologize. |
Beta Was this translation helpful? Give feedback.
-
|
I suspect there's an issue with which arguments actually get passed to TabularEditor.exe. Specifically, since the $pbiPath contains spaces, if it's not quoted properly, it may be treated as two or more separate arguments, which would cause Tabular Editor to interpret it as a connection string + database name, which explains why Tabular Editor is attempting to connect to a server. Could you test if hardcoding everything like below (try to run it locally also), produces the .bim file as expected? "C:\agent\_work\1\s\TabularEditor\TabularEditor.exe" "C:\agent\_work\1\s\Semantic Models\Data Model - Sales\Data Model - Sales.SemanticModel\definition\" -VSTS -BUILD "C:\agent\_work\1\s\Data Model - Sales.bim" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to build a tabular model ".bim" file from a folder-based tabular model (.pbip) on Azure DevOps for several days now without success. The outputI continually get is this:
According to the documentation (https://docs.tabulareditor.com/te2/Command-line-Options.html) this error indicates that it's unable to connect with the server.
But I'm not trying to connect with the server. I'm just trying to build locally.
The core powershell script I've been trying to run in DevOps (which runs fine on my local machine) is this:
ado.ps1.txt
Here are the details for my pool:
The full script is attached. I've been able to validate that the script is opening and closing tabular editor, but that it is not building a .bim file.
I'm quite confused. Any help would be most appreciated!
Beta Was this translation helpful? Give feedback.
All reactions