Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

i need to know when i should do full sync database on AX 2012 R2

Posted on by 10,270

i am facing a terrible problem while trying to do request from SOAPUI to retrieve some records from AX AIF Service and i found that there are some records not retrieved as it exists in AX so is it possible to do full sync to let this issue be finally solved??

Please anybody advise urgently.

*This post is locked for comments

  • Suggested answer
    Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    Solved

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    Whoever faces this issue , kindly be notified that the solution is to do full sync of the database to avoid these kinds of issues.

  • Suggested answer
    Khurshid Wali Profile Picture
    Khurshid Wali 922 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    When you execute it in AX you get whole records it means your query is correct.

    And giving different result in a different environment.

    I am not wrong you run your Query with Admin role which bypasses all the securities.

    Now find the patterns in the records fields. (between rows in AX and through AIF)

    eg.

    Company, partition, Warehouse (if applicable) etc.

  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    Good, so here is the next step in the debugging process: what if you call the service without specifying any criteria?

    Also, in which company did you run the query and what's your default company?

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    Yes, I did and it gets the whole records

  • Martin Dráb Profile Picture
    Martin Dráb 230,149 Most Valuable Professional on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    If your statement "the query is AXInventoryOnhand" means that you're using the AIF document service 'Inventory on hand' and that the query used by this document service is 'AXInventoryOnhand'?

    If so (despite the fact that the name looks wrong to me), what happen if you follow the other part of my advice and execute this query in AX? Do you get the records you expect?

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    If security is an issue , how the records all retrieved correctly when I transferred the production db to another server ?

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    As mentioned above, security could be one explanation. I'm also waiting for more information from your side before I can give more comments.

  • Codehunter Profile Picture
    Codehunter 10,270 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    As I said that when I transferred the db to another server , it worked well but on the production server, the records aren't retrieved so what do u consider this case ?

  • Khurshid Wali Profile Picture
    Khurshid Wali 922 on at
    RE: i need to know when i should do full sync database on AX 2012 R2

    If the service is built-in tell us the names and your AX version. It would be easy for others to understand your situation.

    There could be multiple reasons for missing records

    1. XDS security

    2. ValidTimeState

    3. Filters

    etc.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans