Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

Posted on by 1,289

Hi,

Costing version can be run either from Released Products or from Inventory management\Periodic.

When running from Released products, the batch process is run successfully but when run from Inventory Management\Periodic,

batch process is throwing the below error. Ended ones are from Released Products and error from Inventory Management\Periodic.

NEWTESTAOS1_5F00_Costing-Version_5F00_BatchError.png

what could be the reason for throwing error when running from Periodic and how to fix this?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    Hi Lakshmi ,

    I am facing the same error ,Where you ale to fix this error ? Please let me know if there is a solution .

  • Lakshmi Karambakkam Profile Picture
    Lakshmi Karambakkam 1,289 on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    Hi,

    As  http://dynamics-ax-live.blogspot.com/2011/03/what-about-error-corresponding-aos.html

    The aosValidationInsert is failing in Tables\BatchConstraints. Its because its expecting 2 records in Tables\batch whereas there is only 1 record getting created in Tables\Batch.

    Not sure why batch is not creating another record. Any ideas how to fix this?

    The solution mentioned in the blog is to check user permissions.

    Please guide me the path... where we need to check if the required user permissions are assigned or not? if not, how to assign them?

    BatchConstraints_5F00_aosvalidateInsert.png

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    It's well documented here [View:https://docs.microsoft.com/en-us/dynamicsax-2012/developer/debugging-in-microsoft-dynamics-ax-2012#batch-jobs]

  • Lakshmi Karambakkam Profile Picture
    Lakshmi Karambakkam 1,289 on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    since this process is running on batch, is there a instruction list on how to debug on batch server?

  • Lakshmi Karambakkam Profile Picture
    Lakshmi Karambakkam 1,289 on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    this did not resolve my problem. any other way of finding will be useful.

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    Put a break-point there and see what is wrong, if you don't know how - ask your developer to help you.

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: cannot create a record in Has Conditions (batch Constraints). the corresponding AOS violation failed.

    Hi Lakshmi Karambakkam!

    Check this link: http://dynamics-ax-live.blogspot.com/2011/03/what-about-error-corresponding-aos.html

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans