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
himanshunath@gmail.comhimanshunath@gmail.com 

UNKNOWN_EXCEPTION: on SetPassword call

We are experiencing some UNKNOWN_EXCEPTION issues in soem cases when our partners are trying to rest thier password . Have a Php Porral where our partners login for the salesforce PRM and do teh deal registration.

 

We have a funtionality where Partner can clink of forget password to reset their password. Below is teh code snippet is beinged to make teh call to salesforce for setting partner user password.

 

 

Calls made to salesforce

 

define("SOAP_CLIENT_BASEDIR", "sites/all/libraries/salesforce/toolkit/soapclient");

$sf_info = salesforce_info(); // gets our credentials

require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');

$mySforceConnection = new SforceEnterpriseClient();

$mySoapClient = $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');

$mylogin = $mySforceConnection->login($sf_info['username'], $sf_info['password']);

$mySforceConnection->setPassword($sf['sf_user_id'], $_POST['pass_2']);

 

 

Most of the cases it works for us. but in some cases , we are getting below exception

"UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 277723604-12236 (2099002656) in SoapClient->__call()"

 

Any one has experienced similar problem , can through some lights ?

 

I have also created a ticket with Salesforce for help and I am trying to extend the post for anyone in the developer forum can help here.

 

Thanks