Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

SQL Server error

(0) ShareShare
ReportReport
Posted on by 52

Our system had a SQL Server error during the execution of a workflow, it's easy for us to reproduce.

 

I have 2 questions

 

1.  Has anyone seen such an issue before and know of a fix.

 

2.  As I entered this case 4 weeks ago and it's just sitting there with status open(investigating) is there anyway to bump this issue,

normally they are so good at contacting me to get things fixed, it feels like this has just fallen through the cracks.  There does not appear to be a mechanism to escalate the issue after it has been entered or get any feedback.

 

 

A workflow that has been working for 4 months stopped working with the following error message. Sync workflow failed with error message - Microsoft.Crm.Workflow.Services.InvalidCustomActivityExecutionException: Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 208 ---> Microsoft.Crm.CrmException: Sql error: Generic SQL error. CRM ErrorCode: -2147204784 Sql ErrorCode: -2146232060 Sql Number: 208 at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricClientTelemetryInterceptor.<>c__DisplayClass3_0.<Intercept>b__0() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricClientTelemetryInterceptor.Intercept(IInvocation invocation, IExecutionContext context, SandboxFabricCallTracker sandboxFabricCallTracker) at Microsoft.Xrm.RemotePlugin.Client.Interceptors.SandboxFabricCodeUnitExecuteBaseInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.ISandboxFabricCodeUnitProxy.Execute(ILifetimeScope scope, IExecutionContext context, SandboxFabricCallTracker& sandboxFabricCallTracker, ISandboxMemoryStreamProvider memoryStreamProvider) at Microsoft.Xrm.RemotePlugin.Client.SandboxFabricPlugin.<>c__DisplayClass8_1.<Execute>b__3() at Polly.Policy.<>c__DisplayClass150_0`1.<Execute>b__0(Context ctx, CancellationToken ct) at Polly.Policy.<>c__DisplayClass143_0`1.<ExecuteInternal>b__0(Context ctx, CancellationToken ct) at Polly.RetrySyntax.<>c__DisplayClass12_1.<WaitAndRetry>b__1(Context ctx, CancellationToken ct) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken, IEnumerable`1 shouldRetryExceptionPredicates, IEnumerable`1 shouldRetryResultPredicates, Func`1 policyStateFactory) at Polly.RetrySyntax.<>c__DisplayClass12_0.<WaitAndRetry>b__0(Action`2 action, Context context, CancellationToken cancellationToken) at Polly.Policy.ExecuteInternal[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Microsoft.Xrm.RemotePlugin.Client.SandboxFabricPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Xrm.RemotePlugin.Client.ResilientSandboxPlugin.<>c__DisplayClass13_1.<Execute>b__0() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) at Microsoft.Xrm.RemotePlugin.Client.ResilientSandboxPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.RemotePluginExecute(IServiceProvider serviceProvider, ILifetimeScope lifetimeScope, IExecutionContext executionContext, ILogger logger) at Microsoft.Xrm.RemotePlugin.CrmProvider.RemotePlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext) --- End of inner exception stack trace --- at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context) at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context), error code - -2147220891

Categories:
  • Luis Arellano Profile Picture
    247 on at
    Re: SQL Server error

    SQL error 208 also could be "The object is not specified correctly"

    MSSQLSERVER_208 - SQL Server | Microsoft Learn

     

    If issue is at inserting record in 2nd table, is it possible to change this in a dev env where this happens and start with a minimal recor dcreate and start adding the updated columns one by one to see if that could be the issue?

     

    For example if record in table 2 is inserting 10 columns, try only the required columns and see if that works, then add column(s) at a time (1-5 depending on the total columns)  and retry until you get the error again.

     

     

    If the code and the schema have not changed, it just stopped working and the testing is not helpful. Maybe there is another plugin/workflow triggering on create of table 2 causing the issue?

     

  • Robert_vbc Profile Picture
    52 on at
    Re: SQL Server error

    The workflow calls some C-Sharp library code (it's been working for months, I checked for changes, no changes) that

    inserts a record to 1 table and then goes and attempts to insert a record in a 2nd table.  The first table insert works then second table insert does not happen.

     

    Here are each of the error codes from above

     

    2147204784 - Generic error message

    2146232060 - Not able to find the SQL Server

       likely causes (at least from various forum posts)

    • The name of the computer hosting the SQL Server instance doesn't resolve the correct IP
    • The TCP port number isn't specified correctly
    • Table is locked by another user
    • Query timeout

    2147220891 - Trying to update an activity that is already closed or cancelled

     

    I'm guessing it's the query timeout, but is there a way to tell if this is the case with DataVerse?

  • Luis Arellano Profile Picture
    247 on at
    Re: SQL Server error

    Can you share more information of what triggers your workflow and what it does?

     

    There are several error codes here and without more information it is difficult to tell.

    SQL 208 is "The generic object cannot be found"

     

     

     

     

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics