Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

PriceListService throws exception CustAccount is not a field in data source SalesPrice

$
0
0

I have setup the PriceListService webservice on an inbound port. 

I have the following c# code calling it.

            PriceListServiceClient client = new PriceListServiceClient();
            CriteriaElement[] criteriaElement = new CriteriaElement[1];
            criteriaElement[0] = new CriteriaElement();
            criteriaElement[0].DataSourceName = "SalesPrice";
            criteriaElement[0].FieldName = "CustAccount";
            criteriaElement[0].Operator = Operator.Equal;
            criteriaElement[0].Value1 = "9100";
            QueryCriteria queryCriteria = new QueryCriteria();
            queryCriteria.CriteriaElement = criteriaElement;
            CallContext callContext = new CallContext();

            var found = client.find(callContext, queryCriteria);
            client.Close();

When calling the service I get the exception "CustAccount is not a field in data source SalesPrice" which is very strange because when I look at the AOT it is a field in SalesPrice.

Any ideas what's going on, or directions on how to debug this service would be appreciated


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>