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
PauloPaulo 

Creating Contract "FAILED_ACTIVATION" error

Hello,
I am trying to create an contract on an account with an API call and am receiving the following status code "FAILED_ACTIVATION". I am setting the Status to "Pending" not "To Activate" so I'm not sure why I getting this error. Any help would be greatly appreciated.
 
Thanks in advance,
Paulo
HardhatHardhat
From the docs:

Client applications must initially create a Contract in a non-Activated state. Client applications can subsequently activate a Contract by calling update and setting the value in its Status field to Activated; however, the Status field is the only field that the client application can set in the update call when activating the Contract.

(http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contract.htm)
HardhatHardhat
Also, make sure the Status Category of "Pending" is not "Activated" when you look at the Contract's Status field in Setup.