Forum Discussion

maracles's avatar
maracles
Resolver II
10 years ago
Solved

Power BI.com manual refresh breaking visuals

Over the last week a number of visuals on PowerBI.com have stopped working whenever a scheudled refresh or 'refresh now' is invoked.  To be clear immediately after publishing my PBX file they work...
  • maracles's avatar
    maracles
    10 years ago

    Ok, so after more than 3 hours on the phone with a very helpful Microsoft support member yesterday we managed to narrow this down.

    The issue was being caused by data coming from one (or multiple) columns being imported from our MySQL database. The columns in MySQL are stored as datetime and originally I imported them directly and then set the column type in BI to date/time. This was working for a number of months until it stopped working as described above.

    The solution here was to, in the SQL query, use CONVERT([column_name], CHAR) to convert the datetime value into a text string, import into PowerBI and THEN convert to date/time in Power BI.

    The technician couldn't explain why this fixed things as he should direct import from datetime columns should work fine. They are trying to get me more info and I will update if they do. 

    Just posting in case useful for other people.