<?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>Liferay 7.1 Custom Form Storage Adapter - showing error message</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121253514" />
  <subtitle>Liferay 7.1 Custom Form Storage Adapter - showing error message</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121253514</id>
  <updated>2026-04-05T09:30:47Z</updated>
  <dc:date>2026-04-05T09:30:47Z</dc:date>
  <entry>
    <title>Liferay 7.1 Custom Form Storage Adapter - showing error message</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121253513" />
    <author>
      <name>Gopal Satapathy</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121253513</id>
    <updated>2021-11-18T07:42:21Z</updated>
    <published>2021-11-18T07:42:20Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;i have created a Custom Form Storage Adapter which gets called on
  form submission and will call an external webservice to send data.  &lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;	@Override
	protected long doCreate(long companyId, long ddmStructureId, DDMFormValues ddmFormValues,
			ServiceContext serviceContext) throws Exception {
			//call exteral web service
			if (success) {
				LOGGER.info(&amp;quot;success&amp;quot;);
			} else {

					LOGGER.error(&amp;quot;failure&amp;quot;);
					throw new Exception();
			}
		validate(ddmFormValues, serviceContext);
		long fileId = _counterLocalService.increment();
		DDMStructureVersion ddmStructureVersion = _ddmStructureVersionLocalService
				.getLatestStructureVersion(ddmStructureId);

		long classNameId = PortalUtil.getClassNameId(CustomFormAdapterComponent.class.getName());
		_ddmStorageLinkLocalService.addStorageLink(classNameId, fileId, ddmStructureVersion.getStructureVersionId(),
				serviceContext);

		saveFile(ddmStructureVersion.getStructureVersionId(), fileId, ddmFormValues);
		return fileId;

	}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;i am already throwing new Exception() in case of webservice call
  failure , but no error is coming in UI. Can somebody  please  help
  with  this  issue ?&lt;/p&gt;</summary>
    <dc:creator>Gopal Satapathy</dc:creator>
    <dc:date>2021-11-18T07:42:20Z</dc:date>
  </entry>
</feed>
