Legacy Knowledge Base
Published Jul. 2, 2025

Unable to export users to CSV from some instances

Written By

David Tello

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • Users cannot be exported in some instances: the interface gets blank, and the following exception is thrown:

    "2021-04-08T10:57:43.604+0200 ERROR [http-nio-8080-exec-25][ExportUsersMVCResourceCommand:100] java.lang.RuntimeException: java.lang.NullPointerException
    java.lang.RuntimeException: java.lang.NullPointerException
    at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.getAttribute(ExpandoBridgeImpl.java:218)
    at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.getAttribute(ExpandoBridgeImpl.java:198)
    at com.liferay.users.admin.web.portlet.action.ExportUsersMVCResourceCommand.getUserCSV(ExportUsersMVCResourceCommand.java:117)
    at com.liferay.users.admin.web.portlet.action.ExportUsersMVCResourceCommand.getUsersCSV(ExportUsersMVCResourceCommand.java:257)
    at com.liferay.users.admin.web.portlet.action.ExportUsersMVCResourceCommand.doServeResource(ExportUsersMVCResourceCommand.java:91)
    at com.liferay.portal.kernel.portlet.bridges.mvc.BaseMVCResourceCommand.serveResource(BaseMVCResourceCommand.java:41)
    at com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet.callResourceMethod(MVCPortlet.java:442)
    at com.liferay.portal.kernel.portlet.LiferayPortlet.serveResource(LiferayPortlet.java:140)
    .......................
    .......................
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.NullPointerException
    at com.liferay.portlet.expando.service.permission.ExpandoColumnPermissionImpl.contains(ExpandoColumnPermissionImpl.java:73)
    at com.liferay.expando.kernel.service.permission.ExpandoColumnPermissionUtil.contains(ExpandoColumnPermissionUtil.java:58)
    at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.getData(ExpandoValueServiceImpl.java:121)
    at sun.reflect.GeneratedMethodAccessor761.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)"

Environment

  • Liferay DXP 7.0+

Resolution

  • This failure is due to an inconsistent configuration between the portal-ext.properties and the Custom Fields instance settings.

  • The exception is thrown when the property users.export.csv.fields has an expando attribute defined and this attribute is not set in the instance in which users are exported.

  • To resolve this problem, both configurations, instance settings and portal-ext.properties, must be aligned. If an expando attribute is added in users.export.csv.fields, this new attribute must be defined in all instances. 

Did this article resolve your issue ?

Legacy Knowledge Base