# Error saying "There is no custom keyword." even though I have defined keywords under a package

**URL:** <https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [November 9, 2017, 10:35am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259 "2017-11-09T10:35:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shrikanth\_S\_Menon](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@Shrikanth\_S\_Menon](https://forum.katalon.com/u/Shrikanth_S_Menon)\
**Post date:** [November 9, 2017, 10:35am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/1 "2017-11-09T10:35:50Z")

</div>

I could access the custom keyword until i created a new package for a set of other custom keywords. Now Katalon does not recognize any keywords although they are defined.

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [November 9, 2017, 10:54am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/2 "2017-11-09T10:54:21Z")

</div>

I’ve tried again our latest version 5.0.1 and observe no problems. Can I see your custom keyword definition?

---

<div class="post-metadata">

**Author:** ![Shrikanth\_S\_Menon](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@Shrikanth\_S\_Menon](https://forum.katalon.com/u/Shrikanth_S_Menon)\
**Post date:** [November 10, 2017, 5:31am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/3 "2017-11-10T05:31:59Z")

</div>

Things started working after I restarted Katalon studio. Guess this is an intermittent issue.

---

<div class="post-metadata">

**Author:** ![Fabien\_Balhier](https://avatars.discourse-cdn.com/v4/letter/f/e0b2c6/32.png) [@Fabien\_Balhier](https://forum.katalon.com/u/Fabien_Balhier)\
**Post date:** [November 17, 2017, 2:21pm UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/4 "2017-11-17T14:21:29Z")

</div>

I have this issue too. I simply followed this to create my first custom keyword : [https://docs.katalon.com/display/KD/Define+custom+keywords](https://docs.katalon.com/display/KD/Define+custom+keywords)

---

<div class="post-metadata">

**Author:** ![Fabien\_Balhier](https://avatars.discourse-cdn.com/v4/letter/f/e0b2c6/32.png) [@Fabien\_Balhier](https://forum.katalon.com/u/Fabien_Balhier)\
**Post date:** [November 17, 2017, 2:24pm UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/5 "2017-11-17T14:24:26Z")

</div>

Okay it seems the class name “login” was already used. My bad.

---

<div class="post-metadata">

**Author:** ![Muhammad\_Yassar\_Esma](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@Muhammad\_Yassar\_Esma](https://forum.katalon.com/u/Muhammad_Yassar_Esma)\
**Post date:** [January 3, 2018, 9:35am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/6 "2018-01-03T09:35:33Z")

</div>

Hi.

Make sure to add the annotations ‘@Keyword’ before the function declaration.

> @Keyword  
> def keywordName(parameters…) {  
> // enter your code here  
> // you can use either Groovy or Java  
> }

---

<div class="post-metadata">

**Author:** ![nidhi\_mishra](https://avatars.discourse-cdn.com/v4/letter/n/48db29/32.png) [@nidhi\_mishra](https://forum.katalon.com/u/nidhi_mishra)\
**Post date:** [February 7, 2018, 12:32pm UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/7 "2018-02-07T12:32:54Z")

</div>

hi  
I face the similar issue. please help. Attached screenshots for [convenience](https://www.google.co.in/search?client=safari&rls=en&q=convenience&ie=UTF-8&oe=UTF-8&gfe_rd=cr&dcr=0&ei=0PB6Wv7MAtaFrAGlkaiIAw "Link: https://www.google.co.in/search?client=safari&rls=en&q=convenience&ie=UTF-8&oe=UTF-8&gfe\_rd=cr&dcr=0&ei=0PB6Wv7MAtaFrAGlkaiIAw").

[Screen Shot 2018-02-07 at 4.09.32 PM.png](https://s3.amazonaws.com/katalon-forum/editor/8n/oscry6dgjwfa.png)

[Screen Shot 2018-02-07 at 6.00.16 PM.png](https://s3.amazonaws.com/katalon-forum/editor/a8/kgntvah4nntr.png)

[Screen Shot 2018-02-07 at 6.01.32 PM.png](https://s3.amazonaws.com/katalon-forum/editor/dk/lczvfrik6dhc.png)

---

<div class="post-metadata">

**Author:** ![Ana\_Hong](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ana\_Hong](https://forum.katalon.com/u/Ana_Hong)\
**Post date:** [February 8, 2018, 2:47am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/8 "2018-02-08T02:47:37Z")

</div>

You need to add @Keyword before your METHOD declaration, NOT before your class declaration.

---

<div class="post-metadata">

**Author:** ![Shanna\_Long](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@Shanna\_Long](https://forum.katalon.com/u/Shanna_Long)\
**Post date:** [June 6, 2018, 8:09pm UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/9 "2018-06-06T20:09:51Z")

</div>

I am having this same issue. I created the keyword and have @keyword before the method, not the class. Every time I try to add a line to the manual view it says there are no custom keywords.

![](https://s3.amazonaws.com/katalon-forum/editor/jx/l81fv93mrg7j.png "Image: https://s3.amazonaws.com/katalon-forum/editor/jx/l81fv93mrg7j.png")

[image.png](https://s3.amazonaws.com/katalon-forum/editor/jx/l81fv93mrg7j.png)

---

<div class="post-metadata">

**Author:** ![santhosh\_khati](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@santhosh\_khati](https://forum.katalon.com/u/santhosh_khati)\
**Post date:** [June 7, 2018, 9:23am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/10 "2018-06-07T09:23:44Z")

</div>

hi please help me ![](https://s3.amazonaws.com/katalon-forum/editor/vf/h6ct4ixneubq.png)

[i.png](https://s3.amazonaws.com/katalon-forum/editor/vf/h6ct4ixneubq.png)

---

<div class="post-metadata">

**Author:** ![purbo](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@purbo](https://forum.katalon.com/u/purbo)\
**Post date:** [June 7, 2018, 9:44am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/11 "2018-06-07T09:44:46Z")

</div>

> santhosh khati said:
> 
> hi please help me ![](https://s3.amazonaws.com/katalon-forum/editor/vf/h6ct4ixneubq.png "Image: https://s3.amazonaws.com/katalon-forum/editor/vf/h6ct4ixneubq.png")

i think yours supposed to be like this

public class newkeyword{

@keyword

def clickUsingJS(TestObject to, int timeout){

//add your code here

}

}

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [November 2, 2019, 4:42am UTC](https://forum.katalon.com/t/error-saying-there-is-no-custom-keyword-even-though-i-have-defined-keywords-under-a-package/8259/12 "2019-11-02T04:42:34Z")

</div>


