Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
json web service add-article liferay
September 26, 2012 6:11 PM


Rank: New Member

Posts: 3

Join Date: September 26, 2012

Recent Posts

I am using Liferay 6.1 EE

Use web service add-article to add a new journal article.
Pass value 0 to classNameId parameter.
I get the following exception
com.liferay.portal.NoSuchGroupException: No Group exists with the primary key 0
So I changed classNameId to a positive value.
The article gets added but is not being displayed in the liferay webcontent list.
I had to manually update the classNameId to 0 in JournalArticle table in the DB for the newly added article to appear in the web content list

Please suggest possible solution.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!