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)
Answered

Change batch job user

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,917 Super User 2025 Season 2 on at

    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();

    }

  • Community Member Profile Picture
    on at

    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
    Denis Macchinetti Profile Picture
    16,444 on at

    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
    on at

    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.

  • Community Member Profile Picture
    on at

    Excellent - thank you both! Worked perfectly.

  • Community Member Profile Picture
    on at

    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.

  • commando001 Profile Picture
    46 on at

    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.

  • Suggested answer
    bnorma01 Profile Picture
    119 on at

    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.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans