Error attempting to publish scoped application to the application repository: "Progress worker state is not set to complete after worker finished" Issue If you receive an error while publishing one particular scoped application to the application repository: "Progress worker state is not set to complete after worker finished" And can spot on the logs: 2020-06-16 12:20:40 (367) worker.1 worker.1 txid=fbeca7b31b91 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot find function generateXMLFromDelete in object [object Object].Caused by error in sys_script_include.d4bfe311d71321004f6a0eca5e61037e.script at line 1302020-06-16 12:20:40 (367) worker.1 worker.1 txid=fbeca7b31b91 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot find function generateXMLFromDelete in object [object Object].Caused by error in sys_script_include.d4bfe311d71321004f6a0eca5e61037e.script at line 1242020-06-16 12:20:40 (368) worker.1 worker.1 txid=fbeca7b31b91 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot find function generateXMLFromDelete in object [object Object].Caused by error in sys_script_include.d4bfe311d71321004f6a0eca5e61037e.script at line 192020-06-16 12:20:40 (369) worker.1 worker.1 txid=fbeca7b31b91 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot find function generateXMLFromDelete in object [object Object].Caused by error in sys_script_include.45b9fa01eb002100d4360c505206fe8e.script at line 282020-06-16 12:20:40 (373) worker.1 worker.1 txid=fbeca7b31b91 WARNING *** WARNING *** Evaluator: org.mozilla.javascript.EcmaError: Cannot find function generateXMLFromDelete in object [object Object].Caused by error in Script Include: 'ScopedAppUploader' at line 1 ==> 1: var ScopedAppUploader = Class.create();2: ScopedAppUploader.prototype = {3: ZIPPING_APP_PACKAGE : gs.getMessage("Packaging application"),4: UPLOADING_APP_PACKAGE : gs.getMessage("Uploading application"), CauseThe issue is due to a customized "ScopedAppDataUnloader" Script Include, which is missing the "generateXMLFromDelete" function. This function is used when unloading sys_metatadata_delete records, which the app in this particular case had. If an app doesn't have deletes, it won't ever hit that line of code, which would explain why it was affecting one app, but not others.ResolutionRevert the "ScopedAppDataUnloader" Script Include to OOB.