Forum Discussion

Aaba's avatar
Aaba
Ideator III
9 years ago

How to handle special character while creating new item

Hello Guys, I want to set part properties value. The value contain "apostrophe" and type of properties is list. I want to execute it from AML query. I am getting error. Any suggestion?

4 Replies

  • Aaba's avatar
    Aaba
    Ideator III
    <AML> <Item type='Part Item Characteristic Value' id='11111111111111111111111111111111' action='edit'> <item_characteristic_id>11111111111111111111111111111111</item_characteristic_id> <display_value>Aras Value's</display_value> <item_characteristic_value_type>List</item_characteristic_value_type> </Item> </AML> This returns error as <faultstring>Values cannot contain the ' character</faultstring>. As per your suggestion i tried ' and &apos; as well. Not worked :(
  • How do you test this? Is this generated in a method? Do you have any Regular expression defined on display_value ?
  • Aaba's avatar
    Aaba
    Ideator III
    Your guess was correct :) I found server event for this which was causing issue. Thanks for your help.