# A strange error is being generated

**URL:** <https://community.exalate.com/t/a-strange-error-is-being-generated/4201>\
**Category:** General Questions\
**Tags:** error, migrated\_question, jira-software-cloud\
**Created:** [November 4, 2024, 6:38am UTC](https://community.exalate.com/t/a-strange-error-is-being-generated/4201 "2024-11-04T06:38:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:38am UTC](https://community.exalate.com/t/a-strange-error-is-being-generated/4201/1 "2024-11-04T06:38:25Z")

</div>

_Originally asked by Roman on 10 April 2020 [(original question)](https://oldcommunity.exalate.com/questions/11339020)_

* * *

While performing a synchronization on Jira Cloud an error is generated saying

```auto
Field customfield_10459: Option id 'null' is not valid.

```

What does this mean an how can this be fixed?

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 4, 2024, 6:38am UTC](https://community.exalate.com/t/a-strange-error-is-being-generated/4201/2 "2024-11-04T06:38:26Z")

</div>

_Answer by Juan Grases on 10 April 2020_

This error indicates that a invalid value is being assigned to the custom field with id 10459. This usually happen when mapping the custom field of type lists as they come from the remote side doing something like:

```auto
issue.customFields."Cf Name".value = replica.customFields."Cf Name".value.value

```

or similar. The steps I recommend to deal with this are:

- Identify which CF has such ID
- Check what value are you setting on it (on the bottom of the error details page, you can access the incoming message where you can see the value received from the remote side)
- Map that value to a proper valid value on your system.

```auto
def remoteValue = replica.customFields."Cf Name".value.value

def listMap = ["High": "Critical"]

issue.customFields."Cf Name".value = listMap[remoteValue] ?: remoteValue

```

* * *

---

<div class="post-metadata">

**Author:** ![xl8bot](https://dub1.discourse-cdn.com/flex018/user_avatar/community.exalate.com/xl8bot/32/324_2.png) [@xl8bot](https://community.exalate.com/u/xl8bot)\
**Post date:** [November 6, 2024, 6:39am UTC](https://community.exalate.com/t/a-strange-error-is-being-generated/4201/3 "2024-11-06T06:39:25Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
