[nQSError: 67004] Configuration value Agents\Log Dir not set. — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

[nQSError: 67004] Configuration value Agents\Log Dir not set.

Received Response
31
Views
4
Comments
Sagar Tippe
Sagar Tippe Rank 4 - Community Specialist

Hi.

I'm configuring a scheduler to export the result set to some shared location on the network. below is the document provided by Oracle. Have followed the same but resulting in error saying,

[nQSError: 66013] [Line:12 Column:1]

[nQSError: 67004] Configuration value Agents\Log Dir not set.

can I know how we can set Agents\Log directory?

Programming BI Scheduler VBScript and JScript Jobs

Thanks,

Sagar Tippe

Answers

  • In the config file of the scheduler, instanceconfig.xml (in ORACLE_INSTANCE\config\OracleBISchedulerComponent\coreapplication_obischn) you have a setting for the "Log_Dir".

    Must be in scheduler/ServerInstance/iBots .

  • Sagar Tippe
    Sagar Tippe Rank 4 - Community Specialist

    Thanks for the quick reply Gianni.

    I check this configuration and can see that path is already set. If you see the JavaScript I'm using,

    // Parameter(0) = Agent Result File Path

    // Parameter(1) = Last Part of Output File Name (no path)

    //

    /////////////////////////////////////////////////////////////

    var FSO = new ActiveXObject("Scripting.FileSystemObject");

    var fileName = GetConfigurationValue("Log Dir", "Agents") +

      "\\" + JobID + "-" + InstanceID + "-" + UserID + "-" +

      Parameter(1);

    var fooFile = FSO.CopyFile(Parameter(0), fileName, true);

    So, for the sake of simplicity I made some changes to the above script as,

    // Parameter(0) = Agent Result File Path

    //

    /////////////////////////////////////////////////////////////

    var FSO = new ActiveXObject("Scripting.FileSystemObject");

    var fileName = "Test.pdf";

    var fooFile = FSO.CopyFile(Parameter(0), fileName, true);

    This one is running successfully but I'm not able to see exported report anywhere.

  • Sagar Tippe
    Sagar Tippe Rank 4 - Community Specialist

    Hi Gianni,

    Got rid of this issue. There was nothing wrong with the script, while defining parameters in "Invoke Server Script Window", Parameter name should be 0 and 1 according to the scrips and the sequence should be as first parameter should be "Document Parameter" and then a "Value Parameter" I know silly mistake, but thanks for your help.

    Though the script needs some code change in below line.

    var fileName = GetConfigurationValue("Log Dir", "Agents") + "\\" + JobID + "-" + InstanceID + "-" + UserID + "-" + Parameter(1);

    If you see the instanceconfig.xml file for scheduler, the XML TAG is <iBots> and not <Agents>. (I'm using version 11.1.1.7.150120). So this needs to be changed as below,

    var fileName = GetConfigurationValue("Log Dir", "iBots") + "\\" + JobID + "-" + InstanceID + "-" + UserID + Parameter(1);

    Good day ahead.

  • Good for you

    So you can maybe close the thread, now it's still This question is Not Answered.