# Non-existing index or alias 'session1'

**URL:** https://forum.robotframework.org/t/non-existing-index-or-alias-session1/7060
**Category:** Robot Framework
**Created:** [25 March 2024 07:50 UTC](https://forum.robotframework.org/t/non-existing-index-or-alias-session1/7060 "2024-03-25T07:50:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![surya](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surya](https://forum.robotframework.org/u/surya)
#### Post date: [25 March 2024 07:50 UTC](https://forum.robotframework.org/t/non-existing-index-or-alias-session1/7060/1 "2024-03-25T07:50:18Z")

</div>

How to resolve this error?

Non-existing index or alias ‘session1’.

---

<div class="post-metadata">

### Author: ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)
#### Post date: [25 March 2024 08:11 UTC](https://forum.robotframework.org/t/non-existing-index-or-alias-session1/7060/2 "2024-03-25T08:11:23Z")

</div>

Hi Surya,

Based on the information you’ve given I’d say you’ve passed a session name to a keyword that expects an existing session, but you haven’t called the keyword that creates the session.

There’s not enough information here for anyone to help you, please

- mention which library you are using,
- show the test case that is giving you the error
- make sure the error is the exact text of the error if it’s not

Dave.

---

<div class="post-metadata">

### Author: ![surya](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surya](https://forum.robotframework.org/u/surya)
#### Post date: [26 March 2024 05:08 UTC](https://forum.robotframework.org/t/non-existing-index-or-alias-session1/7060/3 "2024-03-26T05:08:56Z")

</div>

Thanks Dave  
I have another doubt in the following snippet:

```
  FOR ${item} IN @{response_json}
    ${Ids}= Get From Dictionary ${item} Id
    ${Ids_str}= Convert To String ${Ids}
    ${Id_value_str}= Convert To String 11111
    Run Keyword If '${Ids_str}' == '${Id_value_str}'
    ... Log Get From Dictionary ${item} name 
END

```

Am getting the below error while executing this code  
AttributeError: ‘dict’ object has no attribute ‘upper’

How to resolve this error.

---

<div class="post-metadata">

### Author: ![CharlieScene](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/charliescene/32/3484_2.png) [@CharlieScene](https://forum.robotframework.org/u/CharlieScene)
#### Post date: [26 March 2024 19:26 UTC](https://forum.robotframework.org/t/non-existing-index-or-alias-session1/7060/4 "2024-03-26T19:26:21Z")

</div>

Hello,

It seems you only call for Id or Name in the dictionary, however :

- Is there any key or value ‘upper’ in your response\_json (if error on second line) ?
- And do you have somewhere else ${item} variable defined? I’m thinking of the value already set on first line, and searched in the dict

Also in step by step debugging, do you know on which line error occurs?

Regards

Charlie
