json ファイルから変換して、Oracle データベースにロードしようとしています
ただし、10 文字を超える数字を処理しようとすると、次のエラーが発生します。
java.sql.SQLException: class java.sql.SQLException
oracle.odi.jdbc.driver.xml.io.exception.PipelineStageException: ORABPEL- 15235
Translation Failure.
Failed to translate JSON to XML. class java.sql.SQLDataException said data exception: numeric value out of range
The incoming data does not conform to the NXSD schema. Please correct the problem.
私が使用している XSD ファイルは次のように構成されています。
<xsd:element name="Root-Element">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="recordId" type="xsd:long"/>
そして、私が読み込もうとしているjsonファイルは次のとおりです。
{
"recordId" : "5931231231123"
}
xsd 型について私が見つけた唯一のドキュメントは次のとおりです: http://www.w3.org/TR/xmlschema-2/#long
数値が 10 文字以下の場合、または要素タイプを xsd:string に変更した場合、ファイルは正しく処理されます