分析和获取Salesforce订单查询的查询元数据失败错误

分析和获取Salesforce订单查询的查询元数据失败错误,salesforce,mule,soql,anypoint-studio,Salesforce,Mule,Soql,Anypoint Studio,我对Salesforce中的Order对象有一个基本的SELECT查询,它是从Mule中的Salesforce连接器调用的。查询是使用Salesforce connector中的DataSsense query Builder生成的,但我不断收到一个错误“解析和获取查询元数据失败”,当我尝试编辑查询时,我看到以下错误消息框“*格式不正确的DataSsense查询语言表达式。请检查您的查询“ 我不明白为什么会发生这种情况,因为查询是使用查询生成器而不是手动生成的,如果我在Salesforce中为A

我对Salesforce中的Order对象有一个基本的SELECT查询,它是从Mule中的Salesforce连接器调用的。查询是使用Salesforce connector中的DataSsense query Builder生成的,但我不断收到一个错误“解析和获取查询元数据失败”,当我尝试编辑查询时,我看到以下错误消息框“*格式不正确的DataSsense查询语言表达式。请检查您的查询“

我不明白为什么会发生这种情况,因为查询是使用查询生成器而不是手动生成的,如果我在Salesforce中为Account对象创建查询,我不会得到错误,因此不确定Order何时会给我错误

有人知道是什么导致订单查询失败吗

我还发现,当我切换到本机查询语言而不是DataSsense查询生成器时,它最初可以工作,但后来开始返回图形错误

简单的Mule流程给了我同样的错误:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:sfdc="http://www.mulesoft.org/schema/mule/sfdc" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:apikit="http://www.mulesoft.org/schema/mule/apikit" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/apikit http://www.mulesoft.org/schema/mule/apikit/current/mule-apikit.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.mulesoft.org/schema/mule/sfdc http://www.mulesoft.org/schema/mule/sfdc/current/mule-sfdc.xsd">
    <http:listener-config name="myTest-httpListenerConfig" host="0.0.0.0" port="8081" doc:name="HTTP Listener Configuration"/>
    <apikit:config name="myTest-config" raml="myTest.raml" consoleEnabled="true" consolePath="console" doc:name="Router"/>
    <sfdc:config name="Salesforce__Basic_Authentication" username="${sf.user}" password="${sf.pwd}" securityToken="${sf.token}" doc:name="Salesforce: Basic Authentication"/>
    <flow name="myTest-main">
        <http:listener config-ref="myTest-httpListenerConfig" path="/api/*" doc:name="HTTP"/>
        <apikit:router config-ref="myTest-config" doc:name="APIkit Router"/>
        <exception-strategy ref="myTest-apiKitGlobalExceptionMapping" doc:name="Reference Exception Strategy"/>
    </flow>

    <flow name="get:/orders:myTest-config">
        <sfdc:query config-ref="Salesforce__Basic_Authentication" query="dsql:SELECT Id FROM Order" doc:name="Salesforce"/>

    </flow>

    <apikit:mapping-exception-strategy name="myTest-apiKitGlobalExceptionMapping">
        <apikit:mapping statusCode="404">
            <apikit:exception value="org.mule.module.apikit.exception.NotFoundException" />
            <set-property propertyName="Content-Type" value="application/json" doc:name="Property"/>
            <set-payload value="{ &quot;message&quot;: &quot;Resource not found&quot; }" doc:name="Set Payload"/>
        </apikit:mapping>
        <apikit:mapping statusCode="405">
            <apikit:exception value="org.mule.module.apikit.exception.MethodNotAllowedException" />
            <set-property propertyName="Content-Type" value="application/json" doc:name="Property"/>
            <set-payload value="{ &quot;message&quot;: &quot;Method not allowed&quot; }" doc:name="Set Payload"/>
        </apikit:mapping>
        <apikit:mapping statusCode="415">
            <apikit:exception value="org.mule.module.apikit.exception.UnsupportedMediaTypeException" />
            <set-property propertyName="Content-Type" value="application/json" doc:name="Property"/>
            <set-payload value="{ &quot;message&quot;: &quot;Unsupported media type&quot; }" doc:name="Set Payload"/>
        </apikit:mapping>
        <apikit:mapping statusCode="406">
            <apikit:exception value="org.mule.module.apikit.exception.NotAcceptableException" />
            <set-property propertyName="Content-Type" value="application/json" doc:name="Property"/>
            <set-payload value="{ &quot;message&quot;: &quot;Not acceptable&quot; }" doc:name="Set Payload"/>
        </apikit:mapping>
        <apikit:mapping statusCode="400">
            <apikit:exception value="org.mule.module.apikit.exception.BadRequestException" />
            <set-property propertyName="Content-Type" value="application/json" doc:name="Property"/>
            <set-payload value="{ &quot;message&quot;: &quot;Bad request&quot; }" doc:name="Set Payload"/>
        </apikit:mapping>
    </apikit:mapping-exception-strategy>
</mule>


谢谢您的帮助

您好,您找到解决方案了吗?我也有同样的错误…,嗨,你找到解决办法了吗?我也有同样的错误。。。,