# Cannot find a definition for job named when using orb

**URL:** <https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190>\
**Category:** Build Environment\
**Tags:** orbs, circle-yml\
**Created:** [January 10, 2024, 8:22am UTC](https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190 "2024-01-10T08:22:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonathanE](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jonathane/32/34748_2.png) [@JonathanE](https://discuss.circleci.com/u/JonathanE)\
**Post date:** [January 10, 2024, 8:22am UTC](https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190/1 "2024-01-10T08:22:27Z")

</div>

Hi,  
I’m trying running this config:

```auto
setup: true
version: 2.1
orbs:
  git-shallow-clone: guitarrapc/git-shallow-clone@2.8.0
workflows:
  setup:
    jobs:
      - git-shallow-clone/checkout:
          depth: 1

```

the flow is not running and I get:

```auto
Error calling workflow: 'setup'
Cannot find a definition for job named git-shallow-clone/checkout

```

Can’t understand why, the Orb is from the registry and I run the example…

Thanks

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [January 10, 2024, 9:44am UTC](https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190/2 "2024-01-10T09:44:02Z")

</div>

> [@JonathanE](#):
>
> `setup: true`

That line should not be part of your config.yml

---

<div class="post-metadata">

**Author:** ![JonathanE](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jonathane/32/34748_2.png) [@JonathanE](https://discuss.circleci.com/u/JonathanE)\
**Post date:** [January 10, 2024, 9:55am UTC](https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190/3 "2024-01-10T09:55:05Z")

</div>

I think I need it to the next changes, I’ve tried without it and still not working

---

<div class="post-metadata">

**Author:** ![rit1010](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rit1010/32/34738_2.png) [@rit1010](https://discuss.circleci.com/u/rit1010)\
**Post date:** [January 10, 2024, 11:10am UTC](https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190/4 "2024-01-10T11:10:40Z")

</div>

OK, I’m not sure why that code is now not working as it is the standard way of showing a basic ORB example.

Below is the same code, but in a more formal layout as

- the work to be done has been moved into a defined job
- the environment to be used to run the job has been defined via the docker command.

```auto
version: 2.1

orbs:
  git-shallow-clone: guitarrapc/git-shallow-clone@2.8.0

jobs:
  call-checkout:
    docker:
      - image: cimg/base:2022.03
    steps:
      - git-shallow-clone/checkout:
          depth: 1

workflows:
  my-workflow:
    jobs:
      - call-checkout

```

---

<div class="post-metadata">

**Author:** ![JonathanE](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jonathane/32/34748_2.png) [@JonathanE](https://discuss.circleci.com/u/JonathanE)\
**Post date:** [January 10, 2024, 11:58am UTC](https://discuss.circleci.com/t/cannot-find-a-definition-for-job-named-when-using-orb/50190/5 "2024-01-10T11:58:29Z")

</div>

Thanks you, working
