Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

String Literal Limitation On Passing XML Doc In Query

$
0
0

I am trying to pass a large XML document to an Oracle PLSQL procedure as a CLOB via an MII SQL Fixed Query.  It works if the file size is relatively small but not for large files.  Beyond a certain point I get a "string literal too long" error.

 

Here is what my fixed query looks like:

 

DECLARE

 

xmlData CLOB;

 

BEGIN

   xmlData := '[Param.1]';

 

  -- line below is calling my PLSQL procedure

  insert_from_xml_doc( xmlData, 'tableNameHere');

END

 

I believe the "string literal too long" error is because of this statement above:

 

xmlData := '[Param.1]';

 

It makes sense to me that it would break if that string literal in the single quotes is too long but I don't know of another way to get the data to the CLOB variable.

 

Does anyone know of a workaround for this limitation?  I am getting the XML data from a machine's log file in the factory and posting it to an MII transaction via the PCo File Monitor capability.  From the transaction I am calling the SQL query.

 

Thank you,

Mike


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>