Skip to main content
Solved

IAL returning error when calling API function


Forum|alt.badge.img+4
  • Sidekick (Customer)
  • 7 replies

Hello,

I have created an API package with a function to return specific data. When I call this function in my IAL, I am returned with error “table or view does not exist”

 

Some things to note:

  • I am using &AO..
  • Permissions have been granted
  • Cache has been refreshed
  • Function runs correctly in oracle
  • Function works in Lobby element
  • Function works in Quick report 
  • Function returns one value

I am unsure of what would be causing this error. Any help is appreciated.

Best answer by Jacek Borski

Are you sure that permissions to this function were granted to IFSINFO?

You can do it using with this procedure (at least in IFS8):

Database_SYS.Grant_All_Objects_Ial('IFSINFO');

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+9
  • Hero (Customer)
  • 78 replies
  • March 24, 2023

In my experience IAL’s run under userspace IFSINFO, so if you we’re calling an API you’ve written under IFSAPP, you might be better calling the API function explicity i.e. ifsapp.your_api.function. 


Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 4 replies
  • Answer
  • March 24, 2023

Are you sure that permissions to this function were granted to IFSINFO?

You can do it using with this procedure (at least in IFS8):

Database_SYS.Grant_All_Objects_Ial('IFSINFO');


Forum|alt.badge.img+4
  • Author
  • Sidekick (Customer)
  • 7 replies
  • March 24, 2023

@Jacek Borski  Looks like this was the issue, runs fine now. Thank you!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings