Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Invoice posting batch already scheduled, but query didn't change after being edited...

(0) ShareShare
ReportReport
Posted on by 1,085

Hi,

in our company we got a nightly batch for Invoice Posting. It uses the standard SalesFormLetter_invoice class.

It's already scheduled to be executed each night.

I had to modify the query (with the user form, nothing has been hardcoded with X++) to exclude some customers, but the next execution has run with the old query. How do I "refresh" it with the new query instead? If i look in the BatchJobs form I already see the new version of the query, but somehow the class still fetches the old one..

Any hint?

Thank you in advance

regards

*This post is locked for comments

  • vv1984 Profile Picture
    vv1984 1,085 on at
    RE: Invoice posting batch already scheduled, but query didn't change after being edited...

    Yes, the query has been edited by the same user. Maybe withholding the old batch and schedule a new one is the best solution in this case.

    Thank you

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Invoice posting batch already scheduled, but query didn't change after being edited...

    Hi guess,

    1. change the batch job status to withhold or probably you can stop the batch job on your confirmation.

    2. you need to do Incremental Run,

    3. add your process job once again and check.

    Please correct me if I'm wrong.

  • Verified answer
    Dick Wenning Profile Picture
    Dick Wenning 8,705 on at
    RE: Invoice posting batch already scheduled, but query didn't change after being edited...

    did you change the query with the same user that original build the batch.

    pack and unpack is user related on the query in those scenarios

  • Verified answer
    Bilal Issa Profile Picture
    Bilal Issa 4,370 on at
    RE: Invoice posting batch already scheduled, but query didn't change after being edited...

    Hi ,

    you can set the the old batch job to be withhold and create new one with new query, or reset usage data for the account created the batch job.

    Best Regards,

    Bilal

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans