Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for the Microsoft platform
Viewing all articles
Browse latest Browse all 1545

Creating Custom Reclass Data Manager Package

$
0
0

Hi Experts,

I would like to use a Data Manager Package to execute script logic to perform a series of reclassification adjustments.

 

#1 Copied the default Script dtsx package and gave it a new name.  I assume this is ok because I am simply connecting it to a new script that I wrote below.

 

#2 The result of the script is an error writing to the CTRL_FLAG.  This is not part of the calculation below

Why is this occurring? 

 

Included below is script logic (in process), DM logic ( I deactivated the Work Status just in case this was causing the issue), and the tbllog result.

 

I tried debugging using the logic debugger but did not understand the result.

 

Version used: BPC 10.1 MS SP3 Patch 1.

 

Thanks in advance.

Regards,

Eyal

 

'DEBUG(ON)

'PROMPT(RADIOBUTTON,%CHECKLCK%,"Select whether to check work status settings when running logic.",1,{"Yes, check for work status settings before running logic","No, do not check work status settings"},{"1","0"})

'PROMPT(SELECTINPUT,,,,%CATEGORY_DIM%%ENTITY_DIM%%TIME_DIM%)

PROMPT(SELECTINPUT,,,,%TIME_DIM%)

 

TASK(Execute formulas,USER,%USER%)

TASK(Execute formulas,Environment,%Environment%)

TASK(Execute formulas,Model,%Model%)

TASK(Execute formulas,SELECTION,%SELECTIONFILE%)

'TASK(Execute formulas,LOGICFILE,

TASK(Execute formulas,LOGICFILE,%ModelPath%\..\AdminApp\%Model%\RECLASS_SOLO.lgx)

)

TASK(Execute formulas,CHECKLCK,%CHECKLCK%)

 

 

Script Logic

//**SELECT ("%AUDITID_LIST%","[ID]","AUDITID","DATASRC_TYPE='I'")

 

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

// Reclass #1

//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

*XDIM_MEMBERSET TIME =%TIME_SET%

*XDIM_MEMBERSET FLOW = PL99

*XDIM_MEMBERSET CONSOSCOPE = G_NONE

*XDIM_MEMBERSET AUDITID= INPUT

//*XDIM_MEMBERSET AUDITID=%AUDITID_LIST%  // SOLO AUDITID BEFORE RECLASS

*XDIM_MEMBERSET CURRENCY = LC

*XDIM_MEMBERSET ENTITY = 1120

*XDIM_MEMBERSET ACCOUNT = 932_04,937_02

 

*WHEN ACCOUNT

   *IS "932_04"

         *REC(FACTOR=1,ACCOUNT="808_02",AUDITID="REC_C1",FLOW="PL99")

*ENDWHEN

*COMMIT

//*WHEN ACCOUNT

//   *IS "937_02"

// *REC(FACTOR=1,ACCOUNT="808_02",AUDITID="REC_C1",FLOW="PL99")

// *ENDWHEN

//*COMMIT

 

//*WHEN ACCOUNT

//   *IS "932_04"

// *REC(FACTOR=-1,ACCOUNT="932_04",AUDITID="REC_C1",FLOW="PL99")

// *ENDWHEN

//*COMMIT

 

//*WHEN ACCOUNT

//   *IS "932_04"

// *REC(FACTOR=1,ACCOUNT="937_02",AUDITID="REC_C1",FLOW="PL99")

// *ENDWHEN

//*COMMIT

 

 

Result:

Total Step:              1

Execute formulas:  Failed in 0 seconds

Default Formulas:   completed in 0 sec

 

 

[Selection]

--------------------------------------------------------------

 

(Member selection)

Time: 2015.DEC

 

 

 

 

[Message]

--------------------------------------------------------------

 

Execute formulasError

Must specify a member for all dimensions in : CTRL_FLAG,INPUT,%CATEGORY%,G_NONE,LC,9999,F99,I_NONE,M_NONE,TC_NONE,2015.DEC,1

 

 

Tbllogic result

  1. System.Data.SqlClient.SqlException (0x80131904):Login failed foruser'DS-INVEST\MDBPC-D$'.

   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)

   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)

   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)

   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)

   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)

   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)

   at System.Data.SqlClient.SqlConnection.Open()

   at OSoft.Services.Platform.SysAdminDataBaseDM.SQLDataHelper.DbOpen()

   at OSoft.Services.Platform.SysAdminDataBaseDM.DataAccess.DbOpen()

   at OSoft.Services.Platform.SysAdminDataBaseDM.DataSwitch.IsOpenDataBase(String sAppSet, Boolean bExtraDB, Boolean bForcedLogon)

   at OSoft.Services.Platform.SysAdminDataBaseDM.DataSwitch.Connect(String strAppSet, Boolean bExtraDB)

   at OSoft.Services.Platform.SysAdminDataBaseDM.DataSwitch.Connect(String strAppSet)

ClientConnectionId:34577f26-eff2-4eed-878c-43e4a618d1f5

Error Number:18456,State:1,Class:14


Viewing all articles
Browse latest Browse all 1545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>