# "This invocation calls a function that has the 'no\_rollback' effect, which is not allowed by its context."

**URL:** <https://forums.unrealengine.com/t/this-invocation-calls-a-function-that-has-the-no-rollback-effect-which-is-not-allowed-by-its-context/828776>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [March 27, 2023, 10:12pm UTC](https://forums.unrealengine.com/t/this-invocation-calls-a-function-that-has-the-no-rollback-effect-which-is-not-allowed-by-its-context/828776 "2023-03-27T22:12:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![j\_rapp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@j\_rapp](https://forums.unrealengine.com/u/j_rapp)\
**Post date:** [March 27, 2023, 10:12pm UTC](https://forums.unrealengine.com/t/this-invocation-calls-a-function-that-has-the-no-rollback-effect-which-is-not-allowed-by-its-context/828776/1 "2023-03-27T22:12:20Z")

</div>

Im having an issue trying to call `GetTags()` on a `creative_object_interface`. It gives me the error `"This invocation calls a function that has the 'no_rollback' effect, which is not allowed by its context."`, and Im not sure which part of the context that this is being used in is causing the error. Im using it in the following way:

```auto
    CheckSpawnerTag(PlayerSpawnerDevice: player_spawner_device, Tag: tag): void =
        if (PlayerSpawnerDevice.GetTags().Has[Tag]):
            Print("Has tag")

```

And the error occurs on the `GetTags()` call. Any idea what could be causing this?

---

<div class="post-metadata">

**Author:** ![BrendannnD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrendannnD](https://forums.unrealengine.com/u/BrendannnD)\
**Post date:** [March 28, 2023, 3:26am UTC](https://forums.unrealengine.com/t/this-invocation-calls-a-function-that-has-the-no-rollback-effect-which-is-not-allowed-by-its-context/828776/2 "2023-03-28T03:26:27Z")

</div>

Because .GetTags does not have `<transacts>`, it can’t be used inside of an if statement. You’ll need an if statement for the .Has[Tag], but you should be able to do

```auto
        Tags := PlayerSpawnerDevice.GetTags()
        if(Tags.Has[Tag]):
            Print("Has tag")

```
