Automation 如何解决informatica pmrep objectimport controlfile中一个XML文件中不同文件夹的冲突(替换和重用)

Automation 如何解决informatica pmrep objectimport controlfile中一个XML文件中不同文件夹的冲突(替换和重用),automation,informatica,informatica-powercenter,controlfile,Automation,Informatica,Informatica Powercenter,Controlfile,我在一个输入XML文件中有不同的文件夹,例如FolderA、FolderB和FolderC。对于使用pmrep objectimport命令的导入控制文件自动化,应替换FolderA中的所有对象,应重用FolderB中的所有对象,并再次替换FolderC。我发现了一个示例informatica控制文件,用于替换/重用整个文件夹对象,如下所示 <QUERYOBJECT QUERYNAME="FolderB" RESOLUTION="REUSE"/>

我在一个输入XML文件中有不同的文件夹,例如FolderA、FolderB和FolderC。对于使用pmrep objectimport命令的导入控制文件自动化,应替换FolderA中的所有对象,应重用FolderB中的所有对象,并再次替换FolderC。我发现了一个示例informatica控制文件,用于替换/重用整个文件夹对象,如下所示

<QUERYOBJECT QUERYNAME="FolderB" RESOLUTION="REUSE"/>

但这是行不通的。获取错误“找不到QUERYNAME FolderB”。有什么建议可以让FolderB中的整个对象被重用,其余的文件夹对象被重用

下面是我正在使用的总控制文件

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE IMPORTPARAMS SYSTEM "impcntl.dtd">
<!--IMPORTPARAMS This inputs the options and inputs required for import operation -->
<!--CHECKIN_AFTER_IMPORT Check in objects on successful import operation -->
<!--CHECKIN_COMMENTS Check in comments -->
<!--APPLY_LABEL_NAME Apply the given label name on imported objects -->
<!--RETAIN_GENERATED_VALUE Retain existing sequence generator, normalizer and XML DSQ current values in the destination -->
<!--COPY_SAP_PROGRAM Copy SAP program information into the target repository -->
<!--APPLY_DEFAULT_CONNECTION Apply the default connection when a connection used by a session does not exist in the target repository -->

<IMPORTPARAMS CHECKIN_AFTER_IMPORT="NO"  RETAIN_GENERATED_VALUE="YES" COPY_SAP_PROGRAM="YES" APPLY_DEFAULT_CONNECTION="NO">

<!--FOLDERMAP matches the folders in the imported file with the folders in the target repository -->
    <FOLDERMAP SOURCEFOLDERNAME="FolderA" SOURCEREPOSITORYNAME="SOURCE1" TARGETFOLDERNAME="FOlderA" TARGETREPOSITORYNAME="TARGET1"/>
    <FOLDERMAP SOURCEFOLDERNAME="FolderB" SOURCEREPOSITORYNAME="SOURCE1" TARGETFOLDERNAME="FOlderB" TARGETREPOSITORYNAME="TARGET1"/>
    <FOLDERMAP SOURCEFOLDERNAME="FolderC" SOURCEREPOSITORYNAME="SOURCE1" TARGETFOLDERNAME="FOlderC" TARGETREPOSITORYNAME="TARGET1"/>    
    

<!--Import will only import the objects in the selected types in TYPEFILTER node -->
<!--TYPENAME type name to import. This should comforming to the element name in powermart.dtd, e.g. SOURCE, TARGET and etc.-->
    <TYPEFILTER TYPENAME="SOURCE"/> 
    <TYPEFILTER TYPENAME="TARGET"/> 
    <TYPEFILTER TYPENAME="MAPPLET"/>    
    <TYPEFILTER TYPENAME="MAPPING"/>    
    <TYPEFILTER TYPENAME="TRANSFORMATION"/> 
    <TYPEFILTER TYPENAME="CONFIG"/> 
    <TYPEFILTER TYPENAME="TASK"/>   
    <TYPEFILTER TYPENAME="SESSION"/>    
    <TYPEFILTER TYPENAME="SCHEDULER"/>  
    <TYPEFILTER TYPENAME="WORKFLOW"/>   
    <TYPEFILTER TYPENAME="WORKLET"/>    

<!--RESOLVECONFLICT allows to specify resolution for conflicting objects during import. The combination of specified child nodes can be supplied -->
    <RESOLVECONFLICT>


<!--TYPEOBJECT allows objects of certain type to apply replace/reuse upon conflict-->
<!--TYPEOBJECT = ALL conflict resolution for ALL types of objects -->
        <QUERYOBJECT QUERYNAME="FolderB" RESOLUTION="REUSE"/>
        
        <TYPEOBJECT OBJECTTYPENAME="ALL" RESOLUTION="REPLACE"/>

       
<!--SPECIFICOBJECT allows a particular object(name, typename etc.) to apply replace/reuse upon conflict -->
<!--NAME Object name-->
<!--EXTRANAME Source DBD name - required for source object to identify uniquely-->
<!--OBJECTTYPENAME Object type name-->
<!--FOLDERNAME Folder which the object belongs to-->
<!--REPOSITORYNAME Repository name that this object belongs to-->
<!--RESOLUTION Resolution to apply for the object in case of conflict-->
             
                    
    </RESOLVECONFLICT>
        
</IMPORTPARAMS>