Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Errors in execution of NAV Workflows

$
0
0
For some time we are using NAV workflows (NAV 2016) and few times per week there are errors in event log related to this process. Do you have any ideas what causing those errors and what fixes could be applied? Extraction from event log is below.
Thanks in advance.

Server instance: NavServer
Tenant ID: default
Session type: RoleTailoredClient
Session ID: 9
User: ****\***************
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSqlException
ErrorNumber: 3971
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: None
Message:
The following SQL error was unexpected:
The server failed to resume the transaction. Desc:4900000c33.
SQL statement:
SELECT TOP 1 NULL FROM "Database".dbo."Company$Workflow Table Relation Value" WITH(XLOCK) WHERE ("Workflow Step Instance ID"=@0 AND "Workflow Code"=@1 AND "Workflow Step ID"=@2 AND "Table ID"=@3 AND "Field ID"=@4 AND "Related Table ID"=@5 AND "Related Field ID"=@6 AND "timestamp"=@7) OPTION(OPTIMIZE FOR UNKNOWN)
StackTrace:
at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ThrowNavSqlException(SqlExceptionAdapter exceptionAdapter, NavSqlCommand command, Boolean isLastExceptionARollbackCause, Boolean logExceptions)
at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ExecuteFunction[T](Func`1 function, NavSqlCommand command)
at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ExecuteFunctionWithTrace[T](EventTask task, Func`1 function, NavSqlCommand command)
at Microsoft.Dynamics.Nav.Runtime.NavSqlCommand.ExecuteReader()
at Microsoft.Dynamics.Nav.Runtime.NavSqlExistsCommand.ExecuteExists(FilterExpression filter)
at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.ExecuteCommandAndCacheOnSuccess[T](NavSqlCommandCacheKey commandKey, Func`1 createFunc, Func`2 executeFunc)
at Microsoft.Dynamics.Nav.Runtime.NavSqlExistsCommand.Exists(NavDatabase database, NCLMetaTable table, Int32 companyIndex, FilterExpression filter, Boolean locking, Boolean withXLock)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDmlCommand.ModifyImpl(NavDatabase database, NCLMetaTable table, Int32 companyIndex, MutableRecordBuffer record, FieldList modifiedFields, Boolean retrieveTimestamp, NavBigInteger& timestampValue, Boolean recordConsistentWithCurrentTransaction)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDmlCommand.Modify(NavDatabase database, NCLMetaTable table, Int32 companyIndex, MutableRecordBuffer record, Boolean retrieveTimestamp, Boolean recordConsistentWithCurrentTransaction, NavBigInteger& timestampValue)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDmlCommand.Modify(NavDatabase database, Int32 companyToken, MutableRecordBuffer recordBuffer, Boolean recordHasBeenReadWithLockInsideThisTransaction, NavBigInteger& timestampValue)
at Microsoft.Dynamics.Nav.Runtime.SqlTableDataProvider.Modify(Int32 companyToken, MutableRecordBuffer recordBuffer, Boolean recordHasBeenReadWithLockInsideThisTransaction, ReadOnlyRecordBuffer& outputRecordBuffer)
at Microsoft.Dynamics.Nav.Runtime.DataAccess.IssueModify(Int32 companyToken, MutableRecordBuffer inputRecordBuffer, Boolean withTimestampCheck, Boolean checkThatRecordExists, ReadOnlyRecordBuffer& outputRecordBuffer)
at Microsoft.Dynamics.Nav.Runtime.DataAccess.PerformModify(Int32 companyToken, Boolean recordWasReadWithLockInsideThisTransaction, Boolean useCache, MutableRecordBuffer& inputRecordBuffer, ReadOnlyRecordBuffer& outputRecordBuffer)
at Microsoft.Dynamics.Nav.Runtime.DataAccess.Modify(Int32 companyToken, MutableRecordBuffer inputRecordBuffer, ResultSetEnumerator& resultSetEnumerator, MutableRecordBuffer& newRecordBuffer)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.ModifyRecord(DataError errorLevel)
at Microsoft.Dynamics.Nav.Runtime.NavRecord.Modify(DataError errorLevel, Boolean runApplicationTrigger, Boolean runGlobalTrigger, Boolean isBulkModify)
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALModify(DataError errorLevel, Boolean runApplicationTrigger, Boolean isBulkModify)
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Record1506.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.UpdateRelatedTableValues_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.UpdateRelatedTableValues(NavRecordRef recRef)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.UpdateStepAndRelatedTableData_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.ExecuteResponses_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.HandleEventWithxRecOnKnownWorkflowInstance_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.HandleEventWithxRecOnKnownWorkflowInstance(NavCode functionName, NavVariant variant, NavVariant xVariant, Guid workflowStepInstanceID)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.HandleEventOnKnownWorkflowInstance_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.HandleEventOnKnownWorkflowInstance(NavCode functionName, NavVariant variant, Guid workflowStepInstanceID)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1501.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit1520.RunWorkflowOnApproveApprovalRequest_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.Nav.EventSubscription.NavEventScope.CallEventSubscriber(NavEventSubscription subscriber, NavCodeunit subscriberCodeunitInstance, Object[] parameters)
at Microsoft.Dynamics.Nav.EventSubscription.NavEventScope.ProcessCallToAllSubscribers(NavApplicationObjectBase callerApplicationObject, PrepareParametersCallBack prepareParameters)

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>