No log, you can check to see if addFiles returns an error code, but I would be willing to bet that there is an issue with the filename. You should dump that to a log and see. Finally I know that if someone else has a file locked, addFiles will not work, but that would not cause this behavior.
When I directly run clt iwaddtaskfile (my $rc = system ("iwaddtaskfile -s b2cqaloadtester $ENV{'TASKID'} $FilePath 'content'") I get error code 256.any ideas what is error code 256?
my $return = qx(iwaddtaskfile -s b2cqaloadtester $ENV{'TASKID'} $FilePath 'content' 2>&1); # Redirect STDERR to STDOUT my $rc = $?;if ($rc == 0) { # You Good!}else { # Oh, Oh... $rc = ($rc >> 8); # Shift Return code by eight log_it( qq(rc = $rc, $return) ); }
Looks like the error is because there is already that file attached in workflow.Fish I found a old code from you to check for already attached file but that is not working for me some how. this was that code from youmy %files;$files{$_} = 1 foreach($task->GetFiles());if (!$files{$newfile}){ if (! $task->AddFile($newfile, "comment")){ # ERROR }}is there anything else i can do?Thanks