cancel
Showing results for 
Search instead for 
Did you mean: 

Invalidated Procedure?

Former Member
0 Kudos
7,023

My previously working procedures have suddenly become unusable. Each of their object icon in the Navigator now has a small gray box. Calling any of the procedure gives the following error message. Also, all the action buttons (Execute, Refresh) in the Definition view are grayed out. So Hana really thinks the procedures are not valid.

Could not execute 'call SCHEMA.PROC_NAME()'

SAP DBTech JDBC: [430]: invalidated procedure: PROC_NAME: line 1 col 24 (at pos 23)

What's the meaning of "Invalidated Procedure"? I can't find a "validate" feature for procedures. BTW, these are RLang procedures.

Thanks,

Ming

View Entire Topic
Former Member

Hi Ming,

Usually the message indicates that you don't have read permissions for one or more of the tables/schemas referenced in the procedure. Make sure you grant all required authorizations to the user that owns (if procedure was defined with SECURITY DEFINER) or runs (if defined with SECURITY INVOKER) the stored procedure.

Stored Procedures are explained in detail in the SQL Script Guide...

--juergen

Former Member
0 Kudos

It's interesting to see how proactive Hana is at ensuring dependency integrity between related objects. I'm used to run something, get error messages back and then realized something is wrong. In this case, Hana has done that determination for me a head of time, as Juergen has suggested. Pretty cool, except that it'll be much more helpful if it could bubble up the root cause to the GUI. It shouldn't be hard to implement but will be of great value. (Feature request, unless there is a way of drilling into the error message and call stack of procedure calls, like that for job runs.)

Anyway, in this case, after some dependent views was redeployed, the procedures ran without a problem. BTW, the little "blue (not grey) box" on the procedure icon doesn't indicate invalidation. It's just part of the icon.