pbi-tools: An unhandled exception occurred. System.Exception: Process has terminated
First of, we are ecstatic to see this released! Unfortunately I can’t get it to run. I hope it’s fine to post here.
I’m trying to start out by extracting from a .pbix fiel
.\pbi-tools.exe extract ".\test.pbix"
An unhandled exception occurred. System.Exception: Process has terminated
An unhandled exception occurred.
System.Exception: Process has terminated
at PbiTools.PowerBI.AnalysisServicesServer.Start() in X:\pbi-tools\pbi-tools-cli\src\PBI-Tools\PowerBI\AnalysisServicesServer.cs:line 145
at PbiTools.PowerBI.DataModelConverter.LaunchTabularServerAndExecuteCallback[T](Func`2 callback) in X:\pbi-tools\pbi-tools-cli\src\PBI-Tools\PowerBI\DataModelConverter.cs:line 82
at PbiTools.Model.PbixModel.FromReader(PbixReader reader, String targetFolder, Nullable`1 portNumber) in X:\pbi-tools\pbi-tools-cli\src\PBI-Tools\Model\PbixModel.cs:line 168
at PbiTools.Cli.CmdLineActions.Extract(String pbixPath, Int32 pbiPort, String extractFolder, ExtractActionCompatibilityMode mode, ModelSerializationMode modelSerialization, MashupSerializationMode mashupSerialization) in X:\pbi-tools\pbi-tools-cli\src\PBI-Tools\Cli\Extract.cs:line 63
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at PowerArgs.ArgAction.Invoke()
at PbiTools.Program.Main(String[] args) in X:\pbi-tools\pbi-tools-cli\src\PBI-Tools\Program.cs:line 82
PS C:\Users\JanMechtel\Downloads\pbi-tools.1.0.0-beta.8> .\pbi-tools.exe extract ".\test.pbix"
I’ve set the loglevel to verbose, but didn’t spot anything more useful.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 69 (25 by maintainers)
Commits related to this issue
- Debug build for #78 — committed to pbi-tools/pbi-tools by mthierba 2 years ago
- #78 Added msmdsrv cfg file from live PBI Desktop session (2.100) — committed to pbi-tools/pbi-tools by mthierba 2 years ago
- #78 Always set <Language/> to '0' to avoid conflicts with unknown values — committed to pbi-tools/pbi-tools by mthierba 2 years ago
- #78 output error when failing config is detected — committed to janmechtel/pbi-tools by janmechtel 2 years ago
Fix for this is now available in interim release: https://github.com/pbi-tools/pbi-tools/releases/tag/1.0.0-beta.9%2B220202
Thanks again @janmechtel for extensive help here!
Works like a charm 😃
@janmechtel Would you mind testing with a new build from the latest changes in https://github.com/pbi-tools/pbi-tools/tree/Issues/78-MT ? This one resets Language to
0
for everyone, which may well be sufficient.Thanks, I think I found a clue. I went through the msmdsrv.ini written by the tool and found this line:
<Language>8192</Language>
I was curious whether language would matter and lo-and-behold removing the line makes the process start and stay open.
Now I’m trying to figure out how this line is written into the .ini because it doesn’t seem to be in the Template
msmdsrv.ini.xml