# \[fixed\] Templating with yaml is not working

**URL:** <https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303>\
**Category:** Drone Bugs\
**Created:** [September 23, 2021, 10:05am UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303 "2021-09-23T10:05:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Upgreydd](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/upgreydd/32/6077_2.png) [@Upgreydd](https://drone.discourse.group/u/Upgreydd)\
**Post date:** [September 23, 2021, 10:05am UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/1 "2021-09-23T10:05:47Z")

</div>

Hey. I created a template and added it by:

```auto
drone template add --namespace repositoryName --name validate-plan.yaml --data @validate-plan.yaml

```

then when I run

```auto
drone template ls                                                                                                                               

```

it returns:

```auto
  validate-plan.yaml 33m%   

```

^ what’s `33m%` ?

and then when I run:

```auto
drone template info --namespace repositoryName --name validate-plan.yaml

```

it returns:

```auto
validate-plan.yaml 33mtemplate: _:1:30: executing "_" at <.Namespace>: can't evaluate field Namespace in type *drone.Template

```

What’s wrong?

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [September 23, 2021, 12:46pm UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/2 "2021-09-23T12:46:35Z")

</div>

Someone had previously reported an issue but I think it was resolved, so you may just need to upgrade to a newer version of the CLI [Drone hangs when using templates](http://discuss.harness.io/t/drone-hangs-when-using-templates/9709)

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [September 23, 2021, 1:06pm UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/3 "2021-09-23T13:06:33Z")

</div>

@eoinmcafee00 can you confirm this template error was fixed ?

---

<div class="post-metadata">

**Author:** ![eoinmcafee00](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/eoinmcafee00/32/6526_2.png) [@eoinmcafee00](https://drone.discourse.group/u/eoinmcafee00)\
**Post date:** [September 23, 2021, 1:44pm UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/4 "2021-09-23T13:44:37Z")

</div>

@bradrydzewski

This is a valid issue which I’ve now fixed in [fixes issue where template info command wasn't working by eoinmcafee00 · Pull Request #203 · drone/drone-cli · GitHub](https://github.com/drone/drone-cli/pull/203)

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [September 23, 2021, 1:45pm UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/5 "2021-09-23T13:45:01Z")

</div>

Thanks @eoinmcafee00 !

---

<div class="post-metadata">

**Author:** ![eoinmcafee00](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/eoinmcafee00/32/6526_2.png) [@eoinmcafee00](https://drone.discourse.group/u/eoinmcafee00)\
**Post date:** [September 23, 2021, 2:54pm UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/6 "2021-09-23T14:54:09Z")

</div>

@Upgreydd this has now been fixed if you pull the latest.

---

<div class="post-metadata">

**Author:** ![Upgreydd](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/upgreydd/32/6077_2.png) [@Upgreydd](https://drone.discourse.group/u/Upgreydd)\
**Post date:** [September 23, 2021, 6:33pm UTC](https://drone.discourse.group/t/fixed-templating-with-yaml-is-not-working/10303/7 "2021-09-23T18:33:46Z")

</div>

thanks mate! 🙂 Nice work 👍
