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
ElmoElmo 

Invalid Type sObject Error

I have some custom objects in our instance. I can run a query through APEX and get results. But when I run the same query through my .NET code (I have the latest WSDL and updated my web reference) , there is soap exception saying that the object is invalid. Here is is error : urn:fault.enterprise.soap.sforce.com:INVALID_TYPEINVALID_TYPE: sObject type 'XXXX_XXX_XX__c' is not supported.

 

Am I doing something wrong ? or is there some quirk I need to know.

 

Please help !!!

AlwaysConfusedAlwaysConfused

I assume you can do this ....

 

Custom_Object__c obj = new Custom_Object__c();

obj.Property = "value";

 

...

 

If you can then the problem is not your code (seemingly).

 

I would be inclined to look at the raw WSDL xml data and see whats in it (by logging in to SF and browsing to it), is your custom object there?

 

This does seem a bit odd though.