I have factory data with a pipeline copy operation as follows:
{ "type": "Copy", "name": "Copy from storage to SQL", "inputs": [ { "name": "storageDatasetName" } ], "outputs": [ { "name": "sqlOutputDatasetName" } ], "typeProperties": { "source": { "type": "BlobSource" }, "sink": { "type": "SqlSink" } }, "policy": { "concurrency": 1, "retry": 3 }, "scheduler": { "frequency": "Month", "interval": 1 } }
The input data is about 90 MB, about 1.5 million lines, divided into approx. 20 x 4.5MB block block files in Azure Storage. Here is a sample data (CSV):
A81001,1,1,1,2,600,3.0,0.47236654,141.70996,0.70854986 A81001,4,11,0,25,588,243.0,5.904582,138.87576,57.392536 A81001,7,4,1,32,1342,278.0,7.5578647,316.95795, 65.65895
Sink - This is Azure SQL Server type S2, which is designed for 50 DTUs. I created a simple table with reasonable data types, as well as no keys, indexes or anything interesting, just columns:
CREATE TABLE [dbo].[Prescriptions]( [Practice] [char](6) NOT NULL, [BnfChapter] [tinyint] NOT NULL, [BnfSection] [tinyint] NOT NULL, [BnfParagraph] [tinyint] NOT NULL, [TotalItems] [int] NOT NULL, [TotalQty] [int] NOT NULL, [TotalActCost] [float] NOT NULL, [TotalItemsPerThousand] [float] NOT NULL, [TotalQtyPerThousand] [float] NOT NULL, [TotalActCostPerThousand] [float] NOT NULL )
The source, receiver, and factory data are in the same region (Northern Europe).
According to Microsoft's “Copy Activity and Configuration Guide,” for Azure Storage Source and Azure SQL S2, I should get about 0.4 Mbps. According to my calculations, this means that 90 MB should be transferred in about half an hour (is this right?).

For some reason, it copies 70,000 lines very quickly, and then it seems to freeze. Using SQL Management Studio, I see that the number of rows in the database table is exactly 70,000 and has not increased at all in 7 hours. However, the copy task still works without errors:

Any ideas why this hangs on 70,000 lines? I do not see anything unusual in the data line 70 001st, which will cause the problem. I tried inexorably to trick factory data and start again, and I always get the same behavior. I have another copy operation with a smaller table (8000 rows) that completes after 1 minute.