web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Function InventAvailabilityProvider.find has been incorrectly called

(0) ShareShare
ReportReport
Posted on by

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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans