From 009639247300c6a87fb82768cc66c1ae0f3905ae Mon Sep 17 00:00:00 2001 From: Adam Rutland Date: Wed, 4 Nov 2020 18:20:13 -0800 Subject: [PATCH] Fix issue with failure in pagination not allowing retry. --- lib/datapacksjob.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/datapacksjob.js b/lib/datapacksjob.js index 8663c0f1..91ec1f67 100644 --- a/lib/datapacksjob.js +++ b/lib/datapacksjob.js @@ -2202,7 +2202,13 @@ DataPacksJob.prototype.deployPack = async function(inputMap) { var objectKey = self.vlocity.datapacksutils.getBulkJobObjectKey(dataPack.VlocityDataPackType); var dataPackKey = JSON.stringify(dataPack.VlocityDataPackKey); - if (dataPack.VlocityDataPackRelationshipType != 'Pagination') { + if (dataPack.VlocityDataPackRelationshipType == 'Pagination') { + let paginationParentKey = dataPack.VlocityDataPackKey.substring(0, dataPack.VlocityDataPackKey.indexOf('|')); + + if (dataPack.VlocityDataPackStatus == 'Error') { + jobInfo.currentStatus[paginationParentKey] = dataPack.VlocityDataPackStatus; + } + } else { jobInfo.currentStatus[dataPack.VlocityDataPackKey] = dataPack.VlocityDataPackStatus; }