0% found this document useful (0 votes)
51 views

SBL-DAT-00498 Error When Creating Contact Record Via Scripting

Uploaded by

sanaa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views

SBL-DAT-00498 Error When Creating Contact Record Via Scripting

Uploaded by

sanaa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PowerViLast Login: May 17, 2024 6:11 PM CEST Switch to Cloud Support Saida (Available) (0) Contact Us Help

Dashboard Knowledge Service Requests Patches & Updates Community

Give Feedback...
Copyright (c) 2024, Oracle. All rights reserved. Oracle Confidential.

SBL-DAT-00498 Error When Creating Contact Record Via Scripting (Doc ID 2997623.1) To Bottom

In this Document Was this document helpful?

Symptoms Yes
No
Cause
Solution
Document Details
References

Type:
PROBLEM
Status:
PUBLISHED
Last Major
Feb 29, 2024
APPLIES TO: Update:
Feb 29, 2024
Last Update:

Siebel CRM - Version 23.6 and later


Information in this document applies to any platform.
Related Products
Siebel CRM
SYMPTOMS
Information Centers
The following escript code works fine in standard environment:
Information Center: Siebel
var conBO = TheApplication().GetBusObject("Contact"); CRM System Administration
[1411823.2]
var conBC = conBO.GetBusComp("Contact");
conBC.NewRecord(NewAfter);
conBC.SetFieldValue("First Name", "fst");
conBC.SetFieldValue("Last Name", "lst"); Document References
conBC.WriteRecord();
No References available for
conBC = null;
this document.
conBO = null;

Recently Viewed

How To troubleshoot Rebase


But it fails in the customized environment with the following error: or Delivery of Repository
Workspace [2680804.1]

'First Name' is a required field. Please enter a value for the field.(SBL-DAT-00498) BusComp_PreSetFieldValue
Event Fires Twice On Check
Box Field Which Has
Immediate Post Changes =
True [2878456.1]
In the customized environment, Contact business component has the following script:
Debugger Service
Configuration on Linux
function BusComp_PreSetFieldValue (FieldName, FieldValue) [2786339.1]
{
Integration Object
this.ActivateField("Fax Phone #");
Deployment After Full RR
this.ActivateField("Work Phone #"); Migration [2732329.1]
this.ActivateField("Cellular Phone #");
if (FieldName == "Fax Phone #") { OBIEE 12c: Start Script Fails
to Connect to the Node
....
Manager with Error "General
} else if (FieldName == "Work Phone #") {
SSLEngine Problem"
... [2330254.1]
} else if (FieldName == "Cellular Phone #") {
... Show More
}
return (ContinueOperation);
}

Here are the steps to reproduce the error:

1. Login to Siebel Tools or Web Tools and open/create a developer workspace.

2. Go to 'Business Component' in the object explorer and select Contact business component.

3. Open the Server Script editor and add above script in BusComp_PreSetFieldValue event.

4. Save and deliver the change.

5. Login to Siebel application and go to 'Site Map'->'Administration - Business Service'.

6. Create a business service and method.

7. In the Scripts view, add the following script:


var conBO = TheApplication().GetBusObject("Contact");
var conBC = conBO.GetBusComp("Contact");
conBC.NewRecord(NewAfter);
conBC.SetFieldValue("First Name", "fst");
conBC.SetFieldValue("Last Name", "lst");
conBC.WriteRecord();
conBC = null;
conBO = null;

8. In the Simulator view, run the business service and method created in above step 6.

9. The SBL-DAT-00498 error will be displayed.

CAUSE

As documented in the following knowledge documents, ActivateField should be used before ExecuteQuery method.

ActivateField method's proper usage (Doc ID 477947.1)


Some Common Reasons that Scripts Fail ? (Doc ID 812323.1)

SOLUTION

Have the "ActivateField" function deleted from the code:

- In Siebel Tools/Web Tools, select Contact business component.


- Open the Server Script editor and open the code in the BusComp_PreSetFieldValue function
- Delete the 3 line below:

this.ActivateField("Fax Phone #");


this.ActivateField("Work Phone #");
this.ActivateField("Cellular Phone #");

Didn't find what you are looking for? Ask in Community...

Related
Products

Siebel > Customer Relationship Management > CRM - Enterprise Edition > Siebel CRM > Configuration - General > General Customization

Back to Top
Copyright (c) 2024, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement

You might also like