Cognos data import: Difference between revisions

 
(12 intermediate revisions by 2 users not shown)
Line 2: Line 2:


== Process ==
== Process ==
Tina receives the data in a scheduled, automated email from [[Chastity]] every morning as early as possible, usually before 8. The data is then imported into [[CCMDB.accdb]] master on Regional server and provided to collectors via regular roll-out and news and backup.
[[Decision Support Services]] sends an automated email report to Lisa and Pagasa
every morning. The data is then imported into [[CCMDB.accdb]] master on Regional server and provided to collectors via regular roll-out and news and backup.


=== Outlook Rule in Tina's profile to get data to Pagasa ===
=== Cognos extract via email ===
Decision Support Services sends a report to Tina. The report needs to go to Pagasa so we can schedule the automated import on a machine that sits on WRHA network at all times. So, there is an outlook rule "Cognos to Pagasa" in Tina's Outlook profile to forward the email to Pagasa from [[Chastity]].
Generally the email from [[Decision Support Services]] arrives around anytime between 0700-1100. This can be delayed if the ETL that feeds the process is delayed. If it will be delayed [[Decision Support Services]] will send an email to Lisa.


==== Process if the email does not arrive ====
==== Process if the email does not arrive ====
Generally the email from Chastity arrives around 7:40 +/-1hr. This can be delayed if the ETL that feeds the process is delayed. If the email has not arrived by 9:30, contact [[Chastity]].
If the email has not arrived by 1100, we contact [[Decision Support Services]] (see that page for contact info, it keeps changing).  


=== Importing and rolling out to [[Data Collector]]s ===
=== Steps to import and roll-out ===
{{Collapsable | always=Expand this for the scheduled task process that we used to run and hope to run again | full=
Once the email arrives each morning we run [[LoadCognos.bat]] (if the .bat isn't visible, it is the file of type "Windows Batch File").
Before the main office moved to work from home, we had a task scheduled on the [[Data Processor PC]] to take care of the import and roll-out process as soon as the data arrived.
The import and roll-out is generally done by the first of the following who is available:
 
# [[Database Manager]]
With work from home we can no longer rely on a PC being available to run this task so it is done manually for now.
# [[Data Processor]]
}}
 
==== Steps to import and roll out ====
Each morning the [[Data Processor]] or [[Database Manager]] runs [[LoadCognos.bat]] (if the .bat isn't visible, it is the file of type "Windows Batch File"). If the data collector is unavailable, the [[Process Analyst]] does this. Anyone who has the requisite email in their mailbox would be able to run this, but for now only Lisa receives it as a final fall-back.


==== What happens in the process ====
==== What happens in the process ====
Line 33: Line 30:
}}
}}


=== Newly encountered units or services ===
=== Newly encountered units or services === <!-- linked from  VBA via [New unit or service encountered during Cognos data import], fix there if this heading is changed -->
If a unit or service is part of the import that is not already in our reference tables, an email will be sent to Tina and Lisa. Lisa will inform Tina what the new unit/service is about and Tina will add it to the master version of CCMDB.accdb accordingly.
If a unit or service is part of the import that is not already in our reference tables, the import process will catch this and an email will be sent. The recipients of the email are hard-coded in .
Lisa will investigate what the new what the new unit/service is about is about and whether it might affect our collection process or Julie's reports. She will then either add it to the master version [[CCMDB.accdb]] herself or ask Tina to do it.


==== Newly encountered units ====
==== Newly encountered units ====
Line 45: Line 43:


If the service is one we collect then it needs to be added to [[Service tmp entry]] options.
If the service is one we collect then it needs to be added to [[Service tmp entry]] options.
== Known problems with data import ==
=== Shared Health Re-boots ===
The task requires the user be logged in. If Shared Health re-boots the computer over night, the task won't run until Pagasa logs on.
=== [[CFE]] or [[TISS28.accdb]] left open on Pagasa's PC ===
'''[[CFE]] and [[TISS28.accdb]] needs to be closed at the end of the work day on Pagasa's computer.''' The update process needs to download the newest version of [[CCMDB.accdb]] from the [[Regional Server]] before it runs so that it doesn't overwrite the master version with an older version from Pagasa's PC. This download of the newest version is blocked when [[CFE]] is open.


== Problem Log ==
== Problem Log ==
{{Collapsable
| always= This is the problem log from when the process was automated. Now that it's done manually there haven't really been problems for some time.
| full=
The VBA logs its progress to a log file \\ad.wrha.mb.ca\wrha\REGION\Shared\ICU_DATA_COLLECTION\Maintenance\ccmdb_log.txt
The VBA logs its progress to a log file \\ad.wrha.mb.ca\wrha\REGION\Shared\ICU_DATA_COLLECTION\Maintenance\ccmdb_log.txt


* 2021-03-04 - Pagasa provided screen shot of error "Error in sub notify_about_new_Congos: The operation failed. The messaging interfaces have rerutned an unknown error. If the problem persists, restart Outlook. - -2147467259"
* 2021-03-04 - Pagasa provided screen shot of error "Error in sub notify_about_new_Congos: The operation failed. The messaging interfaces have rerutned an unknown error. If the problem persists, restart Outlook. - -2147467259"
** This happened when PC was rebooted at the end of the day before, locked in and then left like that over night.  
** This happened when PC was rebooted at the end of the day before, locked in and then left like that over night.  
{{Collapsable
| always= detailed log
| full=
*'''2020-Nov-10''' - email was delayed to 9:17, then rolled out ok
*'''2020-Nov-10''' - email was delayed to 9:17, then rolled out ok
*'''2020-Nov-09''' - Pagasa is away and the updater task has failed on her PC; Tina will do it manually until Pagasa comes back
*'''2020-Nov-09''' - Pagasa is away and the updater task has failed on her PC; Tina will do it manually until Pagasa comes back