Script functions reference > Script functions in alphabetical order > G > GetPPError

GetPPError
Syntax
GetPPError();
Description
Returns the last error that occurred during the Post-processor job.
Returns
num
0
-1
Example
$error = GetPPError();
if(IsLastSegment())
{
  if(num($error) > 0)
  {
    $doc_id = GetFirstPPDoc();
    while(num($doc_id) > 0)
    {
      $ret = UpdatePPDocStatus(num($doc_id), "error", num($error));
      $doc_id = GetNextPPDoc($doc_id);
    }
  }
}
OpenText StreamServe 5.6 Updated: 2013-03-01