# When running my code from ubantu server , then getting error variable not found for the element

**URL:** <https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307>\
**Category:** Robot Framework\
**Created:** [20 May 2024 06:46 UTC](https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307 "2024-05-20T06:46:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mukta](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mukta](https://forum.robotframework.org/u/Mukta)\
**Post date:** [20 May 2024 06:46 UTC](https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307/1 "2024-05-20T06:46:32Z")

</div>

I have created mobile app automation testcses in Page object model. It’s working fine on macbook. when same code I am running on ubantu server , then getting error for some elements - variable ${variablename} not found.

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [20 May 2024 07:11 UTC](https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307/2 "2024-05-20T07:11:42Z")

</div>

First off, It’s really hard to say anything if you don’t share how you load the variable or proper logs **but** lets speculate.

MacOS has case sensitive filesystem while Linux does not. This means;

```python
***Settings***
Resource ../Resources/vars.resource

```

If you have something like that but the actual directory name is `resources`, that will work on Mac but Not on linux and thus, variables loaded from vars.resource would be unavailable…

---

<div class="post-metadata">

**Author:** ![Mukta](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mukta](https://forum.robotframework.org/u/Mukta)\
**Post date:** [20 May 2024 08:15 UTC](https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307/3 "2024-05-20T08:15:29Z")

</div>

Thanks for your response , I have checked resource file name . it’s correct . Please let me know if that kind of error can occur due to docker container .

---

<div class="post-metadata">

**Author:** ![rasjani](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rasjani](https://forum.robotframework.org/u/rasjani)\
**Post date:** [20 May 2024 09:03 UTC](https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307/4 "2024-05-20T09:03:49Z")

</div>

> [@Mukta](#):
>
> Please let me know if that kind of error can occur due to docker container .

Yes.

Once again, if you dont share any code, there’s near 0 possibilities someone can just guess whats is causing the issue.

---

<div class="post-metadata">

**Author:** ![Mukta](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mukta](https://forum.robotframework.org/u/Mukta)\
**Post date:** [20 May 2024 10:37 UTC](https://forum.robotframework.org/t/when-running-my-code-from-ubantu-server-then-getting-error-variable-not-found-for-the-element/7307/5 "2024-05-20T10:37:49Z")

</div>

Thanks for your reply , I have resolved it by renaming of locator file name.
