2

When trying to import data from a database into Power BI (using the Invantive Bridge ADO.net provider) I get an error:

Expression.Error: Evaluation resulted in a stack overflow and cannot continue.

Power BI stack overflow Error

I like to know why I get this error. Is there a way to find out where the error is coming from?

1 Answer 1

2

This is a bug with Power BI not parsing the exceptions well.

You can find the actual error message by performing the following steps:

  1. From the Query Editor dialog or the main screen, go to File > Options and settings > Options.

    dialog 1

  2. Go to Diagnostics and check Enable tracing. Click on Open traces folder. Dismiss the dialog by click on OK.

    dialog 2

  3. Explorer opens with a path similar to C:\Users\Me\AppData\Local\Microsoft\Power BI Desktop\Traces. Go back to Power BI and click on Refresh in the ribbon.

  4. Power BI generates several log files in the folder previously opened. Open the file starting with Microsoft.Mashup.Container.NetFX40. This is the log file containing the actual error messages.

  5. Find the latest error message. Usually you can find that by searching for ValidationException from bottom to top.

    Sample:

    itgeneor028: Unknown table projjects ( Possible alternatives: (Projects, ProjectWBS)
       at Invantive.Data.ValidationException..ctor(String messageCode, String messageText, String kindRequest, String localStackTrace, String nk, Exception innerException)
    

    As you can see, this error was caused by a typo in the table name.

2
  • It seems that May 2017 releases or newer of Power BI raise a stack overflow exception a whole lot less often. Commented Jun 29, 2017 at 21:10
  • @Patrick Hofman cannot locate Microsoft.Mashup.Container.NetFX40 or ValidationException in 2021 Excel 365 Power Query. Can you or anyone help?
    – sifar
    Commented Dec 6, 2021 at 14:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .