Lon - AX / GFX Message: The data is not long enough to decode the member "Value" on type "TemplateNvInfo".

If you have loaded the GFX wizard in an older version of AX and have recently upgraded to the latest version of AX all of the templates in the c:\Lonworks\Apps\Distech\BCS Commons\Templates folder need to be deleted. This will cause an error due to the monitoring functionality of the of the GFX templates. Similar to trying to make changes to devices that have monitor sets activated.. Make sure the latest Distech Control module has been installed via the Distribution file installer. Check that all of the .jar files are up to date and the error listed below should go away...


Event Type: Error

Event Date: */**/20**

Event Time: 3:12 PM

Source: DC.Network.Data

Message: The data is not long enough to decode the member "Value" on type "TemplateNvInfo".

Description:

Message: The data is not long enough to decode the member "Value" on type "TemplateNvInfo".

Type: Distech.Network.Data.Lon.AX.DecoderException

at Distech.Network.Data.Lon.AX.MessageDecoder.DecodeString(DecodeMemberInfo member)

at Distech.Network.Data.Lon.AX.MessageDecoder.DecodeMember(DecodeMemberInfo member)

at Distech.Network.Data.Lon.AX.MessageDecoder.Decode(Object objectToDecode, Byte[] data, Int32 startIndex)

at Distech.Network.Data.Lon.AX.MessageDecoder.DecodeCollectionElement(DecodeMemberInfo member, IList collection, MessageDecoder subDecoder)

at Distech.Network.Data.Lon.AX.MessageDecoder.DecodeCollectionMember(DecodeMemberInfo member)

at Distech.Network.Data.Lon.AX.MessageDecoder.Decode(Object objectToDecode, Byte[] data, Int32 startIndex)

at Distech.Network.Data.Lon.AX.DeviceTemplateManager.ReadLonMarkObjectsFromDisk()

at Distech.Network.Data.Lon.AX.DeviceTemplateManager.ReadTemplate()

at Distech.Network.Data.Lon.AX.AXObjectServer.LoadDeviceFromContext()

at Distech.Network.Data.Lon.AX.AXObjectServer.InternalOpen()

at Distech.Network.Data.Lon.ObjectServer.Open()

at Distech.Plugin.PluginStarter.GetObjectServerToUse()

at Distech.Gpl.UI.GplApplication.OpenObjectServer()

at Distech.Gpl.UI.GplApplication.StartApplication()

at Distech.Gpl.UI.GplApplication.m_MainForm_Shown(Object sender, EventArgs e)

at System.Windows.Forms.Form.OnShown(EventArgs e)

at System.Windows.Forms.Form.CallShownEvent()

at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)

at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)

at System.Threading.ExecutionContext.runTryCode(Object userData)

at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)

at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Add Feedback