Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create Routines and Use them in tJava

Hi
I have a particular business requirement for which I had to write my own java code and Now I want to put this code into routines.
The problem I encounter is strange Even though I tell it to put in a particular package It doesn't put the code into that package and even if I change it manually it keeps giving me errors.
It always put my code into some weekly_dashboard package.
And Pls give me information on how to use these routines in tJava or any component once I get this working.
Thanks
Surya
Labels (3)
16 Replies
Anonymous
Not applicable
Author

Hi
Pls find the error message I get.

The declared package "routines.weekly_dashboard" does not match the expected package ""

Regards
Surya
Anonymous
Not applicable
Author

Yea, I think you need to change it, like I said in my last post.
Anonymous
Not applicable
Author

Hi
I have tried that, still my program gives me the same error.
Surya
Anonymous
Not applicable
Author

Did you save it? Also, it shouldn't be giving you the exact same error, since your declared package name has changed.
Anonymous
Not applicable
Author

Hi
Yes I did save it and even after changing the package to routines it gives the same error.

The declared package "routines" does not match the expected package ""
Attached Image to show.
Thanks
Surya
Anonymous
Not applicable
Author

hi,
by default the package definition is:
package routines.<project name>;
in you case;
package routines.weekly_dashboard;
unfortunately, i got no suggestions. but for argument sake try creating another project and a routine in it.
Anonymous
Not applicable
Author

Hello
The package name is fixed and it always is routines. I remember there was a bug about can't save the routine after edit it on previous version and it have been fixed on the latest version.
Best regards

shong