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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Lemuel
New Member

Type mismatch

Olá, pessoal.


Preciso de ajuda com um erro de atualização no Power BI Service.

No Power BI Desktop o relatório atualiza normalmente.

Mas no Power BI Online, ao atualizar o dataset, recebo o seguinte erro:

 

Erro de fonte de dados: Ocorreu o seguinte erro do sistema: Incompatibilidade de tipo. Tabela: Consulta1.
URI do cluster: WABI-BRAZIL-SOUTH-B-PRIMARY-redirect.analysis.windows.net
ID da atividade: fc22cfa1-436e-476d-a9cb-4f601694b733
ID do pedido: 75b85a7c-25f6-58fe-c9dc-cdba3aecfe42
Hora: 2025-08-27 18:44:04Z


Detalhes adicionais:


Fonte de dados: SQL Server.

No Power Query, todas as colunas já estão configuradas com tipos de dados (texto, número, data).

O erro só acontece no Service, nunca no Desktop.

Gateway: configurado e conectado corretamente.

 

Pergunta:


Alguém já passou por esse erro de Type mismatch usando SQL Server como fonte?
Existe alguma prática recomendada para alinhar os tipos de dados entre SQL e Power BI (ex.: tratar colunas como texto, conversão com , etc.)?


Toda sugestão será bem-vinda.

 

Obrigado!

 

 

2 ACCEPTED SOLUTIONS
ibarrau
Super User
Super User

Olá. Só para garantir que não haja erros nas transformações, vamos fazer uma verificação rápida. Abra o Power BI Desktop. Acesse queryeditor/transformdata. Abra as tabelas uma a uma, selecionando todas as colunas e filtrando por "Manter Erros". Certifique-se de que não haja nenhuma linha para cada uma. Se não houver linhas de erro em nenhuma tabela, então é algo com o SQL Server e o serviço do Power BI. Caso contrário, pode haver um erro no ETL. Às vezes, o Power BI Desktop exibe avisos após aplicar e atualizar, que indicam erros no serviço.

Espero que ajude.
Resposta traduzida do inglês


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

Happy to help!

LaDataWeb Blog

View solution in original post

Shahid12523
Community Champion
Community Champion

You're getting a Type mismatch error in Power BI Service (but not in Desktop) because the Service is stricter about data types during refresh.
Quick Fixes:
- Explicitly set column types in Power Query (avoid “Any”).
- Ensure SQL Server columns have consistent types (e.g., no mixed text/number).
- Replace nulls before applying types.
- Update your gateway and drivers.

Shahed Shaikh

View solution in original post

5 REPLIES 5
v-echaithra
Community Support
Community Support

Hi @Lemuel ,

We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

Best Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @Lemuel ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-echaithra
Community Support
Community Support

Hi @Lemuel ,

Thank you @Shahid12523 , @ibarrau  for your response.

I hope the information provided is helpful. I wanted to check whether you were able to resolve the issue with the provided solutions. Please let us know if you need any further assistance.

Thank you.

Shahid12523
Community Champion
Community Champion

You're getting a Type mismatch error in Power BI Service (but not in Desktop) because the Service is stricter about data types during refresh.
Quick Fixes:
- Explicitly set column types in Power Query (avoid “Any”).
- Ensure SQL Server columns have consistent types (e.g., no mixed text/number).
- Replace nulls before applying types.
- Update your gateway and drivers.

Shahed Shaikh
ibarrau
Super User
Super User

Olá. Só para garantir que não haja erros nas transformações, vamos fazer uma verificação rápida. Abra o Power BI Desktop. Acesse queryeditor/transformdata. Abra as tabelas uma a uma, selecionando todas as colunas e filtrando por "Manter Erros". Certifique-se de que não haja nenhuma linha para cada uma. Se não houver linhas de erro em nenhuma tabela, então é algo com o SQL Server e o serviço do Power BI. Caso contrário, pode haver um erro no ETL. Às vezes, o Power BI Desktop exibe avisos após aplicar e atualizar, que indicam erros no serviço.

Espero que ajude.
Resposta traduzida do inglês


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors