Home » SQL & PL/SQL » SQL & PL/SQL » PLS-00172: string literal too long while passing large XML as input to a procedure (Oracle Database 21c Express Edition Release 21.0.0.0.0 - Production Version 21.3.0.0.0)
|
Re: PLS-00172: string literal too long while passing large XML as input to a procedure [message #690040 is a reply to message #690039] |
Mon, 23 September 2024 10:10   |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
1/ If you want where the comes from from, first remove WHEN OTHERS clause. Read WHEN OTHERS.
2/ From what you posted, the error comes from the PL/SQL you attached and not the procedure:
SQL> DECLARE
2 l_output_value VARCHAR2(100);
3 l_xml_data clob := '
4
5 <root>
6 <items>
7 <item>
8 <name>Item 1</name>
9 <description>This is a detailed d
...
344 </item>
345 <!-- Repeat as needed to reach 5000 characters -->
346 </items>
347 </root>
348 ';
349
350 BEGIN
351
352 process_large_xml1(l_xml_data, l_output_value);
353
354 DBMS_OUTPUT.PUT_LINE (l_output_value);
355
356 END;
357 /
l_xml_data clob := '
*
ERROR at line 3:
ORA-06550: line 3, column 20:
PLS-00172: string literal too long
Split the string into several substrings like 'xxx'||'yyy'||'zzz'...
[Updated on: Mon, 23 September 2024 10:11] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat May 03 18:56:02 CDT 2025
|