# Project Name Case cached?

**URL:** <https://community.shotgridsoftware.com/t/project-name-case-cached/17195>\
**Category:** Pipeline Integrations\
**Tags:** fptr-tk, python-api\
**Created:** [April 18, 2023, 10:52am UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195 "2023-04-18T10:52:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lozo\_lbx](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/lozo_lbx/32/5505_2.png) [@lozo\_lbx](https://community.shotgridsoftware.com/u/lozo_lbx)\
**Post date:** [April 18, 2023, 10:52am UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/1 "2023-04-18T10:52:42Z")

</div>

During the creation of a SG Project the name was set in UPPER case: `TEST`  
This was an error so it was then edited to lower case: `test`  
Now I visualize it correctly in SG  
 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/a/a6b639970f2d184767d19b79f3e0b58027d01576.png)

The issue is that in the `before_app_launch` I define the context like so:

```python
project_path=tk.project_path
tk.context_from_path(project_path)

```

and I get `TEST` in upper case, instead.

In the Python Console I get the same result if defining my context from the `project_path` while if I use `context.project['name']` command I do get the lower case name `test`  
 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/9/9d0cf3ba96a84ec401709726b0c2d582b3345443.png)

Am I defining the `context` incorrectly? Why these difference?

---

<div class="post-metadata">

**Author:** ![lozo\_lbx](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/lozo_lbx/32/5505_2.png) [@lozo\_lbx](https://community.shotgridsoftware.com/u/lozo_lbx)\
**Post date:** [April 18, 2023, 11:09am UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/2 "2023-04-18T11:09:36Z")

</div>

Adding to this … here the issue again:

![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/7/7e7d029dda4dd7d66e1462fd6892824354e9dba8.png)

Any Idea?

---

<div class="post-metadata">

**Author:** ![lozo\_lbx](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/lozo_lbx/32/5505_2.png) [@lozo\_lbx](https://community.shotgridsoftware.com/u/lozo_lbx)\
**Post date:** [April 18, 2023, 11:22am UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/3 "2023-04-18T11:22:51Z")

</div>

I’ve even tried to set the Project Name through API

`shotgun.update("Project", 188, {"name": "test"})`

And still the issue persists.  
Is there any cached data I should “flush”?

---

<div class="post-metadata">

**Author:** ![lozo\_lbx](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/lozo_lbx/32/5505_2.png) [@lozo\_lbx](https://community.shotgridsoftware.com/u/lozo_lbx)\
**Post date:** [April 18, 2023, 12:21pm UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/4 "2023-04-18T12:21:20Z")

</div>

Another strange thing is that this seems to be related **only** to the Primary config! 🤯

 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/4/44bdb38bccc96c23e6cbdd8bc8fc9d2171d0474b.jpeg)

---

<div class="post-metadata">

**Author:** ![mmoshev](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/mmoshev/32/476_2.png) [@mmoshev](https://community.shotgridsoftware.com/u/mmoshev)\
**Post date:** [April 18, 2023, 12:33pm UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/5 "2023-04-18T12:33:55Z")

</div>

Have a look at the `tank_name` property, which corresponds to the name used for directories, etc.

---

<div class="post-metadata">

**Author:** ![lozo\_lbx](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/lozo_lbx/32/5505_2.png) [@lozo\_lbx](https://community.shotgridsoftware.com/u/lozo_lbx)\
**Post date:** [April 18, 2023, 12:37pm UTC](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/6 "2023-04-18T12:37:39Z")

</div>

> [@mmoshev](#):
>
> tank\_name property

Not sure what you mean …

![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/e/e2ce5aabb2737d3b949a86fa9ff3452cfa585cf6.png)

`tank_name` is a field of my `project` entity and I don’t see how it can affect the `name` field which, as you can see from the [prior grabs](https://community.shotgridsoftware.com/t/project-name-case-cached/17195/4), differs in case if I query it with the `shotgun.find` command or the `context_from_path` command
