Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

DataSource.Error: Microsoft SQL: "Invalid column name, Invalid column name

Hi all, my PowerQuery that connects to my Dataverse has been working fine up until around 2 pm in PowerBI. I have not changed the query whatsoever. Any one know why this may be happening? I've tried importing the tables and adding in the PowerQuery transformations line by line. It seems to be able to load the table initially but immediately fails to apply a simple calculated column like this:

 

 

 

#"Added Internal Support Score" = Table.AddColumn(dbo_cr141_dicatalogueitem, "Internal Staff score", each if [cr141_availability_of_internal] = "Yes" then 12 else if [cr141_availability_of_internal] = "No" then 0 else 0),

 

 

This is the error message:

 

 

 

DataSource.Error: Microsoft SQL: "Invalid column name 'lrcdi_CMDBstatusreason'.\r\nInvalid column name 'lrcdi_CMDB_CIID'.\r\nCould not use view or function 'dbo.fn_Filteredcr141_diCatalogueItemTDSGlobal' because of binding errors."
RequestId: TDS;250ab9a9-b479-454c-b305-5eedb7dc0e08;89
Time: 2023-07-10T20:09:33.4752197Z
Details:
DataSourceKind=CommonDataService
DataSourcePath=lrc-diu-dev.crm3.dynamics.com
Message="Invalid column name 'lrcdi_CMDBstatusreason'.\r\nInvalid column name 'lrcdi_CMDB_CIID'.\r\nCould not use view or function 'dbo.fn_Filteredcr141_diCatalogueItemTDSGlobal' because of binding errors."
RequestId: TDS;250ab9a9-b479-454c-b305-5eedb7dc0e08;89
Time: 2023-07-10T20:09:33.4752197Z
ErrorCode=-2146232060
Number=40000
Class=16

 

 

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    The error message you are seeing indicates that there is an issue with the view or function 'dbo.fn_Filteredcr141_diCatalogueItemTDSGlobal'. This error message is related to a timeout issue. It is possible that the query is failing after hitting a timeout value of 10 minutes. You can try to modify the timeout limit to over 10 minutes to see if this resolves the issue. If this does not work, you can try to troubleshoot the issue by validating the results and checking if there are any duplicate or null values in the column that is causing the issue.

    excel - How to set a max run time / timeout for Power Query? - Stack Overflow

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

2 Replies

  • Hi All
    I have a similar problem, in my case, we add a new column in a table for a power apps (model driven), but the BI that gets the data from the Dataverse is showing a similar error 
     =====
    DataSource.Error: Microsoft SQL: "Invalid column name 'cr9ab_code_conduite_fournisseurs_continu'.\r\nInvalid column name 'cr9ab_code_conduite_fournisseurs_continuname'."
    RequestId: TDS;7f50da3d-50c6-4aff-96c8-29a102795bf2;2
    Time: 2023-07-11T15:27:32.1371290Z
    Details:
    DataSourceKind=CommonDataService

    ....
    ====

    any help would be appreciated

    Thanks !

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    The error message you are seeing indicates that there is an issue with the view or function 'dbo.fn_Filteredcr141_diCatalogueItemTDSGlobal'. This error message is related to a timeout issue. It is possible that the query is failing after hitting a timeout value of 10 minutes. You can try to modify the timeout limit to over 10 minutes to see if this resolves the issue. If this does not work, you can try to troubleshoot the issue by validating the results and checking if there are any duplicate or null values in the column that is causing the issue.

    excel - How to set a max run time / timeout for Power Query? - Stack Overflow

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.