Leave feedback
  • Question

    CallProc() not called during preproc phase

Enter a new topic
  • loke kk loke kk
    0 likes 489 views

    Hi, I get an error " Fatal error: No resources allocated for process, possible reason: CallProc() not called during preproc phase". I'm not sure what happen to my new changes code. Below are the script inside the PreProc Message. if($v_EmailAdd !=""){
    bla..bla..bla..
    if (num($num_of_email)!=0){
    bla...bla...bla..
    While(num($num_of_email)>num($num_count)){
    $connector="NULL";
    $process_name="Blankpage";
    IF ($arr1[$em_count] = "")
    {
    bla...bla..bla..
    } else {
    if (PreProc()==0)
    $v_Return = execute("cmd.exe /c " + $v_EncryptionToolProgram_FullPath, 20, "", $v_ArrOutput);
    if (str($v_Return) == "0"){
    $connector="MailOUT_Connector";
    $process_name="MailOut_Process";
    }else{
    $connector="NULL";
    $process_name="Blankpage";
    }
    }
    callproc($process_name);
    bla...bla...bla...
    }
    }
    }
    Any idea how to resolve it. Thanks.

    Wednesday 03 August, 2016
  • Best Answer
    Mats Pursche Mats Pursche OpenText Employee Partner
    0 likes

    StreamServe will do this if you don't call the same processes in normal processing as you did in preproc. This is because memory and resource allocation is made in preproc, so if you try to call, let's say MailOut_Process without first doing it in PreProc, this will fail.

    Since you determin the process and connector after the execute() which is not done in preproc, you will get different answers, and then probably call Blankpage in preproc, and MailOut_Process in normal processing.

    Do the execute() in preproc and maybe use a session variable to keep the returnvalue until processing phase, or just do the execute twice.

    regards,
        /Mats

    Thursday 04 August, 2016
  • loke kk loke kk
    1 likes

    Thanks Mats.

    Your information very useful for me on how to use the PreProc() and resolved my issue. 

    Friday 05 August, 2016