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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SnoekL
Helper II
Helper II

DataFlow Gen2 issue We couldn't convert to Date.

I'm loading data from a on-premise Gupta database using ODBC with DataFlow Gen2

It's working fine until I try to make it an incremental refresh using the last date from the already loaded table.

 

I'm extracting the data from the warehouse with:

SnoekL_0-1702373485547.png

This seems to be working fine.

I'm using a native query and I use the output of the first query as a value (VW_INCR_DATE) in the sql native query

SnoekL_2-1702374261295.png

In the dataflow (when editing) it seems to be working. The results are showing correct. 

But the issue shows up when the dataflow runs.

SnoekL_3-1702374595189.png

I don't understand this issue. Is anyone able to help me with this issue?

 

 

 

 

2 ACCEPTED SOLUTIONS

The VW_INCR_DATE value is coming from the warehouse and is the last date for which the data is already loaded. That is not from the source.

View solution in original post

SnoekL
Helper II
Helper II

I found the solution. The query which extracts the Date value from the warehouse should have "enable staging" false to get it working. Not sure why though :).

View solution in original post

6 REPLIES 6
SnoekL
Helper II
Helper II

I found the solution. The query which extracts the Date value from the warehouse should have "enable staging" false to get it working. Not sure why though :).

Thanks a lot.

 

It was really giving me a hard time. Can't believe it was simply turning off "Enable Staging". 

aj1973
Community Champion
Community Champion

Hi @SnoekL 

Dosen't look like implemented refresh is implemented the right way. Please refer to this

https://learn.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

aj1973, the topic you are referring to is actually the one I used to build my incremental refresh.

Big difference though is that the example has sql database as a source where I'm connecting via odbc to a local database. 

And the example has a datekey in the source which is a integer where my source only has a datetime field to use to get the incremental data.

 

I tried to convert the source data to different datatypes but than I get different errors as well.  So i'm stuck at the moment.

aj1973
Community Champion
Community Champion

When connecting to ODBC

aj1973_0-1702390165737.png

Add a SQL statement to convert/cast this part 

aj1973_1-1702390251973.png

to Date before loading into Power Query Online.

 

Power Query couldn't accept to add a step to Format that column so try with SQL statement, it should work.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

The VW_INCR_DATE value is coming from the warehouse and is the last date for which the data is already loaded. That is not from the source.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.