microsoft / Dynamics-365-FastTrack-Implementation-Assets

Dynamics 365 FastTrack Implementation guides
MIT License
283 stars 187 forks source link

Synapse link with incremental update timeout #317

Open riccardocardinalirw opened 3 months ago

riccardocardinalirw commented 3 months ago

Hi, I deployed the solution found at the "https://github.com/microsoft/Dynamics-365-FastTrack-Implementation-Assets/tree/master/Analytics/DataverseLink/DataIntegration" to get csv files exported by Synapse Link into our Dedicated Pool DB. The problem is that for large tables, the query on the source interface (Synapse SQL Serverless) return error due to timeout, 30 minutes on Synapse SQL Serverless. Also, if the pipeline return errors, the involved tables are not reprocessed on the next run, cause the controtable on the destination db contains the table entry with end date set to null, I must delete the table entry to allow reprocess by pipeline, however the problem rise again cause table size. I've found tables with many records also, but they have less columns. The source CSV are stored on a datalake and they are gained by Dynamics 365 F&O.

riccardocardinalirw commented 3 months ago

Hi, I think I found the problem: the issue on the Synapse Servless depends from the the nvarchar(max) type. I tried to change it in nvarchar(4000) and now the query ends in 3 minutes for 1200000 records. Now I'll edit the max to 4000 into stored procedures and reload all the tables.