Copy file in Business Service with specific characters throws error SBL-EXL-00151 (Doc ID 534130.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools - Version 7.7.2.2 [18356] to 8.2.2.3 SIA [23021] [Release V7 to V8]
Oracle Solaris on SPARC (64-bit)
Database: Oracle 9.2.0.6
Application Server OS: Sun Solaris 8
Database Server OS: Sun Solaris 8

This document was previously published as Siebel SR 38-2605356811.
****Checked for Currency on 28/03/2016****

Symptoms

We use following command in our BS:

var copyfile = "cp \"" + filename + "\" \"//apps//siebel//filesystem6.3//lotusnotes//massmailer//" + MailId + "_" + AttachmentName + "." + AttachmentExt + "\"";
Clib.system (copyfile);



When we have a file with accentuated character, we obtain the error message

Changes

This was reproduced in standard Siebel Version: 7.7.2.2 [18356] using the sample code below:

1. create a new business service: "myTest"
2. create a new business service method : "myTest"
3. Write the following code in Business Service > PreinvokeMethod:

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
if (MethodName == "myTest") {

var str1 = "//u01/siebel/sia77ora/";
var str2 = " //u01/siebel/sia77ora/siebsrvr/";
var filename = "BS^^TEST.txt";
var filename1 = "BSTEST1.txt";

var strFull = "cp " + str1 + filename + " " + str2 + filename1;

Clib.system (strFull);

//TheApplication().RaiseErrorText(strFull);
return (CancelOperation);
};
return (ContinueOperation);
}

4. Create a txt file as described in the code.
5. Run the business service through simulator (Administration > Business service administration > Simulator).
6. "SBL-EXL-00151" error is shown.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms