diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index c1093f6959ab377e54d36c572059f03f9ff0ec42..a815193a7e13d4399c0fac8e3d9defcbaf669807 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -2014,7 +2014,7 @@ process failExecutionRun {
     then
       pipelineError_details=\$(echo \${pipelineError_details}"|Species|${speciesMeta}|${speciesInfer}|\\n")
     fi
-    pipelineError_details=\$(echo "\${pipelineError_details::-}")
+    pipelineError_details=\$(echo "\${pipelineError_details::-2}")
     rid=\$(python3 ${script_uploadExecutionRun_failExecutionRun} -r ${repRID} -w \${workflow} -g \${genome} -i ${inputBagRID} -s Error -d "\${pipelineError_details}" -o ${source} -c \${cookie} -u ${executionRunRID})
     echo LOG: execution run RID marked as error - \${rid} >> ${repRID}.finalizeExecutionRun.log
   fi