diff --git a/businessCentral/app.json b/businessCentral/app.json index 41bc9a9..64b4a1f 100644 --- a/businessCentral/app.json +++ b/businessCentral/app.json @@ -4,7 +4,7 @@ "publisher": "The bc2adls team, Microsoft Denmark", "brief": "Sync data from Business Central to the Azure storage", "description": "Exports data in chosen tables to the Azure Data Lake and keeps it in sync by incremental updates. Before you use this tool, please read the SUPPORT.md file at https://github.com/microsoft/bc2adls.", - "version": "1.3.15.0", + "version": "1.3.16.0", "privacyStatement": "https://go.microsoft.com/fwlink/?LinkId=724009", "EULA": "https://go.microsoft.com/fwlink/?linkid=2009120", "help": "https://go.microsoft.com/fwlink/?LinkId=724011", diff --git a/businessCentral/src/ADLSECommunication.Codeunit.al b/businessCentral/src/ADLSECommunication.Codeunit.al index b0e4365..2f86280 100644 --- a/businessCentral/src/ADLSECommunication.Codeunit.al +++ b/businessCentral/src/ADLSECommunication.Codeunit.al @@ -250,13 +250,7 @@ codeunit 82562 "ADLSE Communication" end; end; - [TryFunction] - procedure TryUpdateCdmJsons(EntityJsonNeedsUpdate: Boolean; ManifestJsonsNeedsUpdate: Boolean) - begin - UpdateCdmJsons(EntityJsonNeedsUpdate, ManifestJsonsNeedsUpdate); - end; - - local procedure UpdateCdmJsons(EntityJsonNeedsUpdate: Boolean; ManifestJsonsNeedsUpdate: Boolean) + procedure UpdateCdmJsons(EntityJsonNeedsUpdate: Boolean; ManifestJsonsNeedsUpdate: Boolean) var ADLSESetup: Record "ADLSE Setup"; ADLSEGen2Util: Codeunit "ADLSE Gen 2 Util"; diff --git a/businessCentral/src/ADLSEExecute.Codeunit.al b/businessCentral/src/ADLSEExecute.Codeunit.al index c824d33..7d5512a 100644 --- a/businessCentral/src/ADLSEExecute.Codeunit.al +++ b/businessCentral/src/ADLSEExecute.Codeunit.al @@ -87,10 +87,7 @@ codeunit 82561 "ADLSE Execute" end; // update Jsons - if not ADLSECommunication.TryUpdateCdmJsons(EntityJsonNeedsUpdate, ManifestJsonsNeedsUpdate) then begin - SetStateFinished(Rec, TableCaption); - exit; - end; + ADLSECommunication.UpdateCdmJsons(EntityJsonNeedsUpdate, ManifestJsonsNeedsUpdate); if EmitTelemetry then ADLSEExecution.Log('ADLSE-007', 'Jsons have been updated', Verbosity::Normal, CustomDimensions);