function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dgrokosdgrokos 

Samples.Java 974 Null Error Message

Hey All,

I'm using the Samples.java file provided by sforce and keep getting an error:

"974Failed to execute query succesfully, error message was: null"

The weird part is this is within a try/catch statement and this is the 2nd catch of this statement. For some reason it's falling through this catch, even though the error message is null.

Has anybody ever seen this before? It seems to not happen 100% of the time, and always on an SFDC to Siebel integration.


Beginning of try with code to log into sfdc, get contact fields and update siebel with them.
}//end overall try
catch (UnexpectedErrorFault uef)
{
out.println("ERROR\nERROR\nERROR\n" + uef.getExceptionMessage());

loggedIn = false;
}//end catch
catch (Exception ex)
{
out.println("\n974Failed to execute query succesfully, error message was: " + ex.getMessage());

loggedIn = false;
}//end catch
EnderEnder
try ex.printStackTrace() may give you a better message.
dgrokosdgrokos


Ender wrote:
try ex.printStackTrace() may give you a better message.


Thanks! It was the fact that i was setting a null value in Siebel. Once I checked for null and skipped the write to Siebel if it was null, it works!

Thanks!
Mark