Blog 10: Fixing Activity.RegardingObjectId Not Being Set

When working with activity records (such as Emails, Phone Calls, Appointments, and Custom Activities) in Dataverse, you might notice that the Regarding field sometimes shows "(No Name)" instead of the expected value. This issue occurs because the EntityReference.Name property is not automatically set by Dataverse when using plug-ins. 🚨 Known Issue: Symptom: The RegardingObjectId lookup … Continue reading Blog 10: Fixing Activity.RegardingObjectId Not Being Set

Blog 9: Resolving You Can’t Start a Transaction with a Different Isolation Level

Dataverse plug-ins run within a managed transaction, ensuring data consistency and rollback capabilities. However, attempting to manually create a transaction inside a plug-in can cause the following error: 🚨 Error Message: Error Code: -2147220989 Error Message: You cannot start a transaction with a different isolation level than is already set on the current transaction. This … Continue reading Blog 9: Resolving You Can’t Start a Transaction with a Different Isolation Level

Blog 8: Resolving The Given Key Wasn’t Present in the Dictionary

When working with Dataverse plug-ins, you may encounter the "The given key wasn’t present in the dictionary" error. This issue occurs when your plug-in code attempts to access a key that does not exist in the ParameterCollection or Entity.Attributes dictionary. In this blog, we’ll explore the causes of this error, how to debug it, and … Continue reading Blog 8: Resolving The Given Key Wasn’t Present in the Dictionary

Blog 7: Resolving Message Size Exceeded When Sending Context to Sandbox

Dataverse plug-ins are powerful tools for extending business logic, but sometimes, they run into issues that can disrupt operations. One such problem is the "Message size exceeded when sending context to Sandbox" error. This error occurs when a plug-in operation generates a message payload larger than 116.85 MB, causing it to fail. In this blog, … Continue reading Blog 7: Resolving Message Size Exceeded When Sending Context to Sandbox

Blog 6: Resolving Errors When Executing in the Context of a Disabled User

One of the common but often overlooked issues in Dataverse plug-ins is when a plug-in executes under a user context that has been disabled. This can result in errors that prevent the plug-in from completing its operation. In this blog, we’ll explore why this error occurs, how to troubleshoot it, and best practices to ensure … Continue reading Blog 6: Resolving Errors When Executing in the Context of a Disabled User

Blog 5: Handling User Privilege Errors in Dataverse Plug-ins

When developing Dataverse plug-ins, user privilege errors can be a common issue. These errors occur when a plug-in tries to perform an action that the executing user does not have permissions for. If not handled properly, permission issues can cause unexpected failures, disrupt business processes, and generate hard-to-debug errors. This blog will guide you through … Continue reading Blog 5: Handling User Privilege Errors in Dataverse Plug-ins

Blog 4: Resolving SQL Timeout Errors in Dataverse Plug-ins

When working with Dataverse plug-ins, SQL timeout errors can be a frustrating and difficult challenge. These errors indicate that a query has taken too long to execute, leading to failure. Understanding the root cause of these errors and optimizing queries is crucial for improving plug-in performance and ensuring system reliability. In this blog, we’ll cover:✅ … Continue reading Blog 4: Resolving SQL Timeout Errors in Dataverse Plug-ins

Blog 3: Handling Transaction Errors in Dataverse Plug-ins

Dataverse plug-ins often operate within transactions, ensuring that database operations are either fully completed or entirely rolled back in case of failure. However, improper error handling in plug-ins can cause transaction failures, leading to data inconsistency and unexpected behavior. In this blog, we will explore:✅ Common transaction errors in Dataverse plug-ins✅ How to prevent and … Continue reading Blog 3: Handling Transaction Errors in Dataverse Plug-ins

Blog 2: Debugging Dataverse Sandbox Worker Process Crashes

Dataverse plug-ins run within a sandbox environment, providing isolation and security. However, crashes in the Sandbox Worker Process can disrupt business logic, cause unexpected failures, and impact system stability. This blog explores: ✅ Why the Sandbox Worker Process crashes✅ Common causes and solutions✅ How to debug crashes using Application Insights ⚠️ Understanding the "Sandbox Worker … Continue reading Blog 2: Debugging Dataverse Sandbox Worker Process Crashes

Blog Series Blog 1: Mastering Dataverse Plug-in Troubleshooting – A 10-Part Guide

Dataverse plug-ins are essential for extending Dynamics 365 functionality, but errors during execution can lead to performance issues, crashes, and unexpected failures. This 10-part blog series will help developers and administrators understand, diagnose, and resolve common Dataverse plug-in errors effectively. 🔹 Blog Series Breakdown: 1️⃣ Time Conversion Errors in Dataverse Plug-ins – Understanding time zone … Continue reading Blog Series Blog 1: Mastering Dataverse Plug-in Troubleshooting – A 10-Part Guide