<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Unable to create new user using  JSONWS API  :add-user-with-workflow</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112944602" />
  <subtitle>Unable to create new user using  JSONWS API  :add-user-with-workflow</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112944602</id>
  <updated>2026-04-06T15:01:26Z</updated>
  <dc:date>2026-04-06T15:01:26Z</dc:date>
  <entry>
    <title>RE: Unable to create new user using  JSONWS API  :add-user-with-workflow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112957704" />
    <author>
      <name>Gnaniyar Zubair</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112957704</id>
    <updated>2019-04-02T12:27:21Z</updated>
    <published>2019-04-02T12:27:21Z</published>
    <summary type="html">HI,&lt;br /&gt;&lt;br /&gt;It worked after David replied or really u had some issue while parsing ... ? &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;Please share the issue u identified which would be helpful for others.</summary>
    <dc:creator>Gnaniyar Zubair</dc:creator>
    <dc:date>2019-04-02T12:27:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Unable to create new user using  JSONWS API  :add-user-with-workflow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112950993" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112950993</id>
    <updated>2019-04-01T18:17:47Z</updated>
    <published>2019-04-01T18:17:47Z</published>
    <summary type="html">Dear David,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;it is working fine now&lt;br /&gt;&lt;br /&gt;thank you so much.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you &lt;br /&gt;Ram</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-04-01T18:17:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Unable to create new user using  JSONWS API  :add-user-with-workflow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112946396" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112946396</id>
    <updated>2019-04-01T12:58:23Z</updated>
    <published>2019-04-01T12:58:23Z</published>
    <summary type="html">So you have to check server side to see what field the conversion failed on, likely the open id since that&amp;#39;s the only column you&amp;#39;re sending an empty string.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-04-01T12:58:23Z</dc:date>
  </entry>
  <entry>
    <title>Unable to create new user using  JSONWS API  :add-user-with-workflow</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112944601" />
    <author>
      <name>Ramalingaiah. D</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112944601</id>
    <updated>2019-04-01T07:20:45Z</updated>
    <published>2019-04-01T07:20:45Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi ,&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;We are invoking the API 'add-user-with-workflow'using the following request body:&lt;br&gt;&lt;br&gt;Getting resnse :&lt;pre&gt;&lt;code&gt;"Conversion failed: ; &amp;amp;lt;--- java.lang.NumberFormatException: For input string: \"\""&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;Liferay.Service(
  '/user/add-user',
  {
    companyId: 20099,
    autoPassword: false,
    password1: 'test',
    password2: 'test',
    autoScreenName: false,
    screenName: 'test1',
    emailAddress: 'test1@gmail.com',
    facebookId: 0,
    openId: '',
    locale: ,
    firstName: 'test1',
    middleName: 'test1',
    lastName: 'test1',
    prefixId: 11,
    suffixId: ,
    male: false,
    birthdayMonth: 1,
    birthdayDay: 1,
    birthdayYear: 1992,
    jobTitle: 'software',
    groupIds: [34938],
    organizationIds: null,
    roleIds: [20109],
    userGroupIds: null,
    sendEmail: true
  },
  function(obj) {
    console.log(obj);
  }
);


&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ramalingaiah. D</dc:creator>
    <dc:date>2019-04-01T07:20:45Z</dc:date>
  </entry>
</feed>
