Home on the web ~ Dan Van Fleet

Information on SoftPro ProForm with some general computer tips and techniques, with a bit of me.

Home on the web ~ Dan Van Fleet - Information on SoftPro ProForm with some general computer tips and techniques, with a bit of me.

SoftPro Select, Removal of token failed

clip_image001An interesting error occurred with SoftPro Select last week while rendering a document. The error was Document error, an error occurred while processing the document: Removal of token 'SoftPro.Documents.Markup.Tokenizer.CommandToken failed.

The problem was being caused by something hidden in pasted text. In this case it was a Policy and the field was the legal description. If you're running into this issue, consider where the document is obtaining information then examine that information. Cleaning up the text, by pasting into Notepad (or NotePad++ on my machine) and back is the solution. when pasting to multi line fields in Select. (start notepad by clicking the run button and typing notepad.exe)

This issue put a text event in the Windows Event log, Source is SoftPro Select, with the details containing the critical information.

The first error was:

The calculation expression could not be compiled. Native return value -1.
Expression= = “True”
(1,2) error FC0025: Syntax error.

That is followed by another message:

The calculation expression could not be compiled. Native return value -1.
Expression=Not IsEmpty()
(0,0) error FC0029: Invalid unary operand.
(1,13) error FC0041: Syntax error - expected a field code expression.

Those messages are repeated three more times before giving up and displaying the user error.

First Call Stack:

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Diagnostics.TraceEventCache.get_Callstack()
at SoftPro.Select.LogTraceListener.OnLog(TraceEventCache eventCache, String message, TraceEventType eventType)
at SoftPro.Select.LogTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceError(String message)
at SoftPro.Documents.Markup.Translator.Calculator.Calculate(String expression, IServiceProvider sp, Object context)
at SoftPro.Documents.Markup.Translator.InterpreterStrategyEvaluation.IfBlockBegin(InterpretStateParameter interpretStateParameter)
at SoftPro.Documents.Markup.Translator.Interpreter.ProcessCommandToken(CommandToken token)
at SoftPro.Documents.Markup.Analyzer.lexer_Token(Object sender, TokenEventArgs args)
at SoftPro.Documents.Markup.Tokenizer.Lexer.Bless(Token token, Int32 endPosition)
at SoftPro.Documents.Markup.Scanner.ParseStateCommandParams.CommandClose(ParseStateParameter param)
at SoftPro.Documents.Markup.Scanner.Parser.Start()
at SoftPro.Documents.Markup.Analyzer.Run(InterpreterStrategy strategy)
at SoftPro.Documents.Rendering.TextControl.DocumentRenderer.OnDoWork()
at SoftPro.Documents.Client.Rendering.BackgroundRenderer.Run()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Second Call Stack:

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Diagnostics.TraceEventCache.get_Callstack()
at SoftPro.Select.LogTraceListener.OnLog(TraceEventCache eventCache, String message, TraceEventType eventType)
at SoftPro.Select.LogTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceError(String message)
at SoftPro.Documents.Markup.Translator.Calculator.Calculate(String expression, IServiceProvider sp, Object context)
at SoftPro.Documents.Markup.Translator.InterpreterStrategyEvaluation.IfBlockBegin(InterpretStateParameter interpretStateParameter)
at SoftPro.Documents.Markup.Translator.Interpreter.ProcessCommandToken(CommandToken token)
at SoftPro.Documents.Markup.Analyzer.lexer_Token(Object sender, TokenEventArgs args)
at SoftPro.Documents.Markup.Tokenizer.Lexer.Bless(Token token, Int32 endPosition)
at SoftPro.Documents.Markup.Scanner.ParseStateCommandParams.CommandClose(ParseStateParameter param)
at SoftPro.Documents.Markup.Scanner.Parser.Start()
at SoftPro.Documents.Markup.Analyzer.Run(InterpreterStrategy strategy)
at SoftPro.Documents.Rendering.TextControl.DocumentRenderer.OnDoWork()
at SoftPro.Documents.Client.Rendering.BackgroundRenderer.Run()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

 

If you're still reading along, the SoftPro Select version is 4.0.30302.62.  Have you tried NotePad++ as a replacement for NotePad yet?  TextPad is another fine replacement. I like NotePad++ better.

Category: SoftPro
Tag: ,

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

*

css.php