BROWSER SCRIPT - ERROR HANDLING SBL-UIF-00275 (Doc ID 981900.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools - Version 8.0 [20405] and later
Information in this document applies to any platform.
”Checked for Relevance on 11-JAN-2016””

Symptoms

Steps to reproduce the issue:

1. Created a business Service "Sample Business Service"
2. Add following code

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)
{
  if(MethodName == "Sample")
  {
    Outputs.SetProperty("URL", "/s/ap/20091204/ap_on_he_me/us_med_swine_flu/print")
    return(CancelOperation);
  }
  return (ContinueOperation);
}


3. In Contact List Applet created a Button and in the Applet_PreInvoke Event Add following code

function Applet_PreInvokeMethod (name, inputPropSet)
{
  if(name == "TestRecord")
  {
    try{
      var bs;
      bs = theApplication().GetService("Sample Business Service ");
      var psInputs = theApplication().NewPropertySet();
      var psOutputs = theApplication().NewPropertySet();
      psOutputs = bs.InvokeMethod("Sample",psInputs);
      var URL = psOutputs.GetProperty("URL");
      window.open("http://news.yahoo.com"+URL);
    }
    catch(e){
      alert(e.toString());
    }
    finally{
    }
    return("CancelOperation");
  }
  return ("ContinueOperation");
}



4. Everything is working as expected.


5. But if you change the Business Service name from "Sample Business Service" to "Sample Business Service1" you will get following error

"Cannot get service: Sample Business Service1(SBL-UIF-00275)"

Also the URL is getting invoke. The URL should not get invoked as the error is encountered. It looks like it is bypassing the catch block in the browser Script

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