# How to change the gameplay tag so using python

**URL:** <https://forums.unrealengine.com/t/how-to-change-the-gameplay-tag-so-using-python/780582>\
**Category:** Photogrammetry\
**Tags:** unreal-engine, editor, question\
**Created:** [February 28, 2023, 5:16pm UTC](https://forums.unrealengine.com/t/how-to-change-the-gameplay-tag-so-using-python/780582 "2023-02-28T17:16:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanyaaaaaaaaaaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sanyaaaaaaaaaaa](https://forums.unrealengine.com/u/Sanyaaaaaaaaaaa)\
**Post date:** [February 28, 2023, 5:16pm UTC](https://forums.unrealengine.com/t/how-to-change-the-gameplay-tag-so-using-python/780582/1 "2023-02-28T17:16:44Z")

</div>

I get the gameplay tag from the table, then I want to set it by default in my blueprint class, but it doesn’t work, tell me how do I do it?

item\_slot = unreal.PythonDataTableLib.get\_property\_as\_string\_at(dt\_melee, row\_id= row\_num, column\_id= 5)  
blueprint\_class\_default.set\_editor\_property(‘ItemSlot’, unreal.GameplayTag(item\_slot))

LogPython: Error: TypeError: NativizeProperty: Cannot nativize ‘str’ as ‘Value’ (StructProperty)  
LogPython: Error: TypeError: NativizeStructInstance: Cannot nativize ‘str’ as ‘GameplayTag’  
LogPython: Error: Exception: GameplayTag: Struct has 0 initialization parameters, but the given sequence had 31 elements
