Pbix: Cannot read property ‘length’ of undefined

You are opening your .pbix file and an “Unexpected Error” is poping-up, your report is blank. You copy the error message in the clipboard to have a look and you have found out the message Cannot read property ‘length’ of undefined. Is all your work gone and do you have to do everything again? No you don’t, let me show you how to recover your application.