Skip to content

MFA UI not displayed when running CLI with C# script path #213

@apanasara

Description

@apanasara

Description

When running Tabular Editor 3 from the CLI with a C# script path parameter, the MFA (Multi-Factor Authentication) UI is not displayed, preventing authentication to Power BI Service.

Environment

  • Tabular Editor Version: 3
  • Connection Type: Power BI Service
  • Authentication: MFA enabled
  • OS: Windows

Working Command (without script)

"C:\Program Files\Tabular Editor 3\TabularEditor3.exe" "powerbi://api.powerbi.com/v1.0/myorg/WorkspaceName" "DatasetName"

✅ MFA UI is displayed correctly

Non-working Command (with script)

"C:\Program Files\Tabular Editor 3\TabularEditor3.exe" "powerbi://api.powerbi.com/v1.0/myorg/WorkspaceName" "DatasetName" -S "C:\Users\MyScript.csx"

❌ MFA UI is not displayed

Expected Behavior

The MFA authentication UI should be displayed regardless of whether a C# script path is specified in the CLI parameters.

Steps to Reproduce

  1. Enable MFA on your Power BI account
  2. Run the first CLI command (without -S parameter) - authentication works as expected
  3. Run the second CLI command (with -S parameter) - MFA UI does not appear

Actual Behavior

When the -S script parameter is included, the application appears to hang or fails silently without prompting for MFA credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions