# Error\_configuration(parse

**URL:** <https://forum.inductiveautomation.com/t/error-configuration-parse/98667>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 15, 2024, 3:22pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667 "2024-11-15T15:22:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [November 15, 2024, 3:22pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667/1 "2024-11-15T15:22:24Z")

</div>

Hey, so I'm having some trouble figuring out why I'm getting a parse error about my indentation on my return value. It doesn't make much sense since I haven't moved it from the auto generated set up. I tested it in both my script transform and the script console and receive the same error. I would really appreciate some advice on this. Below is my script.

```python
def transform(self, value, quality, timestamp):
		
		Zabbix_server = "XXXXXX"
		Zabbix_user = "XXXXX"
		Zabbix_password = "XXXXX"
		Zabbix_token = "XXXXXX"
		
		api = ZabbixAPI(url = Zabbix_server)
		
		if api.version >= 5.4:
			api.login(token = Zabbbix_token)
		else:
			api.login(user = Zabbix_user, password = Zabbix_password)
		
		users = api.user.get(
			output = ['userid', 'name']
		)
		
		for user in users:
			print(user['name'])
			
		api.logout()
		
	return value

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 15, 2024, 3:31pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667/2 "2024-11-15T15:31:08Z")

</div>

The rest of your script is clearly indented an extra level, have you tried fixing that?

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [November 15, 2024, 3:33pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667/3 "2024-11-15T15:33:47Z")

</div>

Yes I have, it still gives me the same error. The software automatically puts my cursor there to start anyway so once I attempted it and it didn't work, I just left it as is.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 15, 2024, 3:36pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667/4 "2024-11-15T15:36:29Z")

</div>

Well, the mismatched indentation is wrong. All code in a logical block needs to have the same indentation (other than continuation lines).

Either remove the extra tabs on the bulk of the code, or add another tab before the return. 🤷‍♂️

Doesn't matter how it got screwed up, it won't work that way.

---

<div class="post-metadata">

**Author:** ![Sydney\_Warsaw](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@Sydney\_Warsaw](https://forum.inductiveautomation.com/u/Sydney_Warsaw)\
**Post date:** [November 15, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667/5 "2024-11-15T15:43:47Z")

</div>

This helped get rid of the parse error. Thank you, I am very new to this software. By chance could explain this syntax error to me as well? "SyntaxError: ("mismatched input ':' expecting RPAREN"

I'm assuming the language doesn't support this type of input in this instance but I'm probably wrong.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 15, 2024, 3:54pm UTC](https://forum.inductiveautomation.com/t/error-configuration-parse/98667/6 "2024-11-15T15:54:11Z")

</div>

The python compiler thinks you are missing a right parenthesis at that point (where the colon is).
