02-03-2011 03:34 AM
I have Created a New Table Under Opportunity Called OPARegistration. Mapped it as One to many
I have Created A Edit Form for the fields of the table OPARegistration
This is working fine ion my DEv Machine
I have bundled the above items(Enitire Entity) an installed it on differnt Machine.
I am getting the following error on QA machine while i installed the bundle
In advance
ERROR - System.IO.FileLoadException:
Unable to load file, '\Entity Model\SalesLogix Application Entities\OPARegistration\QuickForms\EditOPARegistration.main.quickform.xml'. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: There is an error in XML document (1, 969). ---> System.Xml.XmlException: 'Element' is an invalid XmlNodeType. Line 1, position 969. at System.Xml.XmlReader.ReadEndElement() at Sage.Platform.QuickForms.ActionItems.ActionItemDefinition.ReadXml(XmlReader reader) at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny) at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQFTextBox.Read11_QFTextBox(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQFTextBox.Read12_QFTextBox() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader) at Sage.Platform.QuickForms.XmlSerialization.QuickFormsObjectSerializer.Deserialize() at Sage.Platform.QuickForms.XmlSerialization.DeserializeProperty(XmlNode propNode, Object component) at Sage.Platform.QuickForms.ControlFactory.LoadXml(XmlNode controlDefinitionNode) at Sage.Platform.QuickForms.Elements.QuickFormPropertyDescElement.LoadXml(XmlNode elementNode) at Sage.Platform.QuickForms.QuickFormMainDetailViewDefinition.DeserializeElement(XmlNode elementNode, ICollection`1 elementList) at Sage.Platform.QuickForms.QuickFormMainDetailViewDefinition.DeserializeFormFromXml(XmlNode rootNode) at Sage.Platform.QuickForms.QuickFormMainDetailViewDefinition.Deserialize(Stream formStream) at Sage.Platform.QuickForms.QuickFormMainDetailViewDefinition..ctor(Stream formStream, IProject project) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at Sage.Platform.QuickForms.QuickFormSerializer.Deserialize(Stream stream, IModelItemSerializationContext context) at Sage.Platform.Projects.ProjectBase.LoadUrl(IModelItem parent, String url, Type type) at Sage.Platform.Projects.ProjectBase.GetImpl(String url, IModelItem parent, Boolean reload, Type type) at Sage.Platform.Projects.ProjectBase.Get[T](String url, IModelItem parent) at Sage.Platform.Projects.Collections.ParentFileQueryCollection`1.LoadFiles(IFileInfo[] files, PersistentErrorDelegate errorHandler) at Sage.Platform.Projects.Collections.ParentFileQueryCollection`1.LoadFiles(IFileInfo[] files, PersistentErrorDelegate errorHandler) at Sage.Platform.Projects.Collections.ParentFileQueryCollection`1.Load(IDirectoryInfo path, String searchPattern, Boolean recursive, IModelItem parent, PersistentErrorDelegate errorHandler) at Sage.Platform.Projects.Collections.ParentFileQueryCollection`1.Load(IDirectoryInfo path, String searchPattern, Boolean recursive, IModelItem parent) at Sage.Platform.QuickForms.QuickFormModel.LoadDefinitions(IModelItem modelItem) at Sage.Platform.QuickForms.WebFormGen.InterfaceBuildPackage.ProcessForms(IModelItem parent, IEnumerable`1 generatorList, BuildType buildType, ICollection`1 buildItemFiles) at Sage.Platform.QuickForms.WebFormGen.InterfaceBuildPackage.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)
Please Kindly Help I am workiing on this from yesterday and cant able to find the clue.
I need Help Urgently
Thanks
Jack
02-03-2011 07:00 AM
02-03-2011 07:02 AM
I've used both of those methods with no issues - though it is always worth checking what's in there before applying, of course.
At what point does the error appear? Is it while reading the bundle, or while applying it?
02-03-2011 09:27 PM
02-04-2011 06:06 PM
This might seem like a silly question, but is one of the fields in your new OPARegistration table called "ELEMENT"?
02-08-2011 05:26 AM
02-08-2011 11:34 AM
Well, it only takes one structual change to an XML template to render any dependent XML basically useless, so sure, that could easily do it. I should have thought of that myself!
Still, you have to admit, it's better than binary serialization...