Skip to content

Commit b3e47e7

Browse files
committed
Fixed bug in calculation of rows written during refresh/update.
1 parent ce8d116 commit b3e47e7

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Sqlbi.PbiPushDataset/PbiConnection.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,17 +435,18 @@ public async Task<List<string>> ClearPushDataset( Guid groupId, Guid datasetId,
435435
}
436436
}
437437
rows.Add(rowPushData);
438-
totalRows += rows.Count;
439438

440439
if (rows.Count >= MAX_ROWS_PER_POST)
441440
{
442441
refreshingTable?.Invoke(tableName, rows.Count);
442+
totalRows += rows.Count;
443443
await _powerBIClient.Datasets.PostRowsInGroupAsync(groupId, datasetId.ToString(), tableName, new PostRowsRequest(rows));
444444
rows = new List<object>();
445445
}
446446

447447
}
448448
refreshingTable?.Invoke(tableName, rows.Count);
449+
totalRows += rows.Count;
449450
await _powerBIClient.Datasets.PostRowsInGroupAsync(groupId, datasetId.ToString(), tableName, new PostRowsRequest(rows));
450451
refreshedTables.Add((tableName, totalRows));
451452
} while (reader.NextResult());

Sqlbi.PbiPushDataset/Sqlbi.PbiPushDataset.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageIconUrl>https://www.sqlbi.com/wp-content/uploads/PbiPushDataset.svg</PackageIconUrl>
1414
<PackageIcon>PbiPushDataset.png</PackageIcon>
1515
<PackageTags>Power BI, Push Dataset</PackageTags>
16-
<Version>0.9.8</Version>
16+
<Version>0.9.9</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>

Sqlbi.PbiPushTools/Sqlbi.PbiPushTools.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
RootModule = 'Sqlbi.PbiPushTools.dll'
1010

1111
# Version number of this module.
12-
ModuleVersion = '0.9.8'
12+
ModuleVersion = '0.9.9'
1313

1414
# Supported PSEditions
1515
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)