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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Data Sync Failed

(2) ShareShare
ReportReport
Posted on by 28
Dear Community,
 
While syncing the Database I'am getting these 48 errors. The most important thing to note is this error out of 48

Error        Managed Data Sync Entity Worker encountered an exception, but is continuing because ContinueOnError is true. View Name and ID: 'CBLEntIRNvsInvoice(25938)' Exception: Microsoft.Dynamics.Ax.Xpp.MethodNotFoundException            Build    
 
I have deleted this Entity from AOT and from the SQL Server AxDB, including its Staging Table as well, also rebuilt the Model, but still no use. Even refreshed the Entities List in D-365. Before refreshing, the entity was listed in the entity list but after refreshing it was gone. 
 
Help Required. 

 
Severity    Code    Description    Path    File    Source    Suppression State
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c.<RunFullTableSync>b__21_1(Tuple`2 result)            Build    
Error        MethodNotFoundException:            Build    
Error        AOS database sync failed.    Microsoft.Dynamics.AX.Framework.Database.TableSyncException: Full sync did not complete successfully. Error: AggregateException:One or more errors occurred.            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullSync()            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunFullManagedSync(SyncOptions options, String sqlConnectionString, IMetadataProvider metadataProvider)            Build    
Error        at Microsoft.Dynamics.Ax.MSIL.Interop.throwException(Int32 ExceptionValue, interpret* ip)            Build    
Error        at Dynamics.AX.Application.ManagedQueryRunImplementation.GenerateOnlyRunToNext(ManagedQueryImplementation query)            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.ParseFactor(expressionScanner scanner, IQueryRangeFilter range, Common record, ManagedQueryBuildDataSourceImplementation buildDataSource)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSync.EnsureMetadataProviderCacheCleared(Action action)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.DataEntity.ManagedSyncDataEntityWorker.SyncAllAction[T](ViewSyncGraphNode viewToSync, Dictionary`2 oldViewDefinitions, StringCollection dataEntityViewList, StringCollection compositeEntityViewList, IProducerConsumerCollection`1 modifiedViewDependencies)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.DataEntity.ManagedSyncDataEntityWorker.DoSyncAll[T](IEnumerable`1 sortedViewList, Dictionary`2 oldViewDefinitions, IProducerConsumerCollection`1 modifiedViewDependencies).            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.ParseFunctionCall(expressionScanner scanner, IQueryRangeFilter range, String className, String methodName)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSync.<SyncAll>b__21_0()            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSyncWorkerManager.SyncAll()            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.ParseTerm(expressionScanner scanner, IQueryRangeFilter range, Common record, ManagedQueryBuildDataSourceImplementation buildDataSource)            Build    
Error        at Dynamics.AX.Application.ManagedQueryRunImplementation.GenerateCursors(ManagedQueryImplementation query)            Build    
Error        at Dynamics.AX.Application.ManagedQueryBuildDataSourceImplementation.GenerateWhereTree()            Build    
Error        Inner exceptions:            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.ParseExpression(expressionScanner scanner, IQueryRangeFilter range, Common record, ManagedQueryBuildDataSourceImplementation buildDataSource)            Build    
Error        at Dynamics.AX.Application.RootQueryBuildDataSourceImplementation.GenerateCursor()            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSyncDDLBuilder`1.GenerateSelectQueryFromQuery(Query xppQuery)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSync.SyncAll()            Build    
Error        Managed Data Sync Entity Worker encountered an exception, but is continuing because ContinueOnError is true. View Name and ID: 'CBLEntIRNvsInvoice(25938)' Exception: Microsoft.Dynamics.Ax.Xpp.MethodNotFoundException            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)            Build    
Error        Infolog diagnostic message: 'Error executing code: SysQueryRangeUtil object does not have method 'max'.' on category 'Error'.            Build    
Error        at Dynamics.AX.Application.RootQueryBuildDataSourceImplementation.GenerateCursorInternal()            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunFullTableSync(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider)            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.ParseExpressionValue(IQueryRangeFilter range, Common record, String value, ManagedQueryBuildDataSourceImplementation buildDataSource)            Build    
Error        at Dynamics.AX.Application.ManagedQueryImplementation.generateCursors()            Build    
Error        at Dynamics.AX.Application.ManagedQueryBuildDataSourceImplementation.GenerateCursor()            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options)            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync()            Build    
Error        at Dynamics.AX.Application.ManagedQueryRunImplementation.nextInternal()            Build    
Error        at Dynamics.AX.Application.ManagedQueryRunImplementation.next()            Build    
Error        at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.AssertMethodAttribute(Type type, String MethodName, Int32 parametersCount, String requiredAttributeName)            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.ParseSimpleExpression(expressionScanner scanner, IQueryRangeFilter range, Common record, ManagedQueryBuildDataSourceImplementation buildDataSource)            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c__DisplayClass21_0.<RunFullTableSync>b__0()            Build    
Error        at Dynamics.AX.Application.ManagedQueryRunImplementation.InitializeForNext()            Build    
Error        at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.FindStaticMethod(Type type, String methodName, Int32 parametersCount, Object[] parameters)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.DataEntity.ManagedSyncDataEntityWorker.DoSyncAll[T](IEnumerable`1 sortedViewList, Dictionary`2 oldViewDefinitions, IProducerConsumerCollection`1 modifiedViewDependencies)            Build    
Error        at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullTableViewSync()            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSyncDDLBuilder`1.GenerateStatement(T syncObject, Func`2 selectQueryGenerator)            Build    
Error        at Dynamics.AX.Application.QueryPredicateGenerator.GenerateExpressionFromRangeFilters(Common record, IQueryRangeFilter[] ranges, ManagedQueryBuildDataSourceImplementation buildDataSource)            Build    
Error        at Microsoft.Dynamics.Ax.MSIL.Interop.ThrowCQLFuncError(IL_CQL_ERR cqlErr, String typeName, String methodName)            Build    
Error        at Microsoft.Dynamics.AX.Data.Management.ManagedSyncDataEntityViewDDLBuilder.GenerateSelectQueryFromSyncObject(AxDataEntityView dataEntityView)            Build    
Error        at Dynamics.AX.Application.ManagedQueryRunImplementation.GetSQLSelectQuery(ManagedQueryImplementation query)            Build    
Error        at Dynamics.AX.Application.ManagedQueryBuildDataSourceImplementation.GenerateCursorInternal()            Build    
I have the same question (0)
  • Vigneshvaran Profile Picture
    342 on at
    Data Sync Failed
    Did you get the solution to solve this issue?
  • Verified answer
    Hana Xue Profile Picture
    Microsoft Employee on at
    Data Sync Failed
    Hi,
    There are problems similar to yours in the link below, you can check the link below for a brief reference
    Dynamics Community Forum Thread Details
    Dynamics Community Forum Thread Details
    Best Regards,
    Hana
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    298,168 Super User 2025 Season 2 on at
    Data Sync Failed
    Hi Tayyab,
     
    On one of the lines, I do see the next details: Error        Infolog diagnostic message: 'Error executing code: SysQueryRangeUtil object does not have method 'max'.' on category 'Error'.            Build
     
    Can you check the ranges of this entity or view? The method max is indeed not part of the standard class.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 895

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 811 User Group Leader

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 787 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans