PackIn Process doesn't admit Field AD_FieldStyle_ID in PackOut XML

Description

The PackIn Process doesn't allow Field AD_FieldStyle_ID in the PackOut XML, this field is automaticaly created in the packout process for windows and fields.

16:25:05.375-----------> PackInHandler.dumpUnresolvedElements: AD_Field [AD_Client_ID=0, AD_Org_ID=0, Name=Logo, Description=, Help=, AD_Tab_ID=53104, AD_Column_ID=58113, IsDisplayed=Y, DisplayLogic=, DisplayLength=0, SeqNo=20, SortNo=0, IsSameLine=N, IsHeading=N, IsFieldOnly=Y, IsEncrypted=N, IsActive=Y, IsReadOnly=N, IsCentrallyMaintained=Y, AD_FieldGroup_ID=, EntityType=GHPayroll, ObscureType=, AD_Reference_ID=, IsMandatory=, DefaultValue=, AD_Reference_Value_ID=, AD_Val_Rule_ID=, Included_Tab_ID=, AD_Field_UU=63374851-3655-4419-96c0-fc96d8fa24cb, IsAllowCopy=, IsDisplayedGrid=Y, SeqNoGrid=150, XPosition=4, ColumnSpan=2, NumLines=5, IsQuickEntry=N, IsUpdateable=, IsAlwaysUpdateable=, MandatoryLogic=, ReadOnlyLogic=, IsToolbarButton=, IsDefaultFocus=N, IsAdvancedField=N, VFormat=, AD_LabelStyle_ID=, AD_FieldStyle_ID=b295f36a-ba1a-4ac8-804e-5fe81b899247] unresolved [AD_FieldStyle_ID] [60]
16:25:05.375===========> PackIn.importXML: importXML: [60]
org.adempiere.exceptions.AdempiereException: Unresolved elements
at org.adempiere.pipo2.PackIn.importXML(PackIn.java:183)
at org.adempiere.pipo2.PackIn.importXML(PackIn.java:136)
at org.adempiere.pipo2.PackInProcess.doIt(PackInProcess.java:142)
at org.compiere.process.SvrProcess.process(SvrProcess.java:198)
at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:144)
at org.adempiere.util.ProcessUtil.startJavaProcess(ProcessUtil.java:172)
at org.compiere.apps.AbstractProcessCtl.startProcess(AbstractProcessCtl.java:466)
at org.compiere.apps.AbstractProcessCtl.run(AbstractProcessCtl.java:234)
at org.adempiere.webui.apps.WProcessCtl.process(WProcessCtl.java:197)
at org.adempiere.webui.apps.AbstractProcessDialog$ProcessDialogRunnable.doRun(AbstractProcessDialog.java:1061)
at org.adempiere.util.ContextRunnable.run(ContextRunnable.java:38)
at org.adempiere.webui.apps.DesktopRunnable.run(DesktopRunnable.java:40)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Environment

None

Activity

Show:
Carlos Ruiz
March 28, 2017, 9:48 AM

, you need to export your field style previously as Data.

Another option would be to improve FieldElementHandler to do it automatically.

Diego Ruiz
August 22, 2020, 7:26 PM

Triaged by Diego Ruiz,

Still reproducible in iDempiere 7.1z.

Steps to reproduce:

  1. Login as System

  2. Open Window Tab & Field

  3. Navigate to the Field Tab

  4. On any field go to Field Style and zoom to the window

  5. Create a new Field Style record

  6. Go back to the Window Tab & Field and set the newly created Field Style to the current record

  7. Export the Window as a 2Pack (either via the export button or through the Pack out window)

Expected result:
The Window is exported and the Field Style is included in the 2Pack to be able to import it in a different environment.

Actual result:

The Field Style record is not exported, this causes problems when importing.

The workaround proposed by Carlos works

Assignee

Unassigned

Reporter

Angel Lara

Labels

Tested By

None

Components

Affects versions

Priority

Minor
Configure