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 :
Supply chain | Supply Chain Management, Commerce
Suggested Answer

How are ISVs handling data correction and order blockage issues in D365?

(0) ShareShare
ReportReport
Posted on by 12

Hi everyone,

I’m looking to understand how different ISVs and companies working with Microsoft Dynamics 365 are handling data correction scenarios, especially in production environments.

Specifically:

  • How do you deal with corrupted or inconsistent records where the root cause is unclear?
  • What approaches do you follow when direct data fixes (e.g., updating table values) become necessary?
  • How do you handle order processing blockages caused by strict business rules or validation errors in the UI?
  • Are there any standard frameworks, tools, or best practices you follow for safe data correction?
 

I’m particularly interested in:

  • Governance and approval processes

  • Use of scripts, jobs, or data entities for corrections

  • Preventive measures to avoid such issues

    Would love to hear real-world strategies, lessons learned, or patterns that have worked well in your implementations.

    Thanks in advance!

  •  
I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,669 Super User 2026 Season 1 on at
    Hi,
     
    This is a great question. I have worked at several vendors delivering ISV solutions. I will provide my own opinion.
     
    • In case the root cause is unclear, as an ISV, I would not provide any correction script. First, the culprit should be identified. Then you can decide who is responsible for the data corruption. Maybe a client did manipulate data themselves.
    • In case a data repair script is required, there are various options. In case there is a data entity, the client can use it to import data that corrects records, otherwise:
      • Create deployable package with a single runnable class that can be used to run X++ scripts in Dynamics 365. This has an user interface requiring testing and approval prior to running the script with actual writes to the application. 
      • Create a class that will be part of the full solution. A class runner can be used to execute the logic.
      • Create a class, extending SysSetupAsync. This will run automatically as part of a database synchronization.
         
    • What exactly do you mean by order processing blockages?
    • When creating scripts, try to reuse existing logic as much as possible. In case data corruption is in standard tables, where no ISV coding is involved, let the organization contact Microsoft Support for ways how to correct the data.
     
     
  • CU12110525-0 Profile Picture
    12 on at

    Thanks for the insights shared so far.

    Currently, we are using custom X++ scripts for handling data corrections in D365. However, our goal is to move towards a more standardized and governed framework for managing these scenarios.

    What we are trying to achieve:

    • Establish a centralized framework for performing data corrections
    • Ensure all corrections are traceable, logged, and auditable
    • Minimize dependency on direct SQL scripts to reduce risk
    • Improve turnaround time for critical production fixes

      How can these goals be effectively achieved in D365?

      As a D365 user, what approaches, tools, or frameworks do you use to manage, track, and govern data corrections while ensuring auditability and minimal risk?

      Additionally, to clarify one of the key scenarios:

      By order processing blockage, I mean cases where — due to corrupted or inconsistent data — a transaction (e.g., a sales order) is stuck and unable to progress to the next status.

              In such situations, the expectation is not just to fix a single field, but to:

     
    • Apply corrections in a way that allows the order to continue through its lifecycle
    • Ensure all related records and downstream data are created or updated correctly
    • Mimic the behavior of standard system processing, as if the transaction had progressed normally
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,669 Super User 2026 Season 1 on at
    Hi,
     
    There is already a framework. The first option I mentioned is about creating a runnable class that can be imported in the client without downtime. You can read more about it here: Run custom X++ scripts with zero downtime - Finance & Operations | Dynamics 365 | Microsoft Learn
    This has full logging and traceability.
  • Suggested answer
    Mallesh Deshapaga Profile Picture
    1,711 on at
    In D365 F&O, if you need to correct records, fix corrupted data, or resolve data inconsistencies, you can use the following options:

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 > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 254

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 188 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 131 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans