Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-163786

Cannot import Object entries which have relationship fields

Details

    • 3
    • Default

    Description

      Step to reproduce:
      1. Enable export/import center by adding this property on the portal-ext.properties
      feature.flag.COMMERCE-8087=true

      2. Import object definition Continent and Country (see the attachment ) 

      3.  Select object Continent, Relationship tab -> New relationship

      • Label: Continent
      • Name: country
      • Type: One To Many
      • Object: Country
      • Save

      4. Import Continent entries, Application -> Import/Export center -> Import file

      • Entity type: C_Continent
      • File: continentEntries.json (see the attachment )
      • Next -> Start Import

      5. Import Country

      • Entity type: C_Country
      • File: countryEntries.json (see the attachment )
      • Next -> Start Import

      Expected behavior: 
      Import successfully.
      Actual behavior:
      Unexpected error.

      Caused by: com.liferay.batch.planner.exception.BatchPlannerMappingInternalFieldNameException: Internal field name is nullCaused by: com.liferay.batch.planner.exception.BatchPlannerMappingInternalFieldNameException: Internal field name is null at com.liferay.batch.planner.service.impl.BatchPlannerMappingLocalServiceImpl._validateInternalFieldName(BatchPlannerMappingLocalServiceImpl.java:171) ~[?:?] at com.liferay.batch.planner.service.impl.BatchPlannerMappingLocalServiceImpl.addBatchPlannerMapping(BatchPlannerMappingLocalServiceImpl.java:68) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?] at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) ~[portal-impl.jar:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?] at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:79) ~[?:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?] at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?] at com.sun.proxy.$Proxy891.addBatchPlannerMapping(Unknown Source) ~[?:?] at com.liferay.batch.planner.service.impl.BatchPlannerMappingServiceImpl.addBatchPlannerMapping(BatchPlannerMappingServiceImpl.java:53) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50) ~[portal-impl.jar:?] at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69) ~[portal-impl.jar:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?] at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64) ~[portal-kernel.jar:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?] at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:79) ~[?:?] at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57) ~[portal-impl.jar:?] at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49) ~[portal-impl.jar:?] at com.sun.proxy.$Proxy892.addBatchPlannerMapping(Unknown Source) ~[?:?] at com.liferay.batch.planner.web.internal.helper.BatchPlannerPlanHelper.addImportBatchPlannerPlan(BatchPlannerPlanHelper.java:129) ~[bundleFile:?] at com.liferay.batch.planner.web.internal.portlet.action.SubmitBatchPlannerPlanMVCResourceCommand._submitImportBatchPlannerPlan(SubmitBatchPlannerPlanMVCResourceCommand.java:111) ~[bundleFile:?] at com.liferay.batch.planner.web.internal.portlet.action.SubmitBatchPlannerPlanMVCResourceCommand.doTransactionalCommand(SubmitBatchPlannerPlanMVCResourceCommand.java:71) ~[bundleFile:?] at com.liferay.portal.kernel.portlet.bridges.mvc.BaseTransactionalMVCResourceCommand$1.call(BaseTransactionalMVCResourceCommand.java:44) ~[portal-kernel.jar:?] at com.liferay.portal.kernel.portlet.bridges.mvc.BaseTransactionalMVCResourceCommand$1.call(BaseTransactionalMVCResourceCommand.java:40) ~[portal-kernel.jar:?] at com.liferay.portal.spring.transaction.BaseTransactionExecutor.execute(BaseTransactionExecutor.java:37) ~[portal-impl.jar:?] at com.liferay.portal.spring.transaction.TransactionInvokerImpl.invoke(TransactionInvokerImpl.java:39) ~[portal-impl.jar:?] at com.liferay.portal.kernel.transaction.TransactionInvokerUtil.invoke(TransactionInvokerUtil.java:28) ~[portal-kernel.jar:?] at com.liferay.portal.kernel.portlet.bridges.mvc.BaseTransactionalMVCResourceCommand.serveResource(BaseTransactionalMVCResourceCommand.java:51) ~[portal-kernel.jar:?] ... 188 more
      

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              binh.tran Binh Tran
              Lucas Miranda Lucas Miranda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 weeks, 2 days ago

                Packages

                  Version Package