Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
webportal
Impactful Individual
Impactful Individual

The data provider was unable to convert the value from the source data type 'VT_BSTR' the expected

I can't refresh this dataset in Power BI service, although it refreshes without issues in Power BI Desktop.

 

The error:

Processing errorThe following system error occurred: Type mismatch. Unable to convert a value to the data type requested for table '<pii>tableA</pii>' column '<pii>Duration</pii>'. The data provider was unable to convert the value '<pii></pii>' from the source data type 'VT_BSTR' to the expected data type 'VT_CY'. Please check the column data types in the data model and data source and ensure that the data types are compatible. The current operation was cancelled because another operation in the transaction failed. The command has been canceled.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action. The command has been canceled.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action. The command has been canceled.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action. Table: xxx

 

Column "Duration" is of Duration type. No errors are produced on Power BI Desktop upon full refresh.

1 ACCEPTED SOLUTION
webportal
Impactful Individual
Impactful Individual

The solution I found was to delete the Duration column and calculate it again using DAX.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

The error message indicates a potential issue related to a value '<pii></pii>' within the source data type 'VT_BSTR' in your system. Upon closer inspection, it appears that the problem might be linked to the "Duration" column, suggesting the presence of a null or empty value. To resolve this, it is recommended to thoroughly examine the dataset, specifically the "Duration" column, and address any instances of null or empty values appropriately. Utilizing an enrichment tool can also prove beneficial in identifying and rectifying data discrepancies, thereby enhancing the overall data quality and resolving the reported error effectively.

webportal
Impactful Individual
Impactful Individual

The solution I found was to delete the Duration column and calculate it again using DAX.

Hi @webportal ,


Thanks for sharing the solution. Please mark your own method as a solution to help more people find it quickly.

 

Best Regards,
Community Support Team_Gao

v-cgao-msft
Community Support
Community Support

Hi @webportal ,

 

Please try.

1. In Power BI Service -> workspace -> Dataset + dataflows -> Select the dataflow and edit the table -> find the step named "Changed type" related to [Duration] -> delete this step -> Save & close -> Refresh now.

vcgaomsft_0-1647314732487.png

 

2. Or in Power BI Desktop -> File -> Options and settings -> Options ->CURRENT FILE ->Data Load, don't tick the option "Detect column types and headers for unstructured sources", save and republish to workspace.

vcgaomsft_0-1647314029321.png

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

webportal
Impactful Individual
Impactful Individual

Hi @GilbertQ 

 

There's no DataGateway. The data source is a Dataflow connected to an Azure Blob Storage.

GilbertQ
Super User
Super User

Hi @webportal 

 

Can you confirm that both PBI Desktop and the Gateway are on the latest version?

 

It could be that the mashup engine is a different version between PBI Desktop and the gateway?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.