web
You’re offline. This is a read only version of the page.
close
  • Automatically Apply Dependencies to Dynamically Created Batch Tasks in FormLetter Posting Jobs

    In Dynamics 365 Supply Chain Management, batch jobs related to sales order processing (e.g., SalesOrderConsumptionAndConfirmation) can dynamically create new tasks during runtime using FormLetterServiceController and related classes. However, these dynamically created tasks do not inherit the parent job's task dependencies, causing tasks to trigger out of sequence.


    This behavior leads to race conditions where tasks execute simultaneously instead of sequentially, resulting in:

    • Incorrect order processing
    • Task cancellations
    • Significant business impact, including lost sales


    We propose a product enhancement to ensure:

    • All dynamically created batch tasks automatically inherit appropriate dependencies, especially when part of a chain (e.g., Job1 → Job2 → Job3).
    • This would preserve execution order and maintain task integrity even when additional tasks are generated on the fly.


    This change would improve the reliability of complex posting jobs and reduce the need for custom solutions or manual workarounds.