diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index a05eaeeff6ef76c49e7c0c7c7526cecc9d2c61ab..6d4c1f48f56f2b06ff238c0987e9e4a1295aecdf 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -2122,7 +2122,7 @@ process failPreExecutionRun {
   if [ "\${exist}" == "[]" ]
   then
     rid=\$(python3 ${script_uploadExecutionRun_failPreExecutionRun} -r ${repRID} -w \${workflow} -g \${genome} -i ${inputBagRID} -s Error -d "\${errorDetails}" -o ${source} -c \${cookie} -u F)
-    echo LOG: execution run RID uploaded - \${executionRun_rid} >> ${repRID}.failPreExecutionRun.log
+    echo LOG: execution run RID uploaded - \${rid} >> ${repRID}.failPreExecutionRun.log
   else
     rid=\$(echo \${exist} | grep -o '\\"RID\\":\\".*\\",\\"RCT')
     rid=\${rid:7:-6}