diff --git a/MultiPeriodDaily.js b/MultiPeriodDaily.js index 75eb7ab7f..054f9a37e 100644 --- a/MultiPeriodDaily.js +++ b/MultiPeriodDaily.js @@ -214,7 +214,7 @@ return; } - if (bot.hasTheBotJustStarted === true && processConfig.framework.startDate.resumeExecution === false) { + if (bot.hasTheBotJustStarted === true && processConfig.framework.startDate !== undefined && processConfig.framework.startDate.resumeExecution === false) { if (FULL_LOG === true) { logger.write(MODULE_NAME, "[INFO] start -> getContextVariables -> Starting from the begining because bot has just started and resume execution was true."); } startFromBegining();