+ Start a Discussion
Pavan WaghmodePavan Waghmode 

INVALID_TYPE: sObject type 'Opportunity' is not supported

Hi Guys,

I am trying to fetch metadata of Opportunity object using describeSObject and I am getting bellow error.

INVALID_TYPE: sObject type 'Opportunity' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

Is there any impact if we create new record type and set its as default. 
Ravi Dutt SharmaRavi Dutt Sharma
Hey Pavan,

I guess that your class is with sharing class. So please check for below points :
1) Does running user has access to Opportunity object?
2) Is the running user API enabled?
Pavan WaghmodePavan Waghmode
Hey ravi
Thanks for your time..

I am not using apex class so i dont think that here is problem about with sharing class. I am integrating salesforce to other customer application using SOAP api in .net. 
There i used partner WSDL that working fine for other instance. Problem with only one customer instance

Also i allready enabled API for running user.
Temoc MunozTemoc Munoz

Temoc Munoz
Hi Pavan.

Have you tried downloading the latest Partner wsdl?
Have you tried using the Enterprise wsdl?
Do you have the correct wsdl? (i.e. Sandbox or Production) The wsdl should tell you which organization you're using. '