Sales Force with TeiidEmbedded
jchidiac Sep 2, 2014 3:13 AMHi,
I'm using to connect to sales Force via Teiid Embedded server,
my teiid version is 8.8
when i execute this query :
select distinct YEAR("Opportunity"."CloseDate") as "Opportunity_CloseDate1"
from "SalesForceInstanceModel".Campaign "Campaign"
LEFT OUTER JOIN "SalesForceInstanceModel".Opportunity "Opportunity" ON "Campaign"."Id" = "Opportunity"."CampaignId"
order by YEAR("Opportunity"."CloseDate") ASC LIMIT 0 , 32
i got the following error :
Sep 02, 2014 10:12:17 AM org.teiid.logging.JavaLogger log
WARNING: Connector worker process failed for atomic-request=jlO/UrauRUbj.0.3.599
org.teiid.translator.TranslatorException: com.sforce.soap.partner.InvalidSObjectFault: INVALID_TYPE:
(SELECT Opportunity.CloseDate FROM Opportunitys) FROM Campaign
^
ERROR at Row:1:Column:43
Didn't understand relationship 'Opportunitys' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
at org.teiid.translator.salesforce.execution.QueryExecutionImpl.execute(QueryExecutionImpl.java:162)
at org.teiid.dqp.internal.datamgr.ConnectorWorkItem.execute(ConnectorWorkItem.java:326)
at org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:298)
at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:110)
at org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:107)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)
at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:274)
at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)
at org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:214)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.resource.ResourceException: com.sforce.soap.partner.InvalidSObjectFault: INVALID_TYPE:
(SELECT Opportunity.CloseDate FROM Opportunitys) FROM Campaign
^
ERROR at Row:1:Column:43
Didn't understand relationship 'Opportunitys' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
at org.teiid.resource.adapter.salesforce.SalesforceConnectionImpl.query(SalesforceConnectionImpl.java:194)
at org.teiid.translator.salesforce.execution.QueryExecutionImpl.execute(QueryExecutionImpl.java:148)
... 12 more
Caused by: com.sforce.soap.partner.InvalidSObjectFault: INVALID_TYPE:
(SELECT Opportunity.CloseDate FROM Opportunitys) FROM Campaign
^
ERROR at Row:1:Column:43
Didn't understand relationship 'Opportunitys' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
at sun.reflect.GeneratedConstructorAccessor930.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:144)
at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:253)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:181)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:258)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:117)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:91)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
at com.sun.proxy.$Proxy226.query(Unknown Source)
at org.teiid.resource.adapter.salesforce.SalesforceConnectionImpl.query(SalesforceConnectionImpl.java:187)
... 13 more
Sep 02, 2014 10:12:17 AM org.teiid.logging.JavaLogger log
WARNING: TEIID30020 Processing exception for request jlO/UrauRUbj.0 'TEIID30504 SalesForceInstance: com.sforce.soap.partner.InvalidSObjectFault: INVALID_TYPE:
(SELECT Opportunity.CloseDate FROM Opportunitys) FROM Campaign
^
ERROR at Row:1:Column:43
Didn't understand relationship 'Opportunitys' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.'. Originally TeiidProcessingException sun.reflect.GeneratedConstructorAccessor930.newInstance(Unknown Source). Enable more detailed logging to see the entire stacktrace.