Interface Determination for source file without namespace definition

Hi,
I have the following problem:
I am developing a file to IDoc scenario in AEX 7.31. All design objects in ESR and configuration objects in ID are created and the sender communication channel is running. Now I got a test file. It starts directly with the data elements but does not contain the root element as defined in my data type. To make it clear:
Data Type in ESR:
DT_DatatypeA
-- Record [1..unbounded]
---- Field1
---- Field2
The File looks as follows (it lacks the root element 'DT_Datatype_A'):
<Record>
  <Field1>...</Field1>
  <Field2>...</Field2>
</Record>
<Record>
  <Field1>...</Field1>
  <Field2>...</Field2>
</Record>
When I try to send it via PI I get the following error:
When I add the XML root element <ns0:DT_DatatypeA ns="..."> manually to the file (and the corresponding end tag), the message is processed correctly.
How can I solve this issue? The file is created by a legacy system which does not know anything about my PI namespaces.
Thanks in advance!

i am bit confused here.
how does your input look like? i.e when sender generates the files..
is that like below xml?
<Record>
  <Field1>...</Field1>
  <Field2>...</Field2>
</Record>
<Record>
  <Field1>...</Field1>
  <Field2>...</Field2>
</Record>
or
is it a flat file? and you use FCC in the sender adapter to convert it into xml?
Field1,Field2
Field1,Field2

Similar Messages

  • Enhanced Interface Determination for IDOCs

    Hi All,
        I've a query on the usage of Enhanced Interface Determination for IDocs.
    I've to create IDocs based on the condition in the Message Mapping i.e. say if recordtype in the source is A then IDoc1 should be created and if recordtype is B then IDoc2 should be created.
    Is it possible to use Enhanced Interface Determination to achieve this??..  Because I was told by someone that Enhanced Interface Determination can't be used for IDoc based scenarios though am using External Definitions for the mapping purpose. Please clarify.
    Thanks in advance
    Regards,
    Joe.

    Hi Sridhar/ Bhavesh,
                           Thanks for your prompt reply. I think I wasn't clear in my previous post.
    The scenario is the input file has three different record types (3 different structures) and the IDocs should be created based on the record type. I don't think I can use the condition based scenario as the record types are totally different. Please suggest.
    Thanks,
    Joe.

  • Advanced Selection for Source File + SourceFileSize = invalid file size?

    Hi !
    I have a File Adapter using FTP protocol. I've turn on all Adapter-Specific Message Attributes, including SourceFileSize. I've activated the Advanced Selection for Source File, and entered several patterns.
    When I see my payload via the monitor, I get a "-" in the SourceFileSize value.
    <sap:Record namespace="http://sap.com/xi/XI/System/File" name="SourceFileSize">-</sap:Record>
    If I disable the "Advanced Selection for Source File", the file size is ok.
    Is it just me?
    Thanks

    maybe u need to check for some notes

  • File Adapter: Advanced selection for source file

    Hi Experts,
    I am doing file(Idoc format) to IDoc scenario. In my scenario I am getting files in three different formats (ex: abc.dat, xyz.dat, 123.edi). My communication channel (sender file adapter) should poll for every 30 mins, picks up the files and map them to Idoc without any mapping.
    Need following clarifications:
         1. Should I create 3 communication channels to pick up 3 different type files? Or should I use the Advanced selection for source file to pick up them with only one CC?
         2. If there is no mapping how should I proceed in this case?
    Regards,
    Rams

    >>1. Should I create 3 communication channels to pick up 3 different type files? Or should I use the Advanced selection for source file to pick up them with only one CC?
    Not required.. if all the files are from the same directory then u can specify .  in the file name parameter.. but make sure that only these 3 file types are places in the directory... if this is not the case you can use Advannced Selection... check my Wiki [Single Sender File CC For Multiple Directories|https://wiki.sdn.sap.com/wiki/display/XI/SingleSenderFileCCForMultipleDirectories]
    >>2. If there is no mapping how should I proceed in this case?
    Mappiing is required only if the source and the target structure are different.. if u send the file with the IDocc XML format mapping is not required...
    ~SaNv....

  • Advance select for source file in Sender File Adapter

    Hi
    I am trying to utilise the parameter 'Advance Selection for source file' on a sender file adapter to pick the file from multiple folders
    My problem is that this parameter that is listed on the SAP help is not getting in File accessing Parameters.
    I am running PI 7.02 (NW702_07_Rel)
    Service pack 07
    Has anyone come across this before?
    any suggestions on how to do this?

    Hi,
    In PI7.0 the property exists. I have used it previously. I think SP was 13.
    Regards,
    Nutan
    Edited by: nutan champia on Nov 24, 2011 10:42 AM

  • Advanced selection for source file

    Hi,
    Requirement: One source directory, multiple file names. File needs to be picked up from source directory and send to target directory with same name as source file name.
    Source file name pattern sample: AP5_X_yyyyddmm, A35_X_yyyyddmm, AP5_Y_yyyyddmm, AP5_Y_yyyyddmm.
    Target file name should be :AP5_X_yyyyddmm, A35_X_yyyyddmm, AP5_Y_yyyyddmm, AP5_Y_yyyyddmm
    Can we define multiple place holders as :
    Directory    
    File Name Mask
    Exclusion Mask
    \\Source
    AP5_X*.txt, A35_X.txt, AP5_Y*.txt, AP5_Y*.txt
    When I tried for single place holder, the scenario was working but when I tried adding multiple place holders it was not working.
    How can we achieve the above scenario?
    Thanks,
    Vertika

    Hi Amit,
    Thanks for reply.
    Yes you understood it right.
    I am able to achieve this now. The only change that I did is instead of giving all the placeholders in same line I have given it in different lines and this is working now.
    Sender Adapter Configuration: Checked Advanced selection for source file and used Adapter specific message attributes to keep same file name as source file name.
    File Name Mask
    File Name Mask
    Exclusion Mask
    \\Source
    AP5_X*.txt
    \\Source
    A35_X*.txt
    \\Source
    AP5_Y*.txt
    \\Source
    A35_Y*.txt
    I am closing this thread now.
    Thanks,
    Vertika

  • [JS][CS3]how to get refrence for source file

    Hi All
    I am new and learning javascript Gradually Could any one help on this as i do have a code for load style but don't know how to get refrence for "source file" and "targetDoc"
    targetDoc.importStyles(charImport, sourceFile, clashPolicy);
    targetDoc.importStyles(paraImport, sourceFile, clashPolicy);
    Can any one figure it out
    Many Thanks

    I'm not sure what you are trying to achieve, could you please elaborate?
    Do you want to load all the styles from one document into all 100 documents, or do you want all the styles from the 100 documents into 1 document or what is the goal?
    The following will let you choose a folder of files, open each of the files in it and import the styles from source document. It is not a complete script, make sure to test and modify before running on anything else than test files :-)
    var MyFolderWithFiles = Folder.selectDialog ("Choose a folder");
    var sourceFile = File.openDialog("Choose the styles source");
    var myFiles = MyFolderWithFiles.getFiles("*.indd");
    for(i = 0; i < myFiles.length; i++) {
        theFile = myFiles[i];
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
        var targetDoc = app.open(theFile, true);
        app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
        targetDoc.importStyles(ImportFormat.CHARACTER_STYLES_FORMAT, sourceFile, GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE);
        targetDoc.importStyles(ImportFormat.PARAGRAPH_STYLES_FORMAT, sourceFile, GlobalClashResolutionStrategy.LOAD_ALL_WITH_OVERWRITE);
        targetDoc.close(SaveOptions.YES);
    Thomas B. Nielsen
    http://www.lund-co.dk

  • Hard Drive Setup for Source Files, Media Cache, Project, Render, etc...

    I am working to set up the following drives:
    C: SSD for OS and Programs
    D: RAID 0 (Three SATA II F3's) for Premiere Projects, where I render too, and Encore Projects
    E: RAID 0 (Two SATA III WD Caviar Blacks) for Source Files, media cache, and preview files (if i can get the Marvel controllers/SATA III to RAID that is)
    External HD USB 3.0 for backing up projects
    Should I be doing this different?
    Does anyone think it would be better to use SDD drive(s) instead of HDDs? I

    We're almost there Harm, thanks! I'm about to indicate this as being "Answered"
    More explicitly, are you suggesting it would look like this?
    C: SSD for:
    OS and Programs
    D: RAID 0 (Three SATA II F3's) for:
    Premiere Project
    Where I render project too
    Encore Project
    Source Files (Per Harm's suggestion)
    E:  RAID 0 (Two SATA III WD Caviar Blacks) for:
    Media cache
    Preview files
    Pagefile
    Is two RAIDs more ideal? That is (provided the above configuration is correct); does the pagefile, media cache, and preview files need to be on a RAID?
    Should I partition a piece of my E and use that for the pagefile or pagefile, media cache, and preview files? If yes, which? and how much of a partition should I create?
    When setting the pagefile, should I set all the other drives to "none" (except the E of course)?
    Lastly, regarding my E: drive for media cache, preview files, and pagefile (assuming all this is supposed to be on a different drive). Would I be better off using an SSD for that? Or should I keep my E: drive HDD with RAID 0? I suppose it will depend on what's more important, read or write speed. If read speed is more important than I can get an SSD for under $200 that will be really fast reads. If it's about writing then my WD's in a RAID will be better. So, which is more important for these things, writing speed or reading speed? If the SSD would be a solution for the extra files then I’ll have this set up:
    C: SSD for:
    OS and Programs
    D: RAID 0 (Three SATA II F3's) for:
    Premiere Project
    Where I render project too
    Encore Project
    Source Files (Per Harm's suggestion)
    E:  SSD for:
    Media cache
    Preview files
    Pagefile
    F:  One SATA III WD Caviar Black for:
    Extra Backups and stuff
    Thanks Harm, I'm about to have an unprecedented editing experience I think! Finally, after more than 7 years!

  • Error when trying multiple inbound interface determination for IDOC

    Hi !
    I have this scenario: File -> XI -> IDOC. 
    For each source file, I need to send multiple idoc packages, all to the same business system, but each package should be the result of different interface mappings.
    All mappings have same source and target message types...e.g. source: MT_MyFile, target: CREMAS04.
    To avoid creating a generic mapping program, we need to duplicate the current mapping program, make it handle the new case, and then add it as second interface mapping in Interface Determination, with same inbound interface, but different interface mapping, without conditions. All interface mapping should execute.
    We are receving this error:
      <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx</SAP:P1>
      <SAP:Stack>Error when determining the inbound interface: Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx Inbound interface was found more than once (for same sender and receiver) for outbound interface urn:xxxxx/xxxx:.MI_xx_xxxxxxxx_xxx_xx</SAP:Stack>
    Any clues?
    Regards,
    Matias.

    Hi Satish !
    Thanks.
    I need to send different IDOCs to SAME business system.
    In Interface determination I need this:
    Inbound Interface -
    Condition -
    Interface Mapping
    <b>IF_1</b>                     no condition                   <b>M_1</b>
    <b>IF_1</b>                     no condition                   <b>M_2</b>
    I need to send BOTH IDOC packages to same business system.
    But it keeps throwing the posted error.
    Regards,
    Matias.

  • Conditional Interface Determination with Flat Files

    Hello,
    I have one sender interface (dummy) which could either hold a flat file or an XML file. On receiver side there is one system with two receiver interfaces, one should be used for the XML structure and one for the flat structure.
    My requirement is to have a conditional interface determination with an (exclusive) OR logic. Pseudo code:
    The XML structure has "submission" as root node. So I use the condition (/submissioin) EX to determine whether it is an XML file and I check with not(/submission) EX to determine whether it is a flat file. However the condition does not work using a flat file ("Unable to find an inbound interface"). Could it be, that the conditional expression never is true in case a flat file arrives? How can I achieve this requirement?
    What I additionally do with the flat file is just calling a Java Mapping that sets dynamic attributes for a file receiver, the flatfile itself is dumped on a file system without any addtional conversion logic.
    Thank you for your advice.

    How can I ingnore a message in case a condition applies? I am just aware of the fact that you can ignore messages in case NO condition applies.
    Couldn't you simply reverse the logic and use "not equals"? Or perhaps you can use the EX operator to alter your conditions... here is more info on the EX (exists) operator
    Re: ConditionEditor: Check if element is empty
    What is best practice in this case? Should I use a "dummy receiver"? However if I use a dummy receiver I think I would receive a "interface determination not found" error. How would you do that?
    I've never found the need to work with dummy receivers so I cannot comment there.

  • Problem in Interface determination for multiple MM

    Hi experts,
    i designed an IDOC to Jdbc scenario.
    The particular thing is that I have TWO message mappings to apply for the same source and same target.
    Hence, I have in my directory two scenarios with :
    - same Reveicer Determination
    - same Interface Determination
    - differents Receiver agreements (i have two Communication Channels)
    In my interface determination, I have configured a standard Interface determination with my two interface mappings to apply.
    My problem is when I send an idoc, the result should be for my two interfaces differents payloads to inject to the database, but I get the same payload for both interfaces with the same namespace...it looks like it only use one Interface mapping instead of both...
    It is driving me crazy...
    Any help would be greatly appreciated
    Kind regards,
    Jamal

    Hi,
    i have the same receiver.
    I do have two interface mappings in my interface determination. The problem is that it uses the same for both interface.
    If I use enhanced ID, i can only specify one Interface mapping.
    What I want :
    - sender A - Message mapping 1 - receiver A
    - and also sender A - Message mapping 2 - receiver A
    when the idoc is sent.
    what I have right now (though my configuration seems to be right) :
    - sender A - Message mapping 1 - receiver A
    - and also sender A - Message mapping 1- receiver A
    Thanks a lots,
    Jamal

  • How to go for Advance selction for source file in J2SE adapter

    Hi all,
               I am doing a file to file scenario using J2SE adapter.I have to pick file from two different directory  we  can easily achieve it in J2EE adapter using advance selection of source file but how to proceed in case of J2SE plain adapter.Please guide me with your knowledge.
    Regards,
    saurabh

    This is not possible. You need different adapters, but you can use the same interface and namespace, so there should be no issue.
    Regards
    Stefan

  • Keeps asking for source file.

    As I work on a project, I save-as the file name for example: This (myproj.mxml) to this (myproj02.mxml) until eventually I save as up to 5 or 10 files. (myproj08.mxml) in the package explorer list on the left side of the flex builder project. When I am finished I delete all the files before my last one. I can delete them all but when I go to export release build I get an error telling me
    (Flash builder could not publish the project source: The application file myproj.mxml was not found).
    The project source must be the very first file created before I saved-as to number 2, because when I bring that first file back into the project, it works again.
    How do I sever ties with all previous file versions so I can keep just the last saved-as version in my flex builder project? Thanks.

    This is not a new problem. I have encountered it through many versions of QuickTime.
    Typically, it happens after I assemble a compilation of clips from various sources, including imported Windows Media files. I diligently check the "Save as a self-contained movie" option, which always indicates a file size larger than the "Save as reference movie" option -- for example, 1.7 MB vs. only 9.2 KB for a short clip. And yet, if I have discarded the original clip, QuickTime is unable to play some of the supposedly self-contained movies because it can't find the deleted source files. It's kind of maddening, especially when there's no way to recover the original clips.
    I haven't tracked this, but I suspect it might happen when a clip in one format is pasted into a movie without first converting it to QuickTime. Has anyone else noticed this possibility and tested it?

  • The place for source file

    When We deploy custom OAF applications, We put class in the $JAVA_TOP and import definition files such as PG to DB.
    As manners, where should I put the source file?

    For java, only class files are maintained. For your custom developments, it depends on you based on what source control you use.
    For page, region xml files, you can keep them on MDS_TOP apart from your source control software.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Need to read source file without deleting it!

    Hi,
    I have a scenario where
         1.  I need to pick the latest file from source folder without deleting it.
         2. I need to post the data in to EP's KM. (how can I communicate with EP)
    So can any put some light as how to achieve this.
    Regards,
    shiva.

    Ideally, Source application should not modify same file. It should create new file so that you can archive old file.
    Are you using FTP/NFS? FCC???
    Have you tried option "Msecs to Wait Before Modification Check"?
    I m not sure if its useful for you, but just check if it works.
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/44/70ec8a20453abee10000000a155369/frameset.htm]
    -Gouri

Maybe you are looking for

  • Rokr isn't recognized by itunes 4.6

    i just bought a new motorola rokr, and it won't read in my itunes when i connect it via the usb. it comes up as an unnamed driver, but i can't put music files on it. i've done all the suggestions on the motorola troubleshooting site, and i'm positive

  • How to know if a property file that I use in my program is updated

    Hi everyone, I was wondering how my program can know as soon as the property file/any file that I'm intersted in, has been updated at runtime. Something like JBoss descriptor etc, as soon as we make a change the app server knows of that change ? I ne

  • Best way to backup LaCie USB drive

    I have Time Machine for my main computer, but I want to backup my LaCie USB external drive to DVD. What's the best way to do this? Is there a backup command that can accomplish this? Will 'tar' be able to handle this? Are there other Mac programs tha

  • How can I save a card I created in iphoto to print as a photo?

    I created some collages a few years ago and was able to save them to print as a large photos at the photo shop.  I would like to do the same with a card I created but can't seem to do it so it saves a jpeg that is big enough.  Can anyone help? Thanks

  • Open PDF via Reports

    Hi All, I have a table with a BLOB and an ID. The blob contains a PDF. I want to pass along the ID parameter to and URL, for example, http://<url oracle reports server>?id=100 Receiving this ID, then I should display the PDF with a ID=100 Can I do th