Internal Error: Invalid Compiler output. Input string was not in correct format.

Hi,

I made some changes to a project I was working on and when publishing I started getting a strange error. 

Internal Error
Invalid compiler output.
Input string was not in a correct format.
Exception Details:
[1] System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.Convert.ToInt32(String value)
   at OutSystems.HubEdition.Compiler.AbstractWebWidget.GetGridCssClasses()
   at OutSystems.HubEdition.Compiler.WidgetUtils.ContentVisitor.ParseSelfCancellingClasses(AbstractServerWebWidget w, String& cssClasses, String& gridCssClasses)
   at OutSystems.HubEdition.Compiler.WebFlows.CSharpWebScreenVisitor.DumpCssClasses(AbstractServerWebWidget w)
   at OutSystems.HubEdition.Compiler.WebFlows.CSharpWebScreenVisitor.StartVisit(AbstractServerWebWidget w)
   at OutSystems.HubEdition.Compiler.WebWidgets.Button.Accept(WidgetVisitor visitor)
   at OutSystems.HubEdition.Compiler.WidgetVisitor.VisitWidgets[TWidget](IEnumerable`1 children)
   at OutSystems.HubEdition.Compiler.WebFlows.CSharpWebScreenVisitor.Visit(AbstractContainer w)
   at OutSystems.HubEdition.Compiler.WebWidgets.Container.Accept(WidgetVisitor visitor)
   at OutSystems.HubEdition.Compiler.WidgetVisitor.VisitWidgets[TWidget](IEnumerable`1 children)
   at OutSystems.HubEdition.Compiler.WebFlows.CSharpWebScreenVisitor.Visit(PlaceholderArgument w)
   at OutSystems.HubEdition.Compiler.WebWidgets.PlaceholderArgument.Accept(WidgetVisitor visitor)
   at OutSystems.HubEdition.Compiler.WidgetVisitor.VisitWidgets[TWidget](IEnumerable`1 children)
   at OutSystems.HubEdition.Compiler.WebFlows.CSharpWebScreenVisitor.Visit(AbstractWebBlockInstance w)
   at OutSystems.HubEdition.Compiler.WebWidgets.WebBlockInstance.Accept(WidgetVisitor visitor)
   at OutSystems.HubEdition.Compiler.Nodes.AbstractWebContentNode.DumpWidgets(TextWriter writer)
   at OutSystems.HubEdition.Compiler.Nodes.WebScreen.DumpAspx()
   at OutSystems.HubEdition.Compiler.Nodes.WebScreen.Dump(TextWriter writer)
   at OutSystems.HubEdition.Compiler.Flows.WebFlow.Dump()
   at OutSystems.HubEdition.Compiler.WebFlows.WebHandler.Dump(IEnumerable`1 webFlows)
   at OutSystems.HubEdition.Compiler.ESpace.Dump()
   at OutSystems.HubEdition.Compiler.Compiler.InnerCompileEspace(ESpace eSpace, CompilationContext context)
   at OutSystems.HubEdition.Compiler.Utils.CompilerUtils.TrapExceptionsInContext(Action action, CompilationContext context)


Does anyone know or understand what could be causing this and how I can resolve it?

Hi,

Do you have a webblock on a screen a d do you use notifymessage or the new is 11 event/event handler to pas back data to the screen?

Regards,

Daniel

Hi Abhiman,

Are you doing any kind of string to number conversion in your logic? seems like the error is coming while converting an string to a number which is not in correct format.


Regards,

-PJ-