Hi Roberto,
Thanks for the guidance.
I setup and tested and ran into some issues.
Below please find the DM and 2 scripts I used:
Receiving a message right after executing the DM package “Selection scope is not defined”.
Steps:
I made a copy of the clear.dtsx Data Manager package used the scripts and received the message.
Seems like the issue is passing a parameter via the DM package so I modified the Data Manager scripts - marked in blue
B) Please see the Script Logic below.
C) Another step I performed was to create one 1 script logic containing both of both selection and clear destination and hard coded the account dimension value as a troubleshooting step. Again, looks like the script didn’t even make it that far.
Again, appreciate your help….
Thanks
Eyal
- 1 DM Result:
Result of the DM package:
Total Step: 3
Export_Zero: completed in 0 sec
Load Cube: completed in 0 sec
Clear Comments: Failed in 0 seconds
Clear: completed in 0 sec
[Selection]
--------------------------------------------------------------
(Member selection)
Category: ACTUAL
Entity: 1000
Time: 2014.DEC
ENABLETASK = Yes
CHECKLCK = Yes
[Message]
--------------------------------------------------------------
Selection scope is not defined
Looks like the Clear comments is failing – so I added back the marked DM lines noted below
2 DM Package
DEBUG(ON)
PROMPT(SELECTINPUT,,,"Please select category, entity and time",%CATEGORY_DIM%%ENTITY_DIM%%TIME_DIM%)
‘ Comment: Added back because the DM was failing on the clear comments section
PROMPT(RADIOBUTTON,%ENABLETASK%,"Do you want to clear comments associated with data regions in BPC?",1,{"Yes","No"},{"1","0"})
‘ Comment: Added back because the DM was failing on the clear comments section
PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when deleting comments.",1,{"Yes, delete comments with work status settings","No, do no delete comments with work status settings"},{"1","0"})
TASK(Execute_formulas,USER,%USER%)
TASK(Execute_formulas,APPSET,%APPSET%)
TASK(Execute_formulas,APP,%APP%)
TASK(Execute_formulas,SELECTION,%SELECTIONFILE%)
TASK(Execute_formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\Clear_input_MD.LGF)
TASK(Execute_formulas,RUNMODE,1)
TASK(Execute_formulas,LOGICMODE,1)
‘ Comment: Added back because the DM was failing on the clear comments section
TASK(CLEAR COMMENTS,ENABLETASK,%ENABLETASK%)
‘ Comment: Added back because the DM was failing on the clear comments section
TASK(CLEAR COMMENTS,CHECKLCK,%CHECKLCK%)
Scripts:
// PART 1 SELECTION FOR CLEAR BASED ON DATA MANAGER PACKAGE SELECTION
// CLEAR_INPUT_MD.LGF
*XDIM_MEMBERSETCATEGORY=%CATEGORY_SET%
*XDIM_MEMBERSETTIME=%TIME_SET%
*XDIM_MEMBERSETENTITY=%ENTITY_SET%
*INCLUDECLEARDESTINATION_MD.LGF (INPUT,G_NONE,LC) ) //add all other parameters here
Script #2
// CLEARDESTINATION_MD.LGF
//*SELECT(%ACCOUNTS%,"ID","ACCOUNT","your select condition")
*XDIM_MEMBERSET CATEGORY=%CATEGORY_SET%
*XDIM_MEMBERSET ENTITY=%ENTITY_SET%
*XDIM_MEMBERSET TIME=%TIME_SET%
*XDIM_MEMBERSET AUDITID=%P1%
*XDIM_MEMBERSET CONSOSCOPE=%P2%
*XDIM_MEMBERSET CURRENCY=%P3%
*XDIM_MEMBERSET FLOW =<ALL>
*XDIM_MEMBERSET INTERCO =<ALL>
*XDIM_MEMBERSET MIGZAR =<ALL>
*XDIM_MEMBERSET TC =<ALL>
*SELECT(%ACCOUNTCM%,"ID","ACCOUNT","[FINANCIAL_ACCT] = 'Y'")
//*XDIM_MEMBERSET ACCOUNT = 411_01 - for test purposes
// first parameter, same for other dims for second param as %P2%, etc.
//*XDIM_MEMBERSET ACCOUNTCM=%ACCOUNTS% // extraction by select
*CLEAR_DESTINATION
*DESTINATION CATEGORY=%CATEGORY_SET%
*DESTINATION ENTITY=%ENTITY_SET%
*DESTINATION TIME=%TIME_SET%
*DESTINATION AUDITID=%P1%
*DESTINATION CONSOSCOPE=%P2%
*DESTINATION CURRENCY=%P3%
*DESTINATION FLOW =<ALL>
*DESTINATION INTERCO=<ALL>
*DESTINATION MIGZAR=<ALL>
*DESTINATION TC=<ALL>
*DESTINATION ACCOUNT=%ACCOUNTCM%
*WHEN AUDITID
*IS %P1%
*WHEN CONSOSCOPE
*IS %P2%
*WHEN CURRENCY
*IS %P3%
*REC(AUDITID="%P1%",CONSOSCOPE="%P2%",CURRENCY="%P3%",FACTOR=0)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT