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
GaganGagan 

'multipicklist' is not a valid value for fieldType.

Hi Dev,

I am aceesing partner 4.0 from c# and this exception came.


 "'multipicklist' is not a valid value for fieldType." 



I was requesting describeSObjectResult for account (to pick up values from some picklists (not multipicklist) , and exactly after describeSObjectResult call this exception was thrown. The account entity for this login has 1 miltipicklist field.

What went wrong, as this same arrangement works fine for Leads.


below are the details for the exception that i copied from watch window.

Thanks in advance,

Gagan,



========================Detials==========================

- ex1 {"There is an error in XML document (2549, 32)." } System.Exception
+ [System.InvalidOperationException] {System.InvalidOperationException} System.InvalidOperationException
 System.Object {System.InvalidOperationException} System.Object
 _className null string
 _COMPlusExceptionCode -532459699 int
 _exceptionMethod <undefined value> System.Reflection.MethodBase
 _exceptionMethodString null string
 _helpURL null string
 _HResult -2146233079 int
- _innerException {"'multipicklist' is not a valid value for fieldType." } System.Exception
- [System.InvalidOperationException] {System.InvalidOperationException} System.InvalidOperationException
+ System.SystemException {"'multipicklist' is not a valid value for fieldType."} System.SystemException
 System.Object {System.InvalidOperationException} System.Object
 _className null string
 _COMPlusExceptionCode -532459699 int
+ _exceptionMethod {System.Reflection.RuntimeMethodInfo} System.Reflection.MethodBase
 _exceptionMethodString null string
 _helpURL null string
 _HResult -2146233079 int
 _innerException { } System.Exception
 _message "'multipicklist' is not a valid value for fieldType." string
 _remoteStackIndex 0 int
 _remoteStackTraceString null string
 _source "8gabjkd7" string
- _stackTrace {System.Array} System.Object
==============================================================================

benjasikbenjasik
Sounds like you might be using a 3.0 WSDL with the 4.0 endpoint?

In your WSDL under the field Type definitions:



Is there an entry for multipicklist?

GaganGagan
Hi Ben,

Sorry, its not 3.0 with 4.0 end point, its actully 4.0 partners, although 3.0 works fine with multipicklist as it returns fieldtype as string for multipicklist fieldtype.

and yes the fieldtype definitions has miltipicklist as field type entry.

Thanks
benjasikbenjasik
I have been able to do this successfully in C#.

Can you see if multipicklist is in the generated proxy?

When you say 4.0, you are re-importing the 4.0 WSDL to run this test and having .NET rebuild the proxy?
GaganGagan
Hi Ben,

Interestingly, the problem i was facing is gone now without any efforts from my side.

Thanks