How can we help you today?

Go ahead and ask us anything.

See the KanBo newest version.

Error when adding board based on a template.

Last modified:

for User KanBo 2.2 for Admin

We are having a problem while adding a new board based on a templates.. There shows up an error message.


Error message follows:

AddBoard
{"GroupId":46,"Name":"Operator","Color":13,"ScriptId":4}
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Jint.Runtime.Interop.MethodInfoFunctionInstance.Invoke(MethodInfo[] methodInfos, JsValue thisObject, JsValue[] jsArguments)
at Jint.Runtime.Interop.MethodInfoFunctionInstance.Call(JsValue thisObject, JsValue[] arguments)
at Jint.Runtime.ExpressionInterpreter.EvaluateCallExpression(CallExpression callExpression)
at Jint.Engine.EvaluateExpression(Expression expression)
at Jint.Runtime.StatementInterpreter.ExecuteExpressionStatement(ExpressionStatement expressionStatement)
at Jint.Engine.ExecuteStatement(Statement statement)
at Jint.Runtime.StatementInterpreter.ExecuteStatementList(IEnumerable`1 statementList)
at Jint.Engine.Execute(Program program)
at KanBo.Web.DefaultScriptFactory.JintScript.Run()
at KanBo.Core.Actions.AddBoard.invokeAction()
at KanBo.Core.Actions.AddBoard.Invoke()
at KanBo.Web.JsonApi.InvokeSync[T](String method, String args)
at KanBo.Web.JsonApi.<Invoke>d__5.MoveNext()
Invalid LCID
at KanBo.Core.Scripting.Board.SetSettings(Object input

Or

AddCard

{"ListId":17,"Position":0,"Name":"Issues 223","ScriptId":null}


Invalid LCID


at KanBo.Core.BoardSettingsDTO.ValidateSettings()
at KanBo.Core.SettingsManager`3.Set(ParentDbType dataObject, SettingsType settings)
at KanBo.Core.SettingsManager`3.Create(ParentDbType dataObject)
at KanBo.Core.CardScriptsSettings.GetScriptId(List list)
at KanBo.Core.Actions.AddCard.Invoke()
at KanBo.Web.KanBoHub.Action(String auth, Int32 actionID, String action, String options)

This happens for customers that have migrated from a version that didn't have a language support to the newest one that does support Multi language.


Image 508

To fix these errors:

1. Go to Board Collection Settings > Regional settings > Language.

2. Change language to German and back to English - it will reset the language settings. If you do not have access, ask KanBo Manager to do it for you.

3. Delete all templates that you have created so far. They are all corrupt because of the missing language setting.


If you still experience issue and KanBo database is hosted on your server,you can execute following query:

Before continue make a backup of your databases!


This script may fix this error on some environments (refers to KanBo 2.2.0-93a3dfc 2016.05.12):

UPDATE BoardSettings SET Settings = REPLACE(Settings, '}', ',"LCID":1033}') WHERE Settings NOT LIKE '%LCID%'

Is this article helpful for you?