简体   繁体   English

如何防止创建空文件

[英]How to prevent empty files being created

Can someone let me know to prevent the target file being created whenever the source is empty file in informatica power center.有人可以让我知道只要源是 informatica power center 中的空文件就可以防止创建目标文件。

It's not possible.这是不可能的。 The way PowerCenter works is it tries to make sure Soures and Targets are available yet before processing any data. PowerCenter 的工作方式是在处理任何数据之前尝试确保 Soures 和 Targets 可用。 So as part of the session initialization, it tries to open connections to Sources and Targets.因此,作为 session 初始化的一部分,它会尝试打开与源和目标的连接。 In case of target flat files an empty file is being created to confirm destination is available and appropriate access rights have been granted.如果是目标平面文件,则会创建一个空文件以确认目标可用并且已授予适当的访问权限。

Only after these steps PowerCenter starts to process the data.只有在这些步骤之后,PowerCenter 才开始处理数据。 There is a bunch of results / sideeffects:有很多结果/副作用:

  1. If there is no data at source, an empty file will be left on target location如果源没有数据,一个空文件将留在目标位置
  2. If file names are created dynamically, the initially created file with random name will be left empty in target location如果文件名是动态创建的,最初创建的随机名称的文件将在目标位置留空

The only remedy is to have a command that removes the empty files as part of the Post-session success command.唯一的补救措施是将删除空文件的命令作为会话后成功命令的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在会话级别执行调优,同时生成平面文件作为数据库源 - Performace tuning at session level while generating flat files being source as database 如何处理未在 Informatica Powercenter 中聚合的端口 - How to deal with ports which are not being Grouped by neither being aggregated in Informatica Powercenter 在Informatica Target中发布XML时如何删除空标记 - How to delete the empty TAGS while publishing XML in Informatica Target 如何动态生成一个周期的目标文件? - How to dynamically generate target files for a cycle? 如何在 Informatica 中动态创建目标文件 - How to create Target Files Dynamically in Informatica 如何在每次创建时向 informatica 目标平面文件添加递增的数字序列 - How to add a incrementing number sequence to informatica target flat file everytime its created 如何禁用记录.bad文件中的拒绝文件? - How to disable logging rejected files in the .bad file? 如何以编程方式检查Infomatica目标数据库表是否被锁定? - How do I programmatically check if Infomatica target database table is being locked? Informatica:如何计算informatica中平面文件中的行数 - Informatica : How to calculate number of rows in flat files in informatica 如何使用Informatica从多个Excel文件读取数据 - How to read data from multiple Excel files with Informatica
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM