cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aanwar0
Frequent Visitor

Error while refreshing a PBI report

Hello, 

 

I am getting this error while refreshing a report: The following system error occurred: Type mismatch. Unable to convert a value to the data type requested for table '<pii>Open Invoices</pii>' column '<pii>FY</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_I8'. Please check the column data types in the data model and data source and ensure that the data types are compatible.

 

I am able to refresh it in the Desktop but not Service. 

 

I tried changing the data type to whole number but the issue continued. Please assist. 

1 ACCEPTED SOLUTION
collinq
Super User
Super User

Hi @Aanwar0 ,

 

I have had this problem in the past as well.  My suggestion is that you change the data type to text.  Then, confirm that there are no nulls, no weird characters or other unexpected data in it.  Then, if it must be a number data type, add ANOTHER STEP - not replace the first one - and convert it to number. 

It sometimes takes a bit a to find the problem.  In the past, I have had to group the trouble field and look for an anomoly.  The worst one for a number was when I had a blank in a number field - which worked fine in desktop but the service choked on it....because it didn't know what to do with a blank in the number field.




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

1 REPLY 1
collinq
Super User
Super User

Hi @Aanwar0 ,

 

I have had this problem in the past as well.  My suggestion is that you change the data type to text.  Then, confirm that there are no nulls, no weird characters or other unexpected data in it.  Then, if it must be a number data type, add ANOTHER STEP - not replace the first one - and convert it to number. 

It sometimes takes a bit a to find the problem.  In the past, I have had to group the trouble field and look for an anomoly.  The worst one for a number was when I had a blank in a number field - which worked fine in desktop but the service choked on it....because it didn't know what to do with a blank in the number field.




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

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Power BI Dev Camp Session 32

Ted's Dev Camp - March 30, 2023

In this session, we'll examine important design issues and decisions that arise when developing with Power BI embedding.

Top Solution Authors