web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
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

I have the same question (0)
  • Luis Arellano Profile Picture
    247 on at

    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"

     

     

     

     

     

  • Robert_vbc Profile Picture
    52 on at

    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

    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?

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard