Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8256243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:47:49+00:00 2026-06-08T01:47:49+00:00

I am getting ORA-21560: argument 3 is null, invalid, or out of range error

  • 0

I am getting “ORA-21560: argument 3 is null, invalid, or out of range” error on running query:

SELECT extractvalue(xmltype(blob2clob(shblobdata.blobdata)),
    '/booked-order/ads/online-content[name="quantity"]/value')
FROM shblobdata
WHERE id=...;

the full error is:

ORA-21560: argument 3 is null, invalid, or out of range
ORA-06512: at "SYS.DBMS_LOB", line 978
ORA-06512: at "MORAS.BLOB2CLOB", line 14

21560 . 00000 – “argument %s is null, invalid, or out of range”

*Cause: The argument is expecting a non-null, valid value but the
argument value passed in is null, invalid, or out of range.
Examples include when the LOB/FILE positional or size
argument has a value outside the range 1 through (4GB – 1),
or when an invalid open mode is used to open a file, etc.

*Action: Check your program and correct the caller of the routine
to not pass a null, invalid or out-of-range argument value.

I have tried to change “quantity” to ”quantity” (changing single quote to two apostrophes), but got the same error.

The content of blob is:

<?xml version="1.0" encoding="utf-8"?>
<booked-order>
    <ads>
        <online-content>
            <name>quantity</name>
            <value>19872</value>
        </online-content>
    </ads>
</booked-order>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:47:52+00:00Added an answer on June 8, 2026 at 1:47 am

    The problem is in your custom function MORAS.BLOB2CLOB.

    Also the error message says clearly ORA-06512: at "MORAS.BLOB2CLOB", line 14

    The extract itself is ok, when you keep out BLOB2CLOB and test with

    SELECT EXTRACTVALUE (xmltype ( (shblobdata.blobdata)), '/booked-order/ads/online-content[name="quantity"]/value')
      FROM (SELECT '<?xml version="1.0" encoding="utf-8"?>
    <booked-order>
        <ads>
            <online-content>
                <name>quantity</name>
                <value>19872</value>
            </online-content>
        </ads>
    </booked-order>
    ' blobdata
              FROM DUAL) shblobdata
    ;
    

    it returns 19872

    I’d first debug your function blob2clob with

    SELECT blob2clob(shblobdata.blobdata)
      FROM shblobdata
     WHERE id=...;
    

    And if that works ok continue on to the XML parts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting ORA-04079: invalid trigger specification error for this trigger, can figure out why? Tables
Getting ORA-00918: column ambiguously defined: running this SQL: SELECT * FROM (SELECT DISTINCT(coaches.id), people.*,
Im getting this error: ORA-00904: M: invalid identifier --> if I put ('M','F') //single
I am getting ORA-00979 with the following query: SELECT cr.review_sk, cr.cs_sk, cr.full_name, tolist(to_char(cf.fact_date, 'mm/dd/yyyy'))
I am getting ORA-00905: missing keyword error when trying to run the following query
I'm having trouble getting this query to run. I keep getting an ORA-00933 error.
I am getting the error ORA-00936: missing expression on the following SQL statement: SELECT
I am getting ORA-02049 occasionally for some long-running and/or intensive transactions. There is seemingly
I am not able to execute this query getting ORA-00933: SQL command not properly
I'm getting an error message of ORA-00936: missing expression at the very start of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.