0

ETL-Informatica 团队准备一个 XML(maintainParty 事务)以供 IBM-MDM 使用。

一般来说,XML 不能有符号“&”,它必须替换为&

除了用实体替换符号“&”&之外,还有其他方法可以自动 Informatica 或 MDM 解析值并通过将所有 & 转换为正确的 xml&

我问的原因是,在生产环境中,ETL 团队使用“&”符号发送,mdm 正确使用它。

但是,在测试服务器中,它会引发以下错误。因此,我试图了解 MDM 或 Informatica 中是否有任何配置,它将所有 & 符号转换为正确的实体。

要求:

 <?xml version="1.0" encoding="UTF-8"?>
..
<TCRMTx>
        <TCRMTxType>maintainParty</TCRMTxType>
..
..
..
<TCRMAdminContEquivBObj>
                    <AdminPartyId>000000F:PI:::Chandru & Mohan HEADRI:</AdminPartyId>
                    <AdminSystemType>1000000</AdminSystemType>
                </TCRMAdminContEquivBObj>

..
..

响应错误:

<TxResponse>
        <RequestType>maintainParty</RequestType>
        <TxResult>
            <ResultCode>FATAL</ResultCode>
            <DWLError>
                <ComponentType>106</ComponentType>
                <ErrorMessage>Parser DWLTransaction failed. The format of the message is not correct or an application error occurred.</ErrorMessage>
                <ErrorType>READERR</ErrorType>
                <LanguageCode>100</LanguageCode>
                <ReasonCode>4928</ReasonCode>
                <Severity>0</Severity>
                <Throwable>com.dwl.base.requestHandler.exception.RequestParserException: [Exception_myErrorHandler_SAXParseError:] The parsing of the XML failed at the following position. XML = org.xml.sax.SAXParseException: The entity name must immediately follow the &apos;&amp;&apos; in the entity reference.; line number = 53; column number = 44</Throwable>
            </DWLError>
        </TxResult>
4

1 回答 1

1

如果他们在 Informatica 中使用 XML 生成器转换来创建 XML 到 MDM,它应该会自动转换&&amp;.

也许他们正在覆盖这个属性?https://kb.informatica.com/solution/14/Pages/109542.aspx

于 2018-06-01T12:07:24.273 回答