Link to home
Start Free TrialLog in
Avatar of nour911
nour911

asked on

Error 201 Indeitfied functionname must be declared

hi,

when i created a funciton the in the back-end and try to run from the form or report i got this error ,  what is the reason ?

thank you,
nour911
Avatar of Eyal
Eyal
Flag of Israel image

try to call it like this...

databasename.dbo.functionname()
Try this

without parameter
select * from dbo.functionName()

Open in new window


with parameter
select * from dbo.functionName(parametername1,parametername2,...)

Open in new window


if you still get error please give error details.
have you connected to the proper database? if yes, you should get it.

try to execute the function through sql plus first, if successful, do it in forms or reports. You may check copying in forms or reports program unit as well

Hope this help

Avatar of nour911
nour911

ASKER


Thank you all,

when i run this function sqlplus it is working okay, but in the forms or report it is give me this error 201
Avatar of nour911

ASKER

when i run in the form

declare
 ret varchar2(50);
begin
ret := spell_number(10);
end;

----
when i do compile i got this error
error 201 indentifier spell_number must be decleared

-------------

try this

declare
ret varchar2(50);
begin
select spell_number(10) into ret from dual;
end;
Avatar of nour911

ASKER

Leoahmad

i try but get same error
ASKER CERTIFIED SOLUTION
Avatar of Muhammad Ahmad Imran
Muhammad Ahmad Imran
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it is seems to be a "Privillege issue"

Grant required privilleges to execute the procedure to connected user
Avatar of nour911

ASKER


LeoAhmad

the problem is not only with this function, the problem with any function i created.

But i have anotehr database, when i tried to run the function from form it is working fine.

Avatar of nour911

ASKER

Shajukg

i grant all the priviliges to this user... but same error
Have you tried this function creating in Forms Program units? if it works then surely you have privileges problem.
Are u connected as owner in forms or u connected with diff. user who has  aquired privilleges thru roles. If it is the second case u need explicit grants from owner to run the procedure.
Avatar of nour911

ASKER


Leoahmad

yes the function is working fine in forms programming units,
if it is priviliges problem ? what will be ??
Avatar of nour911

ASKER


Shajukg

i connect as the owner ,,
is  the function name case sensitive?
Avatar of nour911

ASKER

shajukg:

No
select * from all_objects where object_name ='SPELL_NUMBER';

-- put spell_number in caps only

Avatar of nour911

ASKER

Shajukg

when i try this
select * from all_objects where object_name ='SPELL_NUMBER';

i got this error:
ORA-06552: PL/SQL: compilation unit analysis terminated
ORA-06553: character set name is not recognized

then i try to desc all_objects
ORA-00942: table or view does not exist
Avatar of nour911

ASKER

how can i fix this problem ??
I think the important error here is "character set name is not recognized"

Check the character sets between the two databases and your NLS_LANG from your client machine.  Make sure everything matches.
Avatar of nour911

ASKER

Ok i will tomorrow ,
Thank you
Avatar of nour911

ASKER

SlightWv

i check the character set in both PC they are same
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nour911

ASKER

ok