Forum Discussion

precisionandskl's avatar
precisionandskl
Frequent Visitor
1 year ago
Solved

Data source error: Value was not specified..

Hi. My refresh for a report keeps failing and returning this error. It refreshes fine in the desktop and what's more there are other reports published in the Service that use the same data sources and they refresh fine? I've not come across the 'Value was not specified' message before...

 

Data source error: Value was not specified.. The exception was raised by the IDbCommand interface. Table: Students.
Cluster URI: WABI-UK-SOUTH-B-PRIMARY-redirect.analysis.windows.net
Activity ID: d002d49c-1b75-4c3f-8b8a-ed95ae767ab1
Request ID: a84b3618-7373-471f-9b62-fd2279306abd
Time: 2025-03-05 13:53:25Z

  • Ok, I've found the solution. Last month, I enabled the 'New Snowflake connector implementation' feature which is still in preview. The refresh obviously didn't like this! Anyway I've disabled it and all works fine now.

10 Replies

  • The most likely explanation I can think of given your notes you have multiple queries in that model from the same source that are set up differently.  Power BI accepts both (ServerName) and (ServerName:Database) as data source when setting up a data query from SQL Server.  Both setups work the same in power bi desktop i.e. no exceptions. However, the exception of IDbCommand interface will be thrown if there were more than one query and at least one of these queries used different setup to the rest of queries.

    • precisionandskl's avatar
      precisionandskl
      Frequent Visitor

      What do you mean when you say 'set up differently'? 

       

      For added context, I have 7 active queries from Snowflake. And 5 custom-made ones created with DAX/M (things like date tables, indexes, etc.). Also, after refreshing multiple times I get the same error but the table name changes. Originally it was the students table, but now it's something else. I feel like even if I had one query it would still error out. 

      • andrewsommer's avatar
        andrewsommer
        Super User

        What I meant about the queries being set up differently is that in a sql query you could have a source that is ‘server_name.database’ or you could just use ‘database’. However, within one flow or model if you go to the same source and on one query you use server_name.database and on another you use just database it may error out.

         

        With that said I don’t think that is your problem once you mentioned you have custom-made tables.  Do any of your custom-made tables reference your snowflake queries? 

  • Ok, I've found the solution. Last month, I enabled the 'New Snowflake connector implementation' feature which is still in preview. The refresh obviously didn't like this! Anyway I've disabled it and all works fine now.

    • SUMESHKUMAR22's avatar
      SUMESHKUMAR22
      Helper IV

      Hey precisionandskl , glad that I found your response. Could you please help me with were I can enable the "new snowflake connection implementation' feature??

      Showing me below error when I removed the implementation 2.0 part from PQ :
      DataSource.Error: ODBC: ERROR [HY000] [Microsoft][Snowflake] (4)
      REST request for URL *** failed: CURLerror (curl_easy_perform() failed) - code=60 msg='SSL peer certificate or SSH remote key was not OK'.

      Details:
      DataSourceKind=Snowflake
      DataSourcePath=uza80192.east-us-2.azure.snowflakecomputing.com;COMPUTE_WH
      OdbcErrors=[Table]

      Please help!

      Thanks in advance!

      • precisionandskl's avatar
        precisionandskl
        Frequent Visitor

        Hi - so I resolved the issue by removing the 'implementation 2.0' part in PQ like you've done. Then disabling the feature in Options > preview features. The error you get seems to be related to your company's firewall/proxy settings blocking the connection. If you refesh at home it should work ok.