What do I have:

  1. custom object my__customObject__c from managed package. It is deployed.
  2. service built using Enterprise WSDL.
  3. Partial Copy sandbox

Service tries to execute 'SELECT Id FROM my__customObject__c' query using Administrator account (so there should be no problem with permissions)

It works perfectly in production, but fails in sandbox with:

INVALID_TYPE: sObject type 'my__customObject__c' is not supported.

I tried to execute the same query using 3rd party tools and sandbox credentials (that I suppose uses Partner WSDL), and it executes perfectly.

UPD1. there is also custom object 'customObject__c'

  • 2
    did you try the same query without namesepace? – Ashwani Jan 12 '16 at 9:59
  • try like SELECT Id FROM customObject__c – Ratan Paul Jan 12 '16 at 10:01
  • @Ratan there is another custom object with name customObject__c – John Jan 12 '16 at 11:37
  • @Ashwani object name without namespace is ambiguous. so I cannot query it. There are my__customObject__c in 'my' package and customObject__c – John Jan 12 '16 at 11:38
  • 1
    After downloading latest WSDL and regenerating SOAP client code I found query is executed on production and sandbox instances. But I cannot found any explanation for that, my__customObject__c node in WSDL hasn't been changed. – John Jan 12 '16 at 19:30

Browse other questions tagged or ask your own question.