Fault: Invalid custom field value for field id 27

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
karta88821
Posts: 2
Joined: 22 Aug 2023, 02:36

Fault: Invalid custom field value for field id 27

Post by karta88821 »

I used the Mantis soap api to create new issue.
I got this error "Fault: Invalid custom field value for field id 27" while creating a new issue with custom fields.
But I have no ideas why the value of this field is invalid.

Here is content of custom_fields:

Code: Select all

'custom_fields': [
    'field': {
        'id': 27,
        'name': 'Site'
    },
    'value': u'MY_SITE'
]


Please give me some ideas, thanks!
JulesA
Posts: 37
Joined: 11 Feb 2020, 10:01

Re: Fault: Invalid custom field value for field id 27

Post by JulesA »

Hello,

why is there an extra "u" ?
'value': u'MY_SITE'
instead of just
'value': 'MY_SITE'
Kind regards

Jules
karta88821
Posts: 2
Joined: 22 Aug 2023, 02:36

Re: Fault: Invalid custom field value for field id 27

Post by karta88821 »

Hi, Jules:
This json string is generated by json.loads() which is the json decoder in python.
The prefix 'u' means this string is a unicode string.

BR,
Daniel
Post Reply