Differences between default logic and logic executed from a package
I am working in a logic which I would like to execute from a package. Currently, i am running some logics from different packages with no problem. However, there's one which is working correctly when the code is introduced within the default logic, but it isn't working when it is executed from a package. I have no idea about the reason that exactly the same code is working correctly in the default logic but not from a package.
The code is the following:
*SELECT(%NEG_SOCIEDAD%, "[ID]", NEGOCIO_SOCIEDAD, "[CALC]=N" AND "[NEGOCIO]=N")
*SELECT(%SET_CONCEPTO%, "[ID]", CONCEPTO, "[CALC]=N" AND "[APTO_OPERA]=1")
*XDIM_MEMBERSET TIPO_DATO= "PPTO_DET"
*XDIM_MEMBERSET NEGOCIO_SOCIEDAD= %NEG_SOCIEDAD%
*XDIM_MEMBERSET CONCEPTO= %SET_CONCEPTO%
*XDIM_MEMBERSET MEDIDA= "P", "Q", "Z", "DATO_FINANCIERO"
*XDIM_MEMBERSET ORIGEN= "IC", "IC_MARGEN"
*IS "IC", "IC_MARGEN"
*REC(EXPRESSION=%VALUE%, CONCEPTO=CONCEP_RECIPROCO.INTCO,CONCEP_RECIPROCO=CONCEPTO.INTCO, PROY_RECIPROCO=PROYECTO.INTCO, PROYECTO=PROY_RECIPROCO.INTCO, CONTRAPARTES=NEGOCIO_SOCIEDAD.INTCO, NEGOCIO_SOCIEDAD=CONTRAPARTES.INTCO)
The error produced is:
RUN_LOGIC:Property value not found
Application: PRESUP_LOGICAS Package status: ERROR
Could anybody tell me what is the difference when using it as a default logic? How can I solve the problem? Any idea?
Many thanks in advance,
Gersh Voldman replied
The main difference between running a script from a DM Package and running same script in DEFAULT.LGF is in scope of data it's processing. For those Dimension explicitly defined using XDIM there is no difference either, but those Dimension that are not defined by XDIM or defined as %Dimension_SET% it will be a difference. DEFAULT.LGF will take that scope from the Current View while DM Package takes it from Packae selections. I can see that most of the dimensions in your REC statement are not defined in XDIM, hence a different set of records will be processed in DEFAULT and in DM Package.
Most probably one of those records have property value that is not in Dimension which gets assigned in REC. Usual suspect would be an empty property value while empty Dimension member is not allowed.