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 7693237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:02:27+00:00 2026-05-31T21:02:27+00:00

I get error: ORA-06575: Package or function GET_CONC_NAMES is in an invalid state When

  • 0

I get error:

ORA-06575: Package or function GET_CONC_NAMES is in an invalid state

When I try to call my get_conc_names function by:

SELECT get_conc_names(EVENT_ID) FROM DT_EVENT_SERVICE;

The function itself:

CREATE OR REPLACE FUNCTION get_conc_names( p_event_id IN dt_event_service.event_id%type ) 
  RETURN VARCHAR2 
IS 
  l_conc_names VARCHAR2(32676);  
  -- You may want a smaller variable if you know the result will be smaller 
BEGIN 
  SELECT LTRIM(SYS_CONNECT_BY_PATH(name, ', '),',') conc_names 
    INTO l_conc_names 
    FROM ( 
      SELECT id, name, rownumber, cnt 
        FROM (SELECT es.EVENT_ID as id
                    ,s.SERVICE_NAME as name
                    ,ROW_NUMBER() OVER (order by name) as rownumber
                    ,COUNT(*) OVER () as cnt
                FROM DT_SERVICES s 
                     JOIN DT_EVENT_SERVICE es ON s.SERVICE_ID = es.SERVICE_ID 
               WHERE es.EVENT_ID = p_event_id ) 
             ) data 
    WHERE rownumber = cnt 
    START WITH rownumber = 1 
    CONNECT BY PRIOR rownumber = rownumber-1; 
  RETURN l_conc_names; 
END; 

Compilation errors:

Compilation failed,line 13 (10:58:37) PL/SQL: ORA-00904: “NAME”:
invalid identifierCompilation failed,line 7 (10:58:37) PL/SQL: SQL
Statement ignored

  • 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-05-31T21:02:28+00:00Added an answer on May 31, 2026 at 9:02 pm

    The wrong identifier is probably in the ROW_NUMBER() OVER (order by name) clause.

    CREATE OR REPLACE FUNCTION get_conc_names( p_event_id IN dt_event_service.event_id%type ) 
      RETURN VARCHAR2 
    IS 
      l_conc_names VARCHAR2(32676);  
      -- You may want a smaller variable if you know the result will be smaller 
    BEGIN 
      SELECT LTRIM(SYS_CONNECT_BY_PATH(name, ', '),',') conc_names 
        INTO l_conc_names 
        FROM ( 
          SELECT id, name, rownumber, cnt 
            FROM (SELECT es.EVENT_ID as id
                        ,s.SERVICE_NAME as name
                        ,ROW_NUMBER() OVER (order by s.SERVICE_NAME) as rownumber
                        ,COUNT(*) OVER () as cnt
                    FROM DT_SERVICES s 
                         JOIN DT_EVENT_SERVICE es ON s.SERVICE_ID = es.SERVICE_ID 
                   WHERE es.EVENT_ID = p_event_id ) 
                 ) data 
        WHERE rownumber = cnt 
        START WITH rownumber = 1 
        CONNECT BY PRIOR rownumber = rownumber-1; 
      RETURN l_conc_names; 
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the error: ORA-01855: AM/A.M. or PM/P.M. required when I try to execute
we have a function if we call it by using SELECT we get the
Recently I had to write an oracle function, and the error ora-06575 popped up
What is the best way to get error messages from a WF4 workflow back
I use the following jquery statements but i get error in this function onGetDataSuccess(result)
When we try to create a view within a funcion we get ERROR: there
1.0.6 my program works excellent but in Oracle 11.2 i get error ORA-01830 what
I get this error Message: ORA-00060: deadlock detected while waiting for resource even though
I have this query and I get error Operand should contain 1 column(s), whats
In our application we've run into an error numerous times where we get error

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.