
Hi Experts!
I have create a custom document service around InventSum table to fetch some records. Everything was going good but suddenly getting following error when I call this service to fetch records from Dynamics AX 2012 R3.
Function InventAvailabilityProvider.find has been incorrectly called
I am consuming these service in a .NET application, my code looks like this:
var callContext = new Adapters.Ax.AxServices.CallContext();
callContext.Language = "en-us";
callContext.Company = "****";
callContext.MessageId = Guid.NewGuid().ToString();
client.ClientCredentials.Windows.ClientCredential.Domain = "****";
client.ClientCredentials.Windows.ClientCredential.UserName = "****";
client.ClientCredentials.Windows.ClientCredential.Password = "****";
var criteria = new QueryCriteria();
var elementsList = new List<AxServices.CriteriaElement>() {
new AxServices.CriteriaElement(){
DataSourceName = "InventSumTable", FieldName = "ItemId",
Operator = AxServices.Operator.Equal, Value1 = "321.9999.91B"
}
};
var items = client.find(callContext, criteria);
Is there anything I can look into? I have tried updating the service and created new one as well but no success. Any help is much appreciated.
Thanks
Siddiqui
*This post is locked for comments
I have the same question (0)