Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 208 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 76 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
[nQSError: 67004] Configuration value Agents\Log Dir not set.

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 .
0 -
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.
0 -
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.
0 -
Good for you
So you can maybe close the thread, now it's still This question is Not Answered.
0