Error Message When Building TicketDetails Form

Question: I recently made a few changes to the TicketDetails form.  When I started building I received this error:

INFO – Building Quick Form: ‘TicketDetails’.
ERROR –
NVelocity.Exception.MethodInvocationException: Invocation of method ‘getControlServerCode’ in Sage.Platform.QuickForms.WebFormGen.WebUserControlGenerator threw exception System.NullReferenceException : Object reference not set to an instance of an object. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Sage.Platform.QuickForms.WebFormGen.WebUserControlGenerator.GetControlPropertyName(String controlID, String qfPropertyName)
at Sage.Platform.QuickForms.WebFormGen.WebActionGenerator.GetControlPropertyName(String controlID, String qfPropertyName)
— End of inner exception stack trace —
at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
at NVelocity.Runtime.Parser.Node.ASTReference.Render(IInternalContextAdapter context, TextWriter writer)
at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)
at NVelocity.Runtime.Directive.Foreach.Render(IInternalContextAdapter context, TextWriter writer, INode node)
at NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer)
at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)
at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer)
at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
at NVelocity.Template.Merge(IContext context, TextWriter writer)
at Sage.Platform.TemplateSupport.Template.ApplyTemplate(TextWriter writer, Hashtable contexts)
at Sage.Platform.QuickForms.WebFormGen.WebUserControlGenerator.Generate(Object metaObject, TextWriter writer, Boolean asPrintView)
at Sage.Platform.QuickForms.WebFormGen.WebQuickFormDeploymentPackage.GenerateInternal2(IQuickFormDefinition definition, Boolean isPrintView)
at Sage.Platform.QuickForms.WebFormGen.WebQuickFormDeploymentPackage.GenerateInternal(OperationStatus op, BuildType buildType)
at Sage.Platform.Extensibility.DeploymentPackageBase.Generate(OperationStatus op, BuildType buildType)
at Sage.Platform.Extensibility.Services.RegisteredPlatform.Generate(IProject project, OperationStatus op, BuildType buildType)
at Sage.Platform.AdminModule.AdminModuleInit.Deploy(RegisteredPlatform platform, OperationStatus op, BuildType buildType)
at Sage.Platform.AdminModule.AdminModuleInit.BuildWebObjectsImpl(OperationStatus op)

Why is this happening?

Answer: When you delete Type, Reseller, and Lead Source fields there are “User Interface interaction” items you need to modify in the Load Actions for the form, as well as in the OnChange action of the Account lookup control.

Remove entries in the actions that refer to controls you remove. If references are left, the quickform builder can’t find them when it is building the page, and it will give you the same error message.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!