Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Error 'Table does ...
Finance forum

Error 'Table does not have method' after renaming the method

(0) ShareShare
ReportReport
Posted on by

Hi

I have a temptable in which i added a  display method namely chequedesc.

Then I renamed that method from chequedesc to chequeDesc.

After that i can see that my business logic is working as per my code , however i get below error message for my old method which is not present anywhere in code as i renamed it from chequedesc to chequeDesc.

1>"Error executing code: ChequeTmp table does not have method 'chequedesc'.""and

2> "unable to get value for chequedesc in table ChequeTmp" 

I have done the following.

a. Deleted the extension class & created new extension class for adding display method to my temptable.

b. Done full model rebuild with db synch.

I have tried debugging the issue, it does show me the error in local window & call stack details.

However I m unable to determine how to go to source of this error so that I can understand & fix it.

Pls refer to snip below & suggest.

snip1.png

 

  • Mav Profile Picture
    on at
    RE: Error 'Table does not have method' after renaming the method

    :-( Restarting did not helped.

  • Mav Profile Picture
    on at
    RE: Error 'Table does not have method' after renaming the method

    Ok

  • Martin Dráb Profile Picture
    231,947 Most Valuable Professional on at
    RE: Need some help with debugging

    Start and Stop the Report Server Service

  • Mav Profile Picture
    on at
    RE: Need some help with debugging

    Please let  me know how to restart report server on d365 developer single box.

    Also note that i have restarted IIS in command prompt

  • Martin Dráb Profile Picture
    231,947 Most Valuable Professional on at
    RE: Need some help with debugging

    Make sure that your method has the accepts the right number number (and types) of parameters.

  • Suggested answer
    Mea_ Profile Picture
    60,278 on at
    RE: Need some help with debugging

    Hi Mav,

    You have not redeploy your report to report server. Sometimes redeploy does not help as well so you have to restart IIS and report server as well.

  • Mav Profile Picture
    on at
    RE: Need some help with debugging

    More details from my call stack

    What is interesting is that i renamed my method from chequeDesc to chequedesc and still getting these errors.

    >	Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Info.`add(Dynamics.AX.Application.Exception _exception = Error, string _txt = "Error executing code: ChequeTmp table does not have method 'chequedesc'.", string _helpUrl = "", Microsoft.Dynamics.Ax.Xpp.XppObjectBase _sysInfoAction = null, bool buildprefix = true, string _label = "", bool @_helpUrl_IsDefaultSet = false, bool @_sysInfoAction_IsDefaultSet = false, bool @buildprefix_IsDefaultSet = false, bool @_label_IsDefaultSet = false) Line 296	X++
     	Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Info.`kernelAdd(Dynamics.AX.Application.Exception _exception = Error, string _txt = "Error executing code: ChequeTmp table does not have method 'chequedesc'.", string label = "") Line 283	X++
     	[Lightweight Function]	
     	Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(object instance, string MethodName = "kernelAdd", object[] parameters)	Unknown
     	aoskernel.dll!<Module>.callILClassMethod(interpret* ip = 0x0000024060eb2450, char* method, uint chdl = 0, cqlClass* c)	Unknown
     	[Native to Managed Transition]	
     	[Managed to Native Transition]	
     	aoskernel.dll!Microsoft.Dynamics.Ax.MSIL.Interop.ThrowCQLFuncError(Microsoft.Dynamics.Ax.MSIL.IL_CQL_ERR cqlErr, string typeName, string methodName)	Unknown
     	Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(object instance, string MethodName, object[] parameters)	Unknown
     	Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.DictTable.Callobject(string _methodName, Microsoft.Dynamics.Ax.Xpp.Common _Called, object[] varArgs)	Unknown
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CallTableMethods.`GetTableValue(Microsoft.Dynamics.Ax.Xpp.Common table = {Dynamics.AX.Application.ChequeTmp}, string tableName = "ChequeTmp", string method = "chequedesc") Line 216	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CallTableMethods.`GetCalculatedValueAsString(Microsoft.Dynamics.Ax.Xpp.Common table = {Dynamics.AX.Application.ChequeTmp}, string tableName = "ChequeTmp", string method = "chequedesc") Line 41	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CallTableMethods.`GetCalculatedValues(Microsoft.Dynamics.Ax.Xpp.Common table = {Dynamics.AX.Application.ChequeTmp}, string reportName = "Cheque_US", string tableName = "ChequeTmp", Microsoft.Dynamics.Ax.Xpp.List methods = {Microsoft.Dynamics.Ax.Xpp.List}) Line 95	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CreateReport.`OutputValuesForTable(object[] fieldNames = {object[54]}, Microsoft.Dynamics.Ax.Xpp.List methods = {Microsoft.Dynamics.Ax.Xpp.List}, string tableName = "ChequeTmp", Microsoft.Dynamics.Ax.Xpp.Common record = {Dynamics.AX.Application.ChequeTmp}, Dynamics.AX.Application.BT_DPA_XmlWriter localXMLWriter = {Dynamics.AX.Application.BT_DPA_XmlWriter}, int level = 0, long joinTable = 0, bool @joinTable_IsDefaultSet = true) Line 2078	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CreateReport.OutputValues(object[] fieldNames = {object[54]}, Microsoft.Dynamics.Ax.Xpp.List methods = {Microsoft.Dynamics.Ax.Xpp.List}, string tableName = "ChequeTmp", string tableAlias = "ChequeTmp", Microsoft.Dynamics.Ax.Xpp.Common record = {Dynamics.AX.Application.ChequeTmp}, Dynamics.AX.Application.BT_DPA_XmlWriter localXMLWriter = {Dynamics.AX.Application.BT_DPA_XmlWriter}) Line 1950	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CreateReport.GenerateOneRowFromQueryRun(Dynamics.AX.Application.QueryRun qr = {Dynamics.AX.Application.QueryRun}, bool allBlanks = true, bool anyRowsFound = true, object[] querySourceNumbers = {object[1]}) Line 815	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CreateReport.GenerateXMLFromQueryRun(Dynamics.AX.Application.QueryRun qr = {Dynamics.AX.Application.QueryRun}, bool doFinish = true, bool @doFinish_IsDefaultSet = false) Line 881	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.BT_DPA_CreateReport.`MakeReportFromSrsReportDataContract(Dynamics.AX.Application.SrsReportDataContract contract = {Dynamics.AX.Application.SrsReportDataContract}, bool isInBatch = false, bool @isInBatch_IsDefaultSet = false) Line 2845	X++
     	Dynamics.AX.PrecisionForms.0.netmodule!Dynamics.AX.Application.PF_SRSPrintDestinationSettingsDelegates_Handlers.`printReport(Dynamics.AX.Application.SrsReportRunPrinter printer = {Dynamics.AX.Application.SrsReportRunPrinter}, Dynamics.AX.Application.SrsReportDataContract dataContract = {Dynamics.AX.Application.SrsReportDataContract}, Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportingService.ParameterValue[] paramArray = {Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportingService.ParameterValue[7]}) Line 319	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SRSPrintDestinationSettingsDelegates.`onPrintReport(Dynamics.AX.Application.SrsReportRunPrinter printer = {Dynamics.AX.Application.SrsReportRunPrinter}, Dynamics.AX.Application.SrsReportDataContract dataContract = {Dynamics.AX.Application.SrsReportDataContract}, Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportingService.ParameterValue[] paramArray = {Microsoft.Dynamics.AX.Framework.Reporting.Shared.ReportingService.ParameterValue[7]}) Line 496	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunPrinter.`printReport() Line 163	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunService.`runReport(Dynamics.AX.Application.SrsReportDataContract _reportContract = {Dynamics.AX.Application.SrsReportDataContract}) Line 687	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunImpl.`runReport() Line 250	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.doReportRun() Line 1197	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.`runReport() Line 1102	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.`run() Line 1070	X++
     	Dynamics.AX.ApplicationFoundation.8.netmodule!Dynamics.AX.Application.SysOperationController.`runOperation() Line 1903	X++
     	Dynamics.AX.ApplicationFoundation.8.netmodule!Dynamics.AX.Application.SysOperationController.`startOperation() Line 2021	X++
     	Dynamics.AX.ApplicationFoundation.6.netmodule!Dynamics.AX.Application.SrsReportRunController.`startOperation() Line 1408	X++
     	Dynamics.AX.ApplicationSuite.16.netmodule!Dynamics.AX.Application.ChequeController.`main(Dynamics.AX.Application.Args _args = {Dynamics.AX.Application.Args}) Line 229	X++
     	[Lightweight Function]	
     	Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(System.Type type = {Name = "ChequeController" FullName = "Dynamics.AX.Application.ChequeController"}, string MethodName = "Main", object[] parameters)	Unknown
     	Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.MenuFunction.`run(Dynamics.AX.Application.xArgs _args = {Dynamics.AX.Application.Args}, bool @_args_IsDefaultSet = false) Line 101	X++
     	Dynamics.AX.ApplicationSuite.7.netmodule!Dynamics.AX.Application.BankChequePrint.runReport(string _menuItemOutputStr = "Cheque_US") Line 118	X++
     	Dynamics.AX.ApplicationSuite.7.netmodule!Dynamics.AX.Application.BankChequePrint.`printDocument() Line 59	X++
     	Dynamics.AX.ApplicationSuite.135.netmodule!Dynamics.AX.Application.VendOutPaym_Cheque.`printDocument() Line 669	X++
     	Dynamics.AX.ApplicationSuite.135.netmodule!Dynamics.AX.Application.VendOutPaym_Cheque.`close() Line 147	X++
     	Dynamics.AX.ApplicationSuite.25.netmodule!Dynamics.AX.Application.CustVendSumForPaym.`run() Line 607	X++
     	Dynamics.AX.ApplicationPlatform.4.netmodule!Dynamics.AX.Application.SysOperationSandbox.`startOperation(Dynamics.AX.Application.SysOperationIMarshalledRun operationInstance = {Dynamics.AX.Application.VendSumForPaym}) Line 90	X++
     	Dynamics.AX.ApplicationPlatform.1.netmodule!Dynamics.AX.Application.Runbase.runOperation() Line 804	X++
     	Dynamics.AX.ApplicationSuite.136.netmodule!Dynamics.AX.Application.VendSumForPaym.`main(Dynamics.AX.Application.Args args = {Dynamics.AX.Application.Args}) Line 56	X++
     	[Lightweight Function]	
     	Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(System.Type type = {Name = "VendSumForPaym" FullName = "Dynamics.AX.Application.VendSumForPaym"}, string MethodName = "main", object[] parameters)	Unknown
     	aoskernel.dll!<Module>.callILClassMethod(interpret* ip = 0x0000024060eb2450, char* method, uint chdl = 32027, cqlClass* c)	Unknown
     	[Native to Managed Transition]	
     	[Managed to Native Transition]	
     	aoskernel.dll!Microsoft.Dynamics.Ax.MSIL.cqlClassIL.Call(System.IntPtr c, string methodName, object[] parameters, System.Type[] types, object[] varargs, System.Type[] varargsTypes)	Unknown
     	Microsoft.Dynamics.AX.Server.Core.dll!Microsoft.Dynamics.Ax.Xpp.XppObjectBase.Call(string methodName, object[] parameters, System.Type[] types, object[] varargs)	Unknown
     	Dynamics.AX.ApplicationSuite.Forms.9.netmodule!Dynamics.AX.Application.Forms.LedgerJournalTransVendPaym.FormControl.buttonCreatePayment.clicked() Line 3731	X++
     	[Lightweight Function]	
     	Microsoft.Dynamics.AX.Xpp.Support.dll!Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeInstanceCall(object instance, string MethodName = "Clicked", object[] parameters)	Unknown
     	aoskernel.dll!<Module>.callILClassMethod(interpret* ip = 0x0000024060eb2450, char* method, uint chdl = 0, cqlClass* c)	Unknown
     	[Native to Managed Transition]	
     	[Managed to Native Transition]	
     	aoskernel.dll!Microsoft.Dynamics.Client.ServerForm.Interactions.InteractionHandler.InvokeCommand(Microsoft.Dynamics.Client.ServerForm.Interactions.CommandInteraction interaction, out Microsoft.Dynamics.Client.ServerForm.Interactions.CommandCallbackInteraction result)	Unknown
     	aoskernel.dll!Microsoft.Dynamics.Client.ServerForm.Interactions.InteractionHandler.HandleCommandInteraction(Microsoft.Dynamics.Client.ServerForm.Interactions.CommandInteraction interaction, System.Collections.Generic.List<Microsoft.Dynamics.Client.ServerForm.Interactions.Interaction> outboundInteractions = Count = 0)	Unknown
     	aoskernel.dll!Microsoft.Dynamics.Client.ServerForm.Interactions.InteractionHandler.HandleInteractions(Microsoft.Dynamics.Client.ServerForm.Interactions.IInteractionChannel interactionChannel = {Microsoft.Dynamics.Client.InteractionService.Communication.Reliable.ReliableChannel})	Unknown
     	aoskernel.dll!Microsoft.Dynamics.Client.ServerForm.Interactions.InteractionManager.ProcessMessages(object stateinfo)	Unknown
     	mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)	Unknown
     	mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)	Unknown
     	mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()	Unknown
     	mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch()	Unknown
     	[Native to Managed Transition]	
    
    


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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,947 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans