



全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
本文档不会设计具体组件的使用,主要是设计的思路。如果需要学习基础知识,请参考我其他的文档囧。恩恩,当你在ETL的时候出现异常,比如源表的关键字段和维表、关系表关联不上,那应该如何处理呢?通常的做法是把这些数据记录,然后给用户确认。以下为英文原教材引用,附上mapping脚本,没有表脚本。自认为能看懂的慢慢看,看不懂的请直接page dn。忘了告诉你,这个xml文件需要修改两个地方。试一试自己改改咯MAPPING TEMPLATE FOR: Error Handling Strategy USAGE: Use this template as a guide for trapping errors in a mapping, sending errors to an error table so that they can be corrected, and reloading fixed errors from the error table into the target system.TEMPLATE OBJECTS:m_Customer_Load_v61.XMLm_Customer_Fixed_Error_Load_v61.XMLCHALLENGE ADDRESSED: Developers routinely write mapping logic that filters records with data errors out of a data stream. However, capturing those error records so that they can be corrected and re-loaded into a target system can present a challenge. The mappings in this mapping template illustrate a process for trapping error records, assigning a severity level to each error, and sending the error rows which include the complete source row plus additional columns for the error description and severity level on to an error table. OVERVIEW: This mapping template provides two mappings that, taken together, illustrate a simple approach to utilizing Informatica objects in handling known types of Errors. The essential objects shown and utilized are Expression transformations that provide error evaluation code, Lookup transformations that are used to compare or find prerequisite values, and a Router transformation that sends valid rows to the warehouse and error rows to an appropriate error table.The key to the utilization of the error table in this example is to preserve the source records data structure for eventual correction and reprocessing. The first mapping that runs is m_Customer_Load. Each source row that is flagged as an error is loaded into the error table, along with an error description per row so that a subject matter expert can view, identify and correct errors. M_Customer_Fixed_Error_Load pulls fixed errors from the error table and loads them into the target system. IMPLEMENTATION GUIDELINES:The error handling in this mapping template is looking at the following known issues with the source data: evaluating whether state and company columns are null or are of the correct length; ensuring email data is in a valid format; and validating that there are supporting rows in the Company and State lookup tables. There is also an assignment of severity level that is used to deliver rows to either the Warehouse or the Error table or both. Along with a severity level, an error description is assigned per error to assist in the correction process.The key concepts illustrated by these mappings can be found in three transformation objects: a reusable Expression transformation (exp_GENERAL_ERROR_CHECK), the Expression transformation (exp_Customer_Error_Checks) and a Router transformation (rtr_NEW_VALID_ROWS_and_ERROR_ROWS): exp_GENERAL_ERROR_CHECK illustrates the concept that generic high level errors can be checked universally so as not to maintain and/or update all objects being used for error checking in a project. This particular object is evaluating strings for null data and this evaluates to an error flag of Y.In exp_Customer_Error_Checks, all the specific errors for this operation (Customer Load) are done, severity levels are assigned and descriptions of errors are assigned to pass to down stream objects. The rtr_NEW_VALID_ROWS_and_ERROR_ROWS is used to take the severity levels and determine what rows go where. In this example there are low enough severity levels to warrant load to the warehouse where other levels are high enough to determine that rows only go to an Error table for correction and eventual reprocessing.There are many options available for more complex error handling operations. Included in the mapping metadata is a UNION statement that can be added to the Source Qualifier that will allow for a single mapping to process new rows from the source and fixed rows from the error table at the same time. In addition, mapping parameters are commonly used to help assist in generalizing and simplifying error handling.PROS: This template can accommodate any number of data errors, and provides maximum flexibility in allowing for er
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 地下管网系统改造方案
- 农村供水保障工程社会稳定风险评估报告
- STEM教育理念下中职语文课程创新研究
- 企业家精神与新生产力的驱动作用分析
- 工厂能源消耗监控与优化方案
- 水利灌溉工程施工质量控制方案
- 个人合同三方协议模板
- 核心素养视角下小初英语阅读衔接策略研究
- 高中数学核心素养的教学渗透与实践
- 初中音乐教育与学生情感成长的关联性研究
- 学术交流英语智慧树知到答案章节测试2023年哈尔滨工程大学
- 业务序列应知应会测试题5月份
- 2022年05月2022广东深圳市文化馆公开招聘专业技术岗位人员2人事业单位14笔试参考题库答案解析版
- 外科护理创伤病人的护理
- 唐宋八大家简介课件
- 犯罪概念及犯罪构成课件
- 人教版培智学校生活数学一年级上册认识1课件
- 正负图形课件
- 分包企业准入资格证
- 概念决策评审检查表
- 胸腔闭式引流术的护理PPT课件(PPT 27页)
评论
0/150
提交评论