Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Change batch job user

Posted on by Microsoft Employee

I have a user who has left the company, but set up the following batch jobs to run in each company. {Journalize finalized product receipts}. I have deleted and recreated all the other jobs created by this user, but can't find any reference for this one. It appears to be created from one of the journal entries but I can't find out which one. From on line searches one suggestion was under warehouse management\ finalize product receipts, however no such item exists. This is on AX2012 R2 CU7. Any suggestions?  I know this "could" be corrected directly from SQL but have found no scripts for changing the userid and SID..

*This post is locked for comments

  • Suggested answer
    bnorma01 Profile Picture
    bnorma01 119 on at
    RE: Change batch job user

    Try this:

    community.dynamics.com/.../modify-a-batch-job-39-s-created-by-user-after-it-is-saved

    I have also changed the company on the batch job table but i would test this first.

  • commando001 Profile Picture
    commando001 46 on at
    RE: Change batch job user

    Also to add, you have to change the company each time you run the script to have the batch jobs created on the current company that you are in. For instance if you are in company XYZ run the script which will create the batch job in XYZ, change to ABC and then run the script to have it created in ABC.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change batch job user

    Denis, is it necessary to delete all journlize product receipt batch jobs prior to running the create option?  I have deleted a few companies in my Contoso data and ran the job to create.  The journalize product receipt batch jobs, for the companies deleted, do not appear.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change batch job user

    Excellent - thank you both! Worked perfectly.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change batch job user

    I ran into this with another batch job (created at company creation) but was able to run a wizard to re-create them. I has a suspicion these were this way also - I will delete it from one company and try logging out of AX and back in to it, run the script and will advise. Thanks much.

  • Verified answer
    Denis Macchinetti Profile Picture
    Denis Macchinetti 16,444 on at
    RE: Change batch job user

    Hi Kevin

    In addition to what André said, , this job is created automatically after the creation of each company.

    In detail is created by the Find method of the LedgerParameters Table together to other default tasks.

    So, you can DELETE this Batch for each company, login to AX with the proper user and running the job provide by André.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change batch job user

    I created a job per your example but it produced nothing in the batch jobs. Am I perhaps missing a parameter? I wish I knew where the user had invoked the batch from.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,253 Super User 2024 Season 2 on at
    RE: Change batch job user

    Hi Kevin,

    Indeed this job cannot be selected manually.

    You can create a job where you can call the static method 'createBatchJob' from the class ProdReceiptFinalization.

    This will add the batch job.

    e.g.:

    static void ProdReceiptBatch(Args _args)

    {

       ProdReceiptFinalization::createBatchJob();

    }

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans