IP2014 - Full Compile Fails Because Of Error "Not All Control Paths Lead To A Return Statement...SBL-SCR-00128"

(Doc ID 1982267.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel Tools - Version 8.1.1.14.3 [IP2014] and later
Information in this document applies to any platform.

Symptoms

We have just upgraded to IP2014 patchset 3 and we are trying to perform a full compile. The full compile fails repeatedly with this error message:

"Script compilation failed at line XX in procedure 'methodName':
Semantic Error around line XXX:Not all control paths lead to a return statement.
(SBL-SCR-00128)"

If we fix this for one script, it just fails for the next script. This would be fine if the error message made sense, but for every single script so far, the error message seems to be false.

If we make sure every single return statement is within an "if", "else if" or "else" then the error message goes away and the fullcompile continues (and then fails at the next script). You can see this behavior with the attached file "bsfail.txt" which fails with this error, and "bsok.txt" that is "fixed". Please note the useless "if" statement added as workaround. Note also that the original "bsfail.txt" is semantically correct as it will always reach the return statement, unless an error is caught.

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