web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Wrong script dependencies in the data upgrade cockpit [AX2012]

(0) ShareShare
ReportReport
Posted on by 510

Hello all,

 

I'm currently performing a data upgrade on AX2012 RTM CU3 using the data upgrade cockpit. When executed, the cockpit schedules scripts into batchjob/batchs and add constraints between them, depending on which tables being used by the scripts, etc..

 

What I've understood of the white paper on How to write Data upgrade scripts, is that there are several phases separated by "transition scripts". Transition scripts are managing the dependencies between script types and script modules.

A simplified typical flow would be:

1. Bulkcopy scripts

     1.1. Transition script (depending on all the 1)

2. Start scripts (depending on 1.1)

    2.1 Transition script (depending on all the 2)

3. Standard/ Shard scripts (depending on 2.1)

    3.1. Transition script (depending on all 3)

4. Final scripts

    ....

 

I've encountered a problem on the Start scripts (line in bold above) where I can see on the batch job, start scripts not depending on anyone. So, when I launched the upgrade, some bulk scripts are starting to run and some (not all) start scripts are running too, without waiting for the end of the bulk !!

 

I've got on particular script on RelaseUpdateDB60_Administration::updateTableIndexes() (which synchronize non affected tables) that is in that case. In the batch form of AX, this batch doesn't have any batchconstraints and so, it is being executed first.

 

I'd like to know if someone has already experienced a similar issue of scripts not running in a appropriate time. It's also quite dangerous, because I cannot rely on the system to check if all constraints have been created.

Plus, it seems difficult to understand how it works because the cockpit is very complex

 

Thanks for you help !

 

Nicolas

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Nicolas GRANJON Profile Picture
    510 on at

    Ok I got some fresh new, I was all wrong ! :)

    Apparently, there is not a real barrier between start script and bulkcopy, as post-scripts begin as soon as dependent tables are bulk copied

    For the RelaseUpdateDB60_Administration::updateTableIndexes() job, it does a synchro of non BULKCOPIED tables (and not "not affected tables" as I said earlier) So, it is ok that this job runs before

    I'm still fighting with custom scripts written in the last minute, because some of them aren't taken into account in the cockpit, maybe because of a lack of compilation or CIL compilation, and it seems difficult to reload jobs easlily when scripts aren't loaded correctly

    Anyway, I've restarted the checklist from the beginning from a previous backup and i'm expecting the results very soon.

  • Verified answer
    Kevin Kidder Profile Picture
    Microsoft Employee on at

    Nicolas - if you added extra scripts after running the initial Pre-Synch scripts on the checklist, they won't get added to the list of methods displayed in the cockpit. We build that list of scripts and dependencies at the time the first cockpit is opened, which is at that pre-synch stage. The "building" of the script list that you see in the Launch Data Upgrade cockpit is where we create individual jobs per company for each of the standard scripts, but they rely on the script listing and dependency listing created back at the pre-synch script level.

    And you were right on the mark with your revised answer about bulkcopy not needing to wait for the Start scripts to complete. The updateTableIndexes will only do tables that are not bulk copied - indexes are added to the bulk copy tables after the data is inserted by the bulk copy jobs.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans