Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Underlying error message: We cannot convert the value "[Binary]" to type Binary

 

Hi, everyone,

 

I have a two data sources one by a gateway and a several Excel files (with the same structure) from SharePoint. All the excel files are coming in i Power BI as one tabel. The repport wich was made in power bi desktop runs well and i can refresh the datasource without an error.

 

The repport is published on power bi service and I receive the following refresh error:

Can someone suggest a solution? Someone how had the same problem?

 

  • AnonymousI created the the table in Excel (Power Query) and saved it in SharePoint.

  • Anonymous's avatar
    Anonymous
    5 years ago

    For anyone who is still having this issue, I found the reason for the error to be the "Privacy level" setting in Power BI service. You need to make sure that all your connections where you are appending or merging data have the same privacy level. 

     

    This also explain why it would work in Power BI Desktop and not in Power BI Service as they can have different settings.

     

    Every time I have this error, I check the privacy level of all the credentails and I find that in one of the setting have either changed or not set to begin with

     

    Hope this helps others
    Nishant

32 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    For anyone who is still having this issue, I found the reason for the error to be the "Privacy level" setting in Power BI service. You need to make sure that all your connections where you are appending or merging data have the same privacy level. 

     

    This also explain why it would work in Power BI Desktop and not in Power BI Service as they can have different settings.

     

    Every time I have this error, I check the privacy level of all the credentails and I find that in one of the setting have either changed or not set to begin with

     

    Hope this helps others
    Nishant

    • shung's avatar
      shung
      Frequent Visitor

      Thank you. I solved my issue by applying this method!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks - fail to comprehend why PBI changes authentication specially in the service. Most confusing as we have 20+ Sharepoint files and folders all using the same authentication and the failure occured with different files/folders.

      • Anonymous's avatar
        Anonymous
        Not applicable

        I believe this is because the credentails expire after certain time (my guess is 3 months). In your case, the credentials to the connection of your files might have been created at different point, suggesting the failure in connection of these at different times. Not sure how true this is though, it's just a guess

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks, you really saved my day and lots of hours debugging 🙂

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi,

    We have the same problem with refresh error on Power BI service, but working well on desktop:

    Error message : "We cannot convert the value "[Binary]" to type Binary"

    Bests regards,

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous,

     

    >>I have a two data sources one by a gateway and a several Excel files (with the same structure) from SharePoint.

    Since I' m not so sure for your issue, can you share more detailed information about this?


    For instance:

    Which file you host on gateway?
    which type of sharepoint you used?(on premise or online)

     

    In addition, did you use custom function to merge these excel files? According to the error message, it seems like the issue is related to power query formulas.

     

    Regards,

    Xiaoxin Sheng

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you Xiaoxin Sheng that you make a lite time for my question.

       

      I have a gateway connection for a Sql database and a SharePoint online connection.

       

      I think also that the problem is from the SharePoint connection. I have used a SharePoint Folder connectivity.

      In the source query I received a table with all the documents that inside the SharePoint page. In this table i have a "content" column with "binary" text in each row. This table a have filtered to have all the Excel files needed for the project and that I have oppened the merged content and in this way a have created a big table with all the information for every Excel files.

       

      I don't  understand why the refresh is possible with power bi desktop and i have trouble with the published report in power bi service.

       

      Best regards,

      Barni

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous,

         

        I test to get data from sharepoint online and follow your steps to publish to service, it works on my side.


        Have you test on the last version of power bi ?
        If you create a new report which original datasource, can you reproduce it?

         

        In addition, I think the issue may related to custom function which used to convert your data in power query.(current custom function only available on desktop)

         

        Regards,

        Xiaoxin Sheng

  • Coline's avatar
    Coline
    Frequent Visitor

    Hello,

     

    I have exactly the same issue.

    I didn't find the way to get through this issue.

     

    I have 2 type of Data source : Excel File on 365 and Sharepoint Folder.

    I have 2 Sources "Sharepoint Folder" to have 2 different tables and I Combine these 2 tables at the end.

    • sukajalan2's avatar
      sukajalan2
      Frequent Visitor

      My solution was to create a Power Query report combining the files, upload to Power BI Service, schedule the refresh, and use it as the data source for Power BI report.

      • Coline's avatar
        Coline
        Frequent Visitor

        Hello!

         

        Thanks for your answer.

        When you speak about Power Query report, it's on Excel?

  • Anonymous's avatar
    Anonymous
    Not applicable

    I have the exact same problem too!

    I load excel files from 2 different SharePoint folders. I then do reference this to a new query, which is not a solution to me apparently... I combined the binaries using the Excel.Workbook() formula to get the Excel files' contents. It works great in PBI Desktop but not by schedule refresh in the service. Annoying!!

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you! You are amazing! I had the same issue in Power BI online only; it worked in Power BI desktop. I even tried to use the exact same queries in a dataflow online and received the same errors. So simple! Microsoft should really consider making this error more apparent in the error text.

     

    I'm adding the different errors I received to this post so this post will hopefully come to the top when those errors are searched in Bing/Google.

    • Expression.Error: We cannot convert the value "[Binary]" to type Binary
    • Expression.Error: We cannot convert the value "[Record]" to type List