r/MicrosoftFabric • u/GullDSP • 3d ago
Data Factory Data flow timeout
Hi all,
I have a gen2 flow that takes around 15 mins to run, breaking it up would be impractical as it's more a data volume affecting the time rather than the processing.
The run succeeds and gives green tick, and changes are reflected in the output data. however validation never succeeds (presumably times out due to the ten min limit)
Can I trust this data given it has successfully run and written to lakehouse with changes, or is it 'untrustworthy' technically until it has successfully validated? The data seems fine and checks seems all good, but does the lack of validation mean that say, one person's data could be wrong or malformed?
1
u/jkrm1920 3d ago
QQ what’s the data volume you are pumping with DF2?
1
u/GullDSP 3d ago
200M rows roughly
1
u/jkrm1920 3d ago
Ok, what else are you doing with the data while copying 200 million rows ? Is it one time or every time you need to tinker with 200 mil like Clean, Combine or reshape your data every time you are copying?
I’m not trying to change the architecture here which you trust as a good architect.
1
u/GullDSP 3d ago
It's fresh transaction and pay information, its some replaces, filtering a grouping and 3 joins. There are definitely ways it could be broken up, bur for QA purposes it's much nicer all together and the 15 minute refresh is nor a surprise nor a concern by itself. More concerning is the validation issue, the data itself measures fine
1
u/MonkeyDDataHQ 3d ago
Have you tried just lowering the ingestion window? Do five minutes of data at a time? But best practice is generally to just... Load the data without filtering and joining on the raw layer. That's why we call it raw.
Also you're not making QA simpler, you're making validation the least reliable part of your process. A validation checkbox being green doesn't mean the data is correct.
1
u/GullDSP 2d ago
Sure, but the run is fine and the data looks okay, so I have no actual issues as long as the validation error doesn't mean that there can be silent failures
1
u/MonkeyDDataHQ 2d ago edited 2d ago
That's exactly what it means. It feels like you just want an excuse to not fix it. This is already two engineering anti-patterns. And you're asking if you can ignore the smoke alarm because you can't tell if there's fire.
I have seen this pattern enough times. I was at a client that had 3000 ignored warnings per week because everything looked okay.
I did an audit. Everything was not okay.
1
u/GullDSP 1d ago edited 1d ago
It's validated now, not sure why it was acting strange. Will try to split it up soon. Sorry could you explain this part:
But best practice is generally to just... Load the data without filtering and joining on the raw layer.
Do you mean, have a separate flow that just loads all of the data from the sources, and then do the transformations in a separate flow? I didn't do this as some are upstream flows so assumed it would just be the same as loading from a separate dedicated flow (hidden Lakehouse in the background)
1
u/escobarmiguel90 Microsoft Employee 2d ago
When you click “save” or “save and run”, the first thing happens is fundamentally a validation that occurs within what has been historically called a publish operation.
The refresh only occurs after the validation happens.
If your validation is never actually succeeding, we should try to look at how you’re creating your queries and why one of them might time out assuming that your comment around the time out is correct.
I’d highly recommend that you create a support ticket so our engineering team can take a closer look at this.
There might be some optimization opportunities so your queries can run pretty fast and not have a huge overhead.
1
u/GullDSP 1d ago
Hey, it has randomly passed validation now! Not sure what was up....I think heavily dependent on the sources being slow
1
u/escobarmiguel90 Microsoft Employee 1d ago
glad to hear that!
Similar to what others are saying, it might be worthwhile to review your solution to see how it could be improved and why that validation may be taking so much time, or even your refresh taking too much time.
2
u/zahala_msft Microsoft Employee 3d ago
When you say validation never succeeds, do you mean the editor preview does not return?
One thing you could do is simply ingest in a dataflow (or pipeline), then subsequently clean in a new dataflow, then have dataflow(s) that merge/append/etc to create your business data. If you're unfamiliar with the medallion architecture it might be worth a read, generally that's recommended with ETL similar to how Fabric does it: Implement Medallion Lakehouse Architecture in Fabric - Microsoft Fabric | Microsoft Learn. There will be more stuff and it will be more complicated, but if you're specifically concerned about validation that may be something you might want to consider