Featured Article


Inspired by Hack A Day, i'm currently gathering requirements for this crazy idea.

This operation is not valid when executed in setup only mode.(SBL-DAT-00395)

Life becomes more interesting when you encounter an error that has not been documented before. It sounds generic and familiar enough to yield some results, but you will not find this on support web.

There is one hit on IT Toolbox, but the error was only mentioned in passing, but no solution was provided.

This error can be replicated by performing the following actions.

1. Put the following code in the WriteRecord event of any BC.

this.NextRecord();

2. Inside a BS instantiate the above BC using code and perform NewRecord();

3. In the same BS commit the record using WriteRecord();

The following error will appear.

"This operation is not valid when executed in setup only mode.(SBL-DAT-00395)"

This dosnt error out when in UI context, but when you explicitly instantiate the BC out of UI context the problem will appear.

The next question to ask, is do we really need the NextRecord in WriteRecord?, If not just remove it and get rid of the error, but consider that there might be a ligitimate reason to do a NextRecord on WriteRecord, or it was put there by someone for some reason.

Here are some options that you could use to bypass NextRecord in the above scenario.

1. Clone the BC
2. Set a flag on a custom new record event to differentiate between UI and Non UI events
3. Set a profile attribute in Browser script behind NewRecord.

What i havnt figured out is, what is "setup only mode"?

This behaviour was discovered in Siebel 8.1.1.2.
Stumble Delicious Technorati Twitter Facebook

0 comments :

Post a Comment