Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is mean by this error message?

Posted on 2008-06-25
7
765 Views
Last Modified: 2013-12-19
Hi,
   When i run the below PL/SQL block i am getting ORA-24334: no descriptor for this position error.

set serveroutput on
DECLARE
     g_line_id   sample_pkg_1.FND_TABLE_OF_VARCHAR2_4000 := sample_pkg_1.FND_TABLE_OF_VARCHAR2_4000 ();
     g_gen       sample_pkg_1.FND_TABLE_OF_VARCHAR2_4000 := sample_pkg_1.FND_TABLE_OF_VARCHAR2_4000 ();
BEGIN
    sample_pkg_1.get_info (6674, g_line_id, g_gen);
    FOR i IN 1 .. g_line_id.COUNT
    LOOP
        DBMS_OUTPUT.put_line ('g_line_id(' || i || '): ' || g_line_id (i));
    END LOOP;
    FOR i IN 1 .. g_gen.COUNT
    LOOP
        DBMS_OUTPUT.put_line ('g_gen(' || i || '): ' || g_gen (i));
    END LOOP;
END;
            Can you anyone share with me about the reason of this error?
Thanks
0
Comment
  • 4
  • 3
7 Comments
 
LVL 48

Expert Comment

by:schwertner
ID: 21863930
What this means?

sample_pkg_1.FND_TABLE_OF_VARCHAR2_4000 := sample_pkg_1.FND_TABLE_OF_VARCHAR2_4000 ();

You can use type clause instead
0
 

Author Comment

by:Suriyaraj_Sudalaiappan
ID: 21864049
No i am using array with in package. That's what i am calling the package in this way.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 21864077
This is neither a package nor a procedure.
This is PL/SQL anonymous block.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Suriyaraj_Sudalaiappan
ID: 21864426
No i have created the package with name of sample_pkg_1. And get_info is the procedure with in that package. I am calling this package from anonymous block. Because i am using Array in the package. That's what i am invoking the package through this way.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 21864607
If you are using array in a package it should be declared firstly as type.
Even outside the package.
If you do not do this you will have error messages.
And this happens ...
0
 

Accepted Solution

by:
Suriyaraj_Sudalaiappan earned 0 total points
ID: 21871777
Yes i have declared already inside the package like below

TYPE FND_TABLE_OF_VARCHAR2_4000 IS VARRAY (100) OF VARCHAR2(4000);

So no need to declare again right.
0
 
LVL 48

Expert Comment

by:schwertner
ID: 21872328
As I recall this what you declary has local scope - only in the package.
The type is unknown outside the package.
To use it outside the package you have to declare it at schema level.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question