DimChartOfAccountLoad
 DimChartOfAccountLoad (Integration Services Package)
  Workflow Screenshot
  Properties
Property Value
Name DimChartOfAccountLoad
Description This package will load any change to the DimStudentTerm dimension. The first step in this package is to truncate all the working tables needed to track new and updated records. The next step will load the data into a staged table in DWOperations. The data will be checked if there are any duplicate records and these will be flagged. The data in the Staged Table will be compared against that in the dimension and will be inserted or updated as required. If any duplicate records were found, a notification e-mail will be send to the appropriate staff
Checkpoint File Name
Checkpoint Usage Never
Check Signature On Load True
Creation Date Tuesday, May 08, 2012 4:11 PM
Creator Computer Name ipeterson
Creator Name ipeterso\hetgroup
Debug Mode False
Delay Validation False
Disable False
Disable Event Handlers False
Enable Configurations True
Encrypt Checkpoints False
Fail Package On Failure False
Fail Parent On Failure False
Forced Execution Value 0
Force Execution Value None
Description False
ID 427edf21-fa9a-4d53-b1b9-d354c8586609
Interactive Mode False
Is Default Locale ID False
Isolation Level Serializable
Locale ID 1033
Logging Mode Enabled
Max Concurrent Executables -1
Maximum Error Count 1
Offline Mode False
Package Type DTSDesigner100
Protection Level EncryptSensitiveWithUserKey
Save Checkpoints False
Suppress Configuration Warnings False
Suspend Required False
Transaction Option Supported
Update Objects False
Version Build 295
Version Comments
Version Guid 99adc9ec-ad3b-4f9f-ba8c-c1eb41142d05
Version Major 1
Version Minor 0
  Executables
Name Type Description
Data Flow Task
Data Flow Task
Data Flow Task
Data Flow Task
Sequence
Sequence Container
Sequence
Sequence Container
Task
Execute SQL Task
Task
Execute SQL Task
Task
Execute SQL Task
Task
Execute SQL Task
  Connection Managers
Name Description
  Log Providers
Name Description
  User Defined Variables
Name Value Expression Description
Y
Configuration setting in SSIS_Configurations that determines if Alerts will be send via e-mail in case of an abend or data problems
DELETE FROM [EnterpriseDW] .[dbo].[DimChartOfAccount] WHERE GlAccountSK IN ( SELECT GlAccountSK FROM [dbo].[Obsolete_DimChartOfAccount] obs WHERE obs.DoNotDeleteFlag = 0 )
" DELETE FROM " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "] .[dbo].[DimChartOfAccount] WHERE GlAccountSK IN ( SELECT GlAccountSK FROM [dbo].[Obsolete_DimChartOfAccount] obs WHERE obs.DoNotDeleteFlag = 0 ) "
Configuration setting from SSIS_Configuration to specify the domain where the e-mail server is running.
EnterpriseDW
Configuration setting in SSIS_Configurations that specifies the name of the Enterprise Data Warehouse.
N/A
If the Enterprise Data Warehouse resides on a different server from the DWStaging and DWoperations databases, a linked server must be defined and the name populated into the Var_EDWLinkedServername. If it resides on the same server, this setting must be set to ?N/A?. This is a configuration setting from SSIS_Configurations.
The list of files to be attached to the e-mail detailing record counts and data validation issues.
Testing (text maintained in SSIS Configurations table)
The text that will be coded in the body of the e-mail. This is an configuration setting in SSIS_Configurations that will be appended to the end of the e-mail.
C:\DW Local Stuff\SSIS\
The directory on the File System where the files to be attached to the e-mail for notifications will be stored. This is a configuration setting from SSIS_Configurations.
help@hetgroup.org
Configuration setting from SSIS_Configurations that will specify the From E-mail address to be used in e-mail notifications.
datawarehouse
The configuration setting from SSIS_Configurations that specify the password used for the e-mail server when sending e-mail notifications.
ipeterso@hetgroup.org
The configuration setting from SSIS_Configurations that specify the To Email address when sending e-mail notifications. This cannot be multiple e-mail addresses, but can be a distribution list.
windows
The configuration setting from SSIS_Configurations that specify the userid used for the e-mail server when sending e-mail notifications.
DECLARE @IncrementalBeginDtTm datetime = 'Jan 1 1900 12:00AM' /* Date and Time to validate against RowUpdatedOn in Source Tables */ DECLARE @IncrementalEndDtTm datetime = 'Mar 4 2016 10:33AM' SELECT CAST(Coa.FISCAL_YEAR + Coa.GL_ACCT_NO as varchar(29)) as YearGlAccountNumberAK ,CAST( CASE WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) = ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' + SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' + SUBSTRING(Coa.GL_ACCT_NO,17,5) WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) <> ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' + SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' + SUBSTRING(Coa.GL_ACCT_NO,17,5) + '-' + SUBSTRING(Coa.GL_ACCT_NO,22,4) END AS VARCHAR) as GlAccountNumber ,Coa.FISCAL_YEAR as FiscalYear ,ISNULL(Coa.ACTIVE_IND, 'N/A') as AccountStatusCode ,CASE WHEN Coa.ACTIVE_IND = 'A' THEN 'Active' WHEN Coa.ACTIVE_IND = 'I' THEN 'In-Active' WHEN Coa.ACTIVE_IND = 'S' THEN 'Summary' ELSE 'N/A' END AS AccountStatus ,CAST(ISNULL(Coa.START_DATE, '1900-01-01') as datetime) AS StartDate ,CAST(ISNULL(Coa.END_DATE, '2098-06-30') as datetime) AS EndDate ,CASE WHEN Coa.COA_BUDGETED_ACCT_IND = 'Y' THEN 'Yes' ELSE 'No' END AS IsAccountBudgeted ,ISNULL(Coa.COA_BUDGET_POOL_NO, 'N/A') as BudgetPoolNo FROM COA_ORG_UNIT_FILE Coa WHERE (CAST(Coa.FISCAL_YEAR + Coa.GL_ACCT_NO as varchar(29))) IN ( /* Select changed records from Student File */ SELECT CAST(FISCAL_YEAR + GL_ACCT_NO as varchar(29)) FROM COA_ORG_UNIT_FILE WHERE ( COA_ORG_UNIT_FILE.RowUpdatedOn >= @IncrementalBeginDtTm AND COA_ORG_UNIT_FILE.RowUpdatedOn <= @IncrementalEndDtTm AND COA_IND = 'Y' ) )
"DECLARE @IncrementalBeginDtTm datetime = '" + @[User::IncrementalBeginDtTm] + "' /* Date and Time to validate against RowUpdatedOn in Source Tables */ DECLARE @IncrementalEndDtTm datetime = '" + @[User::IncrementalEndDtTm] + "' SELECT CAST(Coa.FISCAL_YEAR + Coa.GL_ACCT_NO as varchar(29)) as YearGlAccountNumberAK ,CAST( CASE WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) = ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' + SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' + SUBSTRING(Coa.GL_ACCT_NO,17,5) WHEN SUBSTRING(Coa.GL_ACCT_NO,22,4) <> ' ' THEN SUBSTRING(Coa.GL_ACCT_NO,1,8) + '-' + SUBSTRING(Coa.GL_ACCT_NO,9,6) + '-' + SUBSTRING(Coa.GL_ACCT_NO,15,2) + '-' + SUBSTRING(Coa.GL_ACCT_NO,17,5) + '-' + SUBSTRING(Coa.GL_ACCT_NO,22,4) END AS VARCHAR) as GlAccountNumber ,Coa.FISCAL_YEAR as FiscalYear ,ISNULL(Coa.ACTIVE_IND, 'N/A') as Ac
This variable contains the execution string for the Stored Procedure that will retrieve the data from the source system.
Jan 1 1900 12:00AM
The IncrementalBeginDtTm setting will contain the start date and time for which updates will be extracted. This is a configuration setting from SSIS_Configurations that are set in the Control Package.
Mar 4 2016 10:33AM
The IncrementalEndDtTm setting will contain the End Date and Time for which updates will be extracted. These values will be compared against the RowUpdatedOn column on the tables in the DWStaging database to determine which rows to extract and load into the Enterprise Data Warehouse.
/* SQL INSERT into DimChartOfAccount from New Temp Table */ INSERT INTO [EnterpriseDW].[dbo].[DimChartOfAccount] (YearGlAccountNumberAK ,GlAccountNumber ,FiscalYear ,AccountStatusCode ,AccountStatus ,StartDate ,EndDate ,IsAccountBudgeted ,BudgetPoolNo ,RowIsCurrent ,RowStartDate ,RowEndDate) SELECT YearGlAccountNumberAK ,GlAccountNumber ,FiscalYear ,AccountStatusCode ,AccountStatus ,StartDate ,EndDate ,IsAccountBudgeted ,BudgetPoolNo ,RowIsCurrent ,RowStartDate ,RowEndDate FROM [dbo].[Staged_dbo_DimChartOfAccount__New]
" /* SQL INSERT into DimChartOfAccount from New Temp Table */ INSERT INTO " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimChartOfAccount] (YearGlAccountNumberAK ,GlAccountNumber ,FiscalYear ,AccountStatusCode ,AccountStatus ,StartDate ,EndDate ,IsAccountBudgeted ,BudgetPoolNo ,RowIsCurrent ,RowStartDate ,RowEndDate) SELECT YearGlAccountNumberAK ,GlAccountNumber ,FiscalYear ,AccountStatusCode ,AccountStatus ,StartDate ,EndDate ,IsAccountBudgeted ,BudgetPoolNo ,RowIsCurrent ,RowStartDate ,RowEndDate FROM [dbo].[Staged_dbo_DimChartOfAccount__New] "
This variable contains the string that will be used to insert any new rows into the DimStudentTerm table.
DWOperations_Maintenance
Configuration setting in SSIS_Configurations that specifies the name of the Operations Database.
0
The number of rows that were loaded into the Dimension. This is will be compared against the row count from the source system.
/* Sample Update Type1 to Dim */ UPDATE [EnterpriseDW].[dbo].[DimChartOfAccount] SET YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK ,GlAccountNumber = SCD1.GlAccountNumber ,FiscalYear = SCD1.FiscalYear ,AccountStatusCode = SCD1.AccountStatusCode ,AccountStatus = SCD1.AccountStatus ,StartDate = SCD1.StartDate ,EndDate = SCD1.EndDate ,IsAccountBudgeted = SCD1.IsAccountBudgeted ,BudgetPoolNo = SCD1.BudgetPoolNo FROM [EnterpriseDW].[dbo].[DimChartOfAccount] AS [DIM] INNER JOIN [dbo].[Staged_dbo_DimChartOfAccount__Type1Update] AS SCD1 ON Dim.YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK
" /* Sample Update Type1 to Dim */ UPDATE " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimChartOfAccount] SET YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK ,GlAccountNumber = SCD1.GlAccountNumber ,FiscalYear = SCD1.FiscalYear ,AccountStatusCode = SCD1.AccountStatusCode ,AccountStatus = SCD1.AccountStatus ,StartDate = SCD1.StartDate ,EndDate = SCD1.EndDate ,IsAccountBudgeted = SCD1.IsAccountBudgeted ,BudgetPoolNo = SCD1.BudgetPoolNo FROM " + (@[User::EDWLinkedServerName] == "N/A" ? "" : "[" + @[User::EDWLinkedServerName]+"]." ) + "["+ @[User::EDWDBName] + "].[dbo].[DimChartOfAccount] AS [DIM] INNER JOIN [dbo].[Staged_dbo_DimChartOfAccount__Type1Update] AS SCD1 ON Dim.YearGlAccountNumberAK = SCD1.YearGlAccountNumberAK "
The SQL string that will update any changed rows in the DimStudentTerm dimension.
c:\stubfile.txt
Temporary file name that will be used to create the e-mail notifications. This is a configuration setting from SSIS_Configurations.
25
The SMTPPort for the e-mail server to be used when sending notification e-mails. This is a configuration setting from SSIS_Configurations.
www.ad.hetgroup.org
The SMTP Server Name contains the name for the e-mail server. This is a configuration setting from SSIS_Configurations.
0
This is the Row count from the Source System to compare against that of the DimCurriculum table to ensure that all records were copied.
  System Variables
Name Value Expression Description
Powered by BI Documenter