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 365 | Integration, Dataverse...
Answered

Deleted Records - Sales Order Lines

(5) ShareShare
ReportReport
Posted on by 50
We have an issue where our Business Central Integration ran a sychronisation job and randomly deleted over 1000 sales order lines from Orders in Dynamics 365 Sales.  Records had not been deleted in such a way before.  For Sales Order lines the default synchronisation settings were being used.  After we realised that the records had been deleted I changed the settings from bi-directional to only be from the integration table so that no further records were impacted.  I have not been able to find a way to get a list of the lines that were deleted so that they can be restored manually if Microsoft is not able to restore the records.  
 
Has anyone else had this issue at all?
 
I am also gobsmacked by the lack of support from Microsoft.  We have a support ticket entered in January that is labelled as business disruptive with no real assistance provided.  At first we had regular contact from a support agent from Asia that appeared to be helping and asked questions that seemed relevant.  This agent then had to hand over the ticket due to illness and it went to West Africa.   It seems the new agent has not read the history, correspondence or information provided and essentially wants to 'start over'.   After requesting that the agent go back over the information, and to only contact me by email so that I have a recorded history, I then received an email stating that he had tried to call me but was not able to get through (also on a public holiday in my country) and asking whether I had resolved the problem and needed any further assistance.  It seems to be a support process handling strategy, whereby regular contact is made to tick boxes, but no real support received.
 
We are not a large business and don't have the resources to spend time going over and over the same issue, while facing language barriers.  However we spend a significant amount on Microsoft products and expect better support.
Categories:
I have the same question (0)
  • Verified answer
    Tom_Gioielli Profile Picture
    2,792 Super User 2025 Season 2 on at
    I can't speak to the support issues, which sound frustrating.
     
    Do you have backups of your environments available that you can revert to and grab the deleted line items? You mentioned this happened back in January, so I'm not sure if the backup history is still able to get you back that far.
     
    If it is, you can copy your production instance to a new sandbox, then do the backup to the last date when your line items existed. This way you can at least export and validate all of the data, and then reimport it back into production.
     
     
    For future reference, you may want to look into enabling the newer Recycle Bin for Dataverse. This allows you to restore deleted records.
     
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at
    Hello Cavarra,
     

    This sounds like a truly alarming and frustrating situation. Losing that much sales order line data due to an unexpected synchronization issue is a serious problem, and the lack of effective support from Microsoft is adding insult to injury.

    To answer your questions and provide some guidance:

     

    Has anyone else had this issue at all?

    Yes, while not a widespread, common occurrence, there have been reports of unexpected data deletion or corruption issues arising from integrations between Dynamics 365 Sales and Business Central. These issues can be triggered by various factors, including:


    • Synchronization Mapping Errors: Even with default settings, subtle misconfigurations or unintended interpretations of data relationships during synchronization can lead to deletions.

    • Data Anomalies: Specific data inconsistencies or edge cases in either system might trigger unexpected behavior in the synchronization logic.

    • Integration Bugs: Although less frequent, bugs within the standard Business Central integration components could potentially cause such issues.

    • Timing or Concurrency Issues: In complex environments with high data volumes or concurrent processes, timing-related issues during synchronization might lead to unintended actions.

    The fact that you've never seen this behavior before highlights that it could be a specific, potentially rare scenario.

    I have not been able to find a way to get a list of the lines that were deleted so that they can be restored manually if Microsoft is not able to restore the records.

    This is a critical point. Unfortunately, Dynamics 365 Sales doesn't automatically maintain a detailed log of deleted records in a readily accessible format for end-users. Standard auditing often tracks deletions at the header level (e.g., a Sales Order being deleted), but not always the granular details of individual deleted child records like Sales Order Lines.

     

    Here are your limited options for potentially recovering a list of the deleted lines:

    1. Audit Logs (Limited Detail):

       

      • Navigate to Settings > Audit Log Management.

      • Review the audit logs within the relevant timeframe. Filter for the Sales Order Line (SalesOrderDetail) entity and look for "Delete" operations.

      • Limitation: The audit logs might only show when deletions occurred and possibly who triggered them (likely the Business Central Integration user), but they typically won't contain the specific details of the deleted lines (e.g., product, quantity, price).

    2. Business Central Logs (Potential Source):

      • Investigate the logs within your Business Central environment related to the synchronization job that ran. There might be more detailed information on the changes it intended to make, including deletions.

      • Work with your Business Central administrator or partner to examine these logs. The level of detail available will depend on the logging configuration in Business Central.

      •  

    3. Database Backups (If Available):

      • If you have recent database backups of your Dynamics 365 Sales environment, these backups would contain the deleted records. Restoring the entire environment or selectively extracting the deleted data from a backup would be the most reliable way to recover the lost information.

      • Check your organization's backup policies and procedures.

      •  

    4. Integration Mapping Review:

       

      • Carefully review the synchronization mappings between Sales Order Lines in Dynamics 365 and their corresponding entities in Business Central. Look for any mappings that could inadvertently trigger deletions based on specific conditions or null values.

      •  

    5.  

    Regarding the lack of support from Microsoft:

    Your experience with Microsoft Support sounds incredibly frustrating and unfortunately, not entirely uncommon. The issues you've highlighted – lack of history review, requests to start over, irrelevant contact attempts, and language barriers – are significant concerns for businesses relying on their products.

    Here are some steps you can consider to try and escalate or improve the support situation:

    • Escalate the Support Ticket:

      • Clearly and firmly request an escalation of your support ticket to a senior support engineer or a support manager.

      • Reference the long history of the ticket, the business-critical nature of the data loss, and the unsatisfactory level of support received so far.

      • Insist on a support agent who is familiar with Business Central and Dynamics 365 integration issues.

      •  

    • Provide a Concise Summary:

      • Prepare a clear and concise summary of the issue, including the timeline of events, the impact on your business, the steps you've already taken, and the lack of progress with the current support. This will help a new agent or a manager quickly understand the situation.

      •  

    • Demand a Dedicated and Knowledgeable Resource:

       

      • Specifically request a support engineer with proven experience in troubleshooting Business Central and Dynamics 365 Sales integration problems. Emphasize the need for someone who can understand the complexities of the synchronization process.

    • Leverage Your Microsoft Account Team (If Applicable):

       

      • If your organization has a dedicated Microsoft account manager or customer success manager, reach out to them. Explain the severity of the issue and the poor support experience. They may be able to intervene and expedite the resolution process.

    • Consider Alternative Support Channels:

      • Explore Microsoft's community forums or reach out to Dynamics 365 and Business Central partners who have expertise in integration issues. While they can't directly access your support ticket, they might offer valuable insights or suggestions based on similar experiences.

      •  

    • Document Everything:

      • Continue to document all communication with Microsoft Support, including dates, times, names of agents, and summaries of conversations. This record can be crucial if further escalation is needed.

      •  

    •  

    Moving Forward:

    1. Focus on Data Recovery: Prioritize your efforts on trying to recover a list of the deleted sales order lines through the methods mentioned above (especially Business Central logs and backups).

    2. Demand Effective Support: Don't give up on escalating your support ticket with Microsoft. Clearly communicate the urgency and the need for knowledgeable assistance.

    3. Thoroughly Review Integration Settings: Once the immediate crisis is addressed, conduct a comprehensive review of your Business Central and Dynamics 365 Sales integration settings and mappings to identify any potential areas of risk.

    4. Implement Robust Monitoring and Alerting: Consider implementing more proactive monitoring and alerting for your integration processes to detect anomalies or unexpected data changes early on.

    5.  

    Losing critical business data due to a synchronization issue is unacceptable, and the poor support experience you're facing is equally concerning. Keep pushing for the support you deserve and explore all avenues for data recovery. Good luck!

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • Cavarra Profile Picture
    50 on at
    Thankyou very much for so generously giving your time to respond to this issue.  It is greatly appreciated.

    Although I still have the issue, I will close out as answered because your information is so relevant and helpful, and I will work through each recommendation.
     
    Cheers

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 41 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 39

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans