Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.
Looking to purchase IMan, please see our resellers here.
Realisable Software
Ph: +44 (0) 208 123 1017
Copyright © Realisable. All rights reserved.
Realisable is a registered trademark
Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.
Looking to purchase IMan, please see our resellers here.
Realisable Software
Ph: +44 (0) 208 123 1017
Copyright © Realisable. All rights reserved.
Realisable is a registered trademark
Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.
Looking to purchase IMan, please see our resellers here.
Realisable Software
Ph: +44 (0) 208 123 1017
Copyright © Realisable. All rights reserved.
Realisable is a registered trademark
I have an XML tag that needs to have an xsi:type attribute set on it. Here are the various ways I have tried to make this work:
1. Putting the attribute in the field XPath as shown under the TRANSACTION XPATH heading on this page: https://www.realisable.co.uk/support/documentation/iman-user-guide/Writers/XML.htm. (Field1 has XPath of Level2/Level3[@MyType='...']/Field1, Field2 has XPath of Level2/Level3[@MyType='...']/Field2, etc...) but this results in N Level3 tags each with a single field instead of a single Level3 tag with all the fields.
2. Creating a hierarchy for Level3 with a "static" field for the value of "MyType". I then leave set Export to true, Relative XPath to true, empty XPath input and MyType as the Attribute. This results in the error "Unexpected identifier [(EOF)]". If I set Export to false, the error goes away. Below is the stack trace in the error log. Here are the Help -> Versions:
Config Version: 3.01
DB Version: 3.07
Realisable.IManWebUI.DLL 3.0.0.0
We are hoping to not tie an IMan upgrade to the project for this if at all possible.
2017-05-25 10:32:31:917 - Realisable.Utils.Xml.XPathParseException: Unexpected identifier [(EOF)].
at Realisable.Utils.Xml.XPathParser.parser_OnParseError(LALRParser parser, ParseErrorEventArgs args)
at Realisable.VBScriptParser.Parser.LALRParser.FireParseError(TerminalToken token)
at Realisable.VBScriptParser.Parser.LALRParser.ParseTerminal(TerminalToken token)
at Realisable.VBScriptParser.Parser.LALRParser.Parse(String input)
at Realisable.Utils.Xml.XPathParser.Parse(String xPathStatement, XmlNSManager namespaceManager)
at Realisable.Data.Transform.XmlWriter.CreateFieldTemplate(WriteFieldCache fldCacheItem, XmlNode insertNode)
at Realisable.Data.Transform.XmlWriter.GenerateCache()
at Realisable.Data.Transform.XmlWriter.InitClass(TransformDefinition tfmDefinition, IOControllerAdapter ioController, List`1 transactionExportSequence, WriteRecordCache wrcRecordCache, ITransformAuditController auditController)
at Realisable.Data.Transform.TransformWrite.CreateController(ITransformAuditController auditController, TransformDefinition tfmDef, TransactionIterator iterator, IOControllerAdapter adapter, IOutputWriter writer)
at Realisable.Data.Transform.TransformWrite.CreateController(TransformDefinition inputDefinition, ITransformAuditController auditController, TransactionFactory transactionFactory, Boolean testMode)
at Realisable.Data.Transform.TransformControllerInterop.Process()