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
eric_falskeneric_falsken 

SoapHeaderException when updating/creating Lead objects

This just started in the last few days, and I've got no clue as to what is causing it:

Could not resolve ColumnType from FieldOrColumnCommon: class common.udd.impl.StandardFieldCommonImpl

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Services.Protocols.SoapHeaderException: Could not resolve ColumnType from FieldOrColumnCommon: class common.udd.impl.StandardFieldCommonImpl

Source Error:

Line 629:        [return: System.Xml.Serialization.XmlElementAttribute("result")]
Line 630:        public SaveResult[] update([System.Xml.Serialization.XmlElementAttribute("sObjects")] sObject[] sObjects) {
Line 631:            object[] results = this.Invoke("update", new object[] {
Line 632:                        sObjects});
Line 633:            return ((SaveResult[])(results[0]));
This is truly annoying. The code above is generated by Visual Studio from the Enterprise API WSDL file that I downloaded.
eric_falskeneric_falsken
Turns out that this wonderful error is given when you specify a value for a calculated field like "Lead.Name". Make sure that your calculated fields are either unspecified or null when calling Create or Update.