You need to sign in to do that
Don't have an account?
gsmithfarmer
partnerAPI.describeSobjects() returns inconsistent results for some custom tables.
I have found a SFDC Instance where the following two calls give a different list fields for table abc_c.
DescribeSObjectResult rr[] = partnerAPI.describeSObjects( new String[] { "abc__c" });
DescribeSObjectResult rr[] = partnerAPI.describeSObjects( new String[] { "abc__c", "def__c" });
The answer is correct when a single object is described but sometimes contains phantom fields (LastViewedDate and LastReferencedDate are the two examples) when multiple objects are described in a single call.
Naturally I have an short application (in an eclipse project) that demonstrates the problem. Getting a response from standard SFDC support is a different issue. I have seen this issue once before, around a year ago, from a client in South Africa. They had premier support and after a few weeks SFDC fixed the issue. My current client does not have premier and SFDC's response is the basic "post it to the forums and maybe development will see it"
I've done a lot of java API SFDC work (3 are commercial products -- CopyStorm, CopyStorm/Restore, and SQLForce) and absolutely sure that the API is returning inconsistent field lists.
DescribeSObjectResult rr[] = partnerAPI.describeSObjects( new String[] { "abc__c" });
DescribeSObjectResult rr[] = partnerAPI.describeSObjects( new String[] { "abc__c", "def__c" });
The answer is correct when a single object is described but sometimes contains phantom fields (LastViewedDate and LastReferencedDate are the two examples) when multiple objects are described in a single call.
Naturally I have an short application (in an eclipse project) that demonstrates the problem. Getting a response from standard SFDC support is a different issue. I have seen this issue once before, around a year ago, from a client in South Africa. They had premier support and after a few weeks SFDC fixed the issue. My current client does not have premier and SFDC's response is the basic "post it to the forums and maybe development will see it"
I've done a lot of java API SFDC work (3 are commercial products -- CopyStorm, CopyStorm/Restore, and SQLForce) and absolutely sure that the API is returning inconsistent field lists.
I tested this using the SoapUI tool and the LastViewedDate and LastReferencedDate fields are included in both the cases, when only one object is described and also when two objects are described. Is that not what you see?
Thanks,
Shashank