FCC Send File Adapter - missingLastFields not working

Hi
I have a flat file to capture using the sender File adapter
Parameter as follows:
Header_fieldNames : Key,Name,StaffID,Telephone
Header_fieldFixedLengths :  2,12,10,8
Header_endSeparator : 'nl'
Line_fieldNames : Key,Address,Company,LineText
Line_fieldFixedLengths :  2,20,20,40
However there are times where last field come in missing.
Hence I use the Header_missingLastFields : error
                          Line_missingLastFields : error
However it does not seem to be working as the adapter fails to pick the file from the FTP folder
but if I  replace error with ignore, the sender adapter picked the files and process and send to the receiver adapter.
I need to flagged error in sxmb_moni if last field or last few fields are missing....any advise how could this be achieve ?
Regards
Fred

Hi Freddy,
I think you might like to specify missingLastFields = add. then it will add the missing fields as empty. you can further check if these are empty in mapping and then fail the message or create an alert.
If you specify "ignore" then you will not get those fields in your structure and if you specify "error" then the file will not be picked up.
have a look here
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
missingLastfields
If the inbound structure has less fields than specified in the configuration then the XML outbound structure is created as follows:
○       ignore
Outbound structure only contains the fields in the inbound structure
○       add
Outbound structure contains all fields from the configuration; the fields missing in the inbound structure are empty.
○       error
Conversion is terminated due to the incomplete inbound structure. An error message is displayed
regards,
francis

Similar Messages

  • Sender file adapter is not polling the file.

    Dear all,
       Sender file adapter is not polling the file.(But Receiver file adapter is getting the file)
    we have installed SP15.
    It was worked fine for previous SP14.
    I have cheked in Adapter monioring also.
    Can you help me out of this problem
    Regards
    Dhanabal

    Hi Dhanabal,
    Is the XI system running on a unix machine ?
    If yes, from the OS level for the folder you are using in the file comm. channel, execute the command
    <b>chmod 777 <folder_name></b>
    The reason for the file to show up in receiver side and not get deleted might be that the xi user mighht be having only read access to the folder...
    Thanks,
    Renjith.

  • Sender file adapter missingLastFields Parameter

    hi all,
    i have a wierd problem...
    i use a sender file adapter with content conversion to read the data of a file.
    all is fine until he get to a record when the last couple of fields are not in the file (and it's ok that they don't appear). i want the adapter to put no data in the last couple of fields but convert them to the XML tags.
    i am using the parameters: missingLastFields and keepIncompleteFields to keep the fields although they don't appear in the file.
    the parameters i am using are these:
    SA140.fieldNames:
    ActionCode,UpdateType,IDNumber,Filler1,RecordCode,Filler2,ExteriorColour1,Filler3,ExteriorColour2,Filler4,ExteriorColour3,Filler5,ExteriorColour4,Filler6,ExteriorColour5,Filler7,ColourArea1,Filler8,ColourArea2,Filler9,ColourArea3,Filler10,ColourArea4,Filler11,ColourArea5,Filler12,TireCode1,Filler13,TireCode2,Filler14,TireCode3,Filler15,TireCode4,Filler16,TireCode5
    SA140.fieldFixedLengths:
    2,2,10,4,3,41,5,1,5,1,5,1,5,1,5,1,2,1,2,1,2,1,2,1,2,1,6,10,6,10,6,10,6,10,6
    SA140.keyFieldValue:
    140
    SA140.missingLastFields:
    Ignore (i used the parameter "add" too and it still didn't work)
    SA140.keepIncompleteFieids
    true
    the row i am trying to read is:
    024018837002186 21140         1799    KW16    RW17    1010    9147                                         F18L19     7503 F18L19     7502 F18K27     7508
    as you see a couple of the last fields are showing in the text.
    could you please tell what am i doing wrong?
    maybe there is another parameter i missed?
    regards,
    roi grosfeld

    sorry but it still doesn't work...
    i am getting the same error:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 5 according to structure 'SA140':java.lang.Exception: Consistency error: last field in structure 'SA140.' is incomplete - specify 'keepIncompleteFields' parameter accordingly to allow this
    regards,
    roi grosfeld

  • Sender File Adapter is not reading anything

    Hi,
    I have a really strange problem here. I'm tyring to read a file using file adapter (FTP) and the adapter doesn't read anything and it does not throw any error in the communication channel monitoring.
    I'm using a receiver file adapter to write files to the same FTP folder, so it can't be a connectivity problem. And I tried to get the file using Filezilla and it works fine...
    In the sender file adapter I tried to simplify the maximum to solve the problem:
    - NO File Content Conversion
    - NO advanced attributes
    - I used the "*" in the file name to read any file
    - I've only configured the FTP connection, the folder and the file name. I don't understand why it isn't working...

    Yes I got this message:
    Polling interval started. Length: 5,0 seconds
    Now I tried something... In the FTP Connection parameters, I set as the server a random and unexisting name, and I get the same result...
    I'm starting to thing that some firewall is blocking the connection, but I have to wait until next monday to know this. But I don't understand why the receiver FTP channel is working...
    PD: The cache is correctly refreshed because I changed the polling interval time, and it has been updated on the monitoring

  • Sender File adapter is not picking up file

    Hi,
    I am usning the sender file adapter to process a file through FTP. Adapter does not pick up the file, however it recognise the file, as it appears in the error message. Below is the text of the error message:
    <i>Could not process file '<b>filename</b>': com.sap.aii.adapter.file.ftp.FTPEx: 550 toSAP: No such file or directory.</i>
    I am not sure yet whether this file is <b>read only</b>. Can read only file not be processed in FTP ?
    Thanks

    Hi, I have the same problem. In advance, we can see in FTP Server log that CWD command it is called twice, for example :
    00:00:59 10.15.64.187 [4669]USER MDM 331 0
    00:00:59 10.15.64.187 [4669]PASS - 230 0
    00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 250 0
    00:00:59 10.15.64.187 [4669]CWD MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready 550 3
    00:01:59 10.15.64.187 [4669]QUIT - 550 0
    If we create a directory MDM_55600_MATERIAL_STD\Outbound\ESN_800\_MATMAS05\Ready into the first directory Ready where it is positioned with first cwd , its works !!
    First CWD is called for read file an seccond for processing, somebody knows because this behavior ?
    Best Regards
    Claudio Maino

  • Sender file adapter is not picking the file from windows server

    Hi Experts,
    We have a sender file adapter running on Unix server. Now we have changed the source directory path from Unix to Windows in file access parameters.  It is not picking the files from windows directory and not showing any error.
    In this scenario, input file for sender adapter is *.xml and no content conversion.
    Could any one please let me know is there anything needs to changed in file adapter.
    Thanks in advance,
    Sridhar. M

    Sridhar,
    What do you have in the directory path?
    If it is a shared drive in unix then the directory in windows should also be a shared drive from XI system. Else if it is FTP check the address.
    Regards,
    ---Satish

  • FCC Sender file adapter : Message Spitting 1:2

    Hi expert
    i am execuing a file to file scenario, with message splitting 1:n
    1 source MT   and 2 Target MT.
    My source MT structure becomes as
    Message               
    ....Message1         
    .......SourceMT 
    ................row          
    ....................Field1
    ....................Field2
    Now how to configure this structure at Sender file adapter
    File Content Converson.
    as after adding to MT  at target side in message mapping...
    2 extra hedder are added at source MT..
    Regards
    ajayp

    > Message               
    > ....Message1         
    > .......SourceMT 
    > ................row          
    > ....................Field1
    > ....................Field2
    >
    > Now how to configure this structure at Sender file adapter
    > File Content Converson.
    >
    > as after adding to MT  at target side in message mapping...
    >
    > 2 extra hedder are added at source MT..
    Ignore 2 extra header and do your FCC as you do in normal scanario.

  • Dynamic port configured for FILE adapter is not working

    Hi,
    I have a simple dynamic port in an orchestration that writes a file to a file location. Here is the configuration
    ================
    FilePort(Microsoft.XLANGs.BaseTypes.Address) = "FILE://c:\\TestFolder\\Out";
    FilePort(Microsoft.XLANGs.BaseTypes.TransportType) = "FILE";
    ================
    When I run this orchestration, the dynamic port does not write the file to the folder, however I does not show any error either. It is always in "Ready to Run" state where the message is "Queued Awaiting".
    I tried all sorts of combinations like FILE:// FILE:\\ File: file:// file:\\ etc... and also without the moniker, just c:\.... I get the same problem.
    when I use a static port(subscribed to the same message) it works fine. When I use a static port ALONGWITH this dynamic port then both works fine !!! I receive 2 files.
    but when I use only dynamic port it does not work!!
    Anybody knows how to solve it.
    THANKS IN AVANCE
    PLEASE HELP
    Surya

    It could be becasue you 're not passing in the file name, Try something like this..
    SndPort_Dynamic(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\Test\Try\Out\Test1.xml";
    But even when you don't pass the file name, i was expecting the erro to be like:
    The FILE send adapter cannot open file C:\TestFolder\Out\ for writing.
    Details: The system cannot find the path specified.
    But try with File Name and restart the host instance after the change.
    Or use somehting like this:
    FilePort(Microsoft.XLANGs.BaseTypes.Address)=@"file://C:\Test\Try\Out\\%MessageID%.xml";
    FilePort(Microsoft.XLANGs.BaseTypes.TransportType) = "File";
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • Sender File Adapter does not get files when there is a large number ( 300)

    We are on XI 7.0 (SAPKB70015)
    We have an issue picking up a large number of files from a particular server. We are trying to pickup the files based on a wildcard e.g. test
    - we can retreive up to 200 files from the same server (using the same config) no problem
    - we can pull lots of files (>3000) files from other servers (using the same config) no problem
    - we can write an mget command (mget test) to reteive the files no problem
    So the only issue is retrieving a large number of files from a parfticular server. We see no errors in the RWB.
    To get this sorted out we need to find the exact commmands that XI executes to attempt to retrieve the files. Can anyone point me in the right direction on how to find this.
    Thanks
    Richard

    It turned out that this was caused by a limitation on the ftp server.
    The file adapter uses the dir command to get a listing of the files matching a specific mask. The dir command does not return any files if there are a large number (the ls command works fine but the file adapter uses dir instead of ls).
    sap told me that 'According to this FTP server is no compliant with RFC 959 and that is
    why DIR command returns an error.'
    We were able to get this resolved by applying a patch on the ftp server.
    Thanks
    Richard

  • File adapter - APPEND not working

    Hi Everyone,
    I want to append a text file on the target side. I am using FCC on the receiver side and the file construction mode is "APPEND" and file type is "TEXT". When i test my scenario, the file gets created for the first time and for the next time onwards, I get an error : "Target file already exists and must not be overwritten".
    Kindly help me to solve this issue.
    Thanks,
    Laawanya

    Check the below thread for the same:
    Have you checked overwrite box?
    It should be checked as well, and also check for necessary authorizations for this.
    Appending data in receiver file adapter
    Divyesh Vasani

  • File Adapter is not working and create client copy in NW 7.0?

    hi,
    this is sreeram.i installed and configured PI 7.0 SR2 but file was not picking up from the input folder.i can able to select file adapter when i am creating communication channel.i gone throw RWB component monitoring->Adaptor monitoring there i seen all adaptors are in faded color not in green.can any one help to resolve the proble?
    one more question is i created 3 clients from 000 client using tcode scc4.when i am entering with SAP* and password is: pass it's not entering into that client.i also tried username: SAP* password as : password pls tell me SAP* password in NW 7.o?

    Hi,
    Take a look at the forum links looks like same problem
    HTTP Response: 500  internal server error
    HTTP adapter - 500 Internal server error
    Message mapping-Urgent
    Can you go through the below urls:
    calling soap error
    SOAP  - XI - SOAP Error
    Error while Testing SOAP Adapter In XI
    Please reward points if it helps
    Thanks
    Vikranth

  • Sender JMS Adapter does not work

    Hi all,
    We have created a sender JMS adapter with transport protocol "Access JMS Provider with JNDI". The adapter connects to destination successfully, so the connection parameters are right. However, we do not receive any message when the sender sends them.
    What parameters should we set to be able to retrieve messages from the queue?
    Thanks in advance,
    Samantha.

    Hi,
    Into Communication Channel Monitoring, we get the following errors:
    1. Error occurred while processing message: null. Detailed error (if any): java.lang.NullPointerException: at java.text.MessageFormat.applyPattern(MessageFormat.java:414) ...
    2. Added dynamic header: DCJMSMessageSelector to XI message null which corresponds to JMS message selector: mentioned in the channel configuration
    3. XI message ID corresponding to the JMS message with ID: ID:1109F6E3DF541328-00000000053E as stripped of the "ID:" marker and now has the value: null
    4. XI message ID corresponding to JMS message with ID: ID:1109F6E3DF541328-00000000053E will be created with the value of JMSCorrelationID which has the value: null
    Where is the problem?
    Thanks again,
    Samantha.

  • File Adapter Read not working

    Hi All,
    I have a file adapter service,which has to read a CSV file.
    The configurations i have done is
    1)Gave the incming diretory path,delete option is checked
    2)Polling frequency - 5 secs
    3) gave the xsd.
    But the process is not picking up the file,and i dont see any errors in domain.log
    Please help.
    Regards
    Ashwini

    Hi Anirudh,
    Thanks for the reply.
    IS there no solution other than restarting the server ??
    below is the xsd i am using.please let me know the modifications that i can do to reject the second invoice if there are any errors in that and proceed further.
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://antony.blog.com/ReadStructuredMasterDetailService"
    xmlns:tns="http://antony.blog.com/ReadStructuredMasterDetailService"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Invoice">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="InvoiceHeader" nxsd:startsWith="$H$" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Supplier_name" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Supplier_Site" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Inv_No" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Invoice_Date" type="xsd:date" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Invoice_Currency" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Invoice_gross_Amount" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Total_Ex_VAT" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;"/>
    <xsd:element name="Total_VAT_Amount" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Scanned_image_Reference_URL" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" />
    <xsd:element name="InvoiceDtail" maxOccurs="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="InvoiceDTL" nxsd:startsWith="$D$"
    maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Business_Unit" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="location" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Store_Name" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Department" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Natural_Account" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=","/>
    <xsd:element name="Inc_VAT" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="Ex_VAT" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="VAT_Amount" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="," />
    <xsd:element name="VAT_Rate" type="xsd:int" nxsd:style="terminated" nxsd:terminatedBy="${eol}"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Regards
    Ashwini

  • Sender SOAP adapter - WSDL not working

    Hi,
    I am doing Sender SOAP and receiver RFC adapter for SOAP-BAPI scenario.The WSDL is generated after IR and ID config.
    URL
    http://host:port/XISOAPAdapter/MessageServlet?Sender.Service=BS_VCT_Sender&Interface=urn:abb-com:vct:sap:ven%5EUSER_MI
    But by testing by XML spy, m getting error -
    com.sap.aii.af.service.cpa.CPAException: Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=null;TS=null;AN=null;ANS=null;
    Can you please let me know wats error in it. I have testing mappings and all is OK. How to test also pls tell me.
    When opening URL in IE, its giving -Message Servlet is in Status OK.
    Pls answer.
    Thanks

    Hi all
    thanks for replies.
    i am testing by xml spy 2009 sp1.
    finally i am using this URLin SAP PI 7.0 :
    *http://host:port/XISOAPAdapter/MessageServlet?senderService=BS_VCT_Sender&interface=USER_MI&receiverParty= &amp;receiverService=Sys_RD2_520&amp;interfaceNamespace=urn:abb-com:vct:sap:ven*
    But problem is i am not allowed to save WSDL file with "&" only , when i am saving file like -> senderService=&interface then its giving WSDL file not well formed. I must use "&amp" in stead of "&" to make it well formed.
    Thus its not identifying -
    Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;FS=BS_VCT_Sender;TS=null;AN=null;ANS=null;
    Any way that &amp; can be avoided in WSDL.

  • Send file as email not working when Outlook 2013 is default mail client

    Have Adobe Reader XI 11.0.2 installed.  Running Windows 7 Pro 64 bit with Office 2013 installed.  When I set Default E-mail Application to Microsoft Outlook from Preferences I receive the following error trying to send any file as an e-mail:
    "Either there is no default mail client or the current mail client cannot fulfill the messaging request.  Please run Microsoft Outlook and set it as the default mail client."
    I have toggled Microsoft Outlook 2013 off and back on as the default e-mail handler in the Default Programs of the Control Panel, but this has not resolved the issue.
    I am guessing this may be a new bug since Outlook 2013 only recently came out, but if not, and someone has a fix, please let me know.
    Thank you,
    - Brian

    Please try the steps mentioned at: http://support.microsoft.com/kb/813745 and check whether the issue is resolved or not.
    If not, then try starting the outlook in safe mode using (Outlook.exe /safe) and check the issue again.
    Hopefully, these will resolve your issue.

Maybe you are looking for

  • Saved in InDesign 5.5 and can't open in 5 - grrr

    I saved a file in Adobe InDesign 5.5 at work and brought it home to my InDesign 5 and now I'm being told I'm missing a Shared Content Plug, FormField Plug in, XML and a few others.  Is this an issue I can resolve without waiting till tomorrow. File w

  • Emailing the photo files as an attachment, not the opened photo

    When I export a photo to email I will get the actual photo in opened format in the text part of the email, and not a file name attached to the email. I use a iMac OS X version 10.6.7. How can I change to attaching the photo files? Thanks for your hel

  • JMS Adapter Driver Installation

    Hi I need to install JMS Drivers for the JMS adapter. I went through <b>'How to install & Configure External Drivers for JDBC & JMS guide.pdf'</b>. It says that we need to add com.ibm.mq.jar; com.ibm.mqjms.jar to the aii_af_jmsproviderlib.sda file an

  • Error BC30198 ')' Expected

    I'm trying to perform a series of calculations in SSDT 12 and the first I thought would be extremely basic. It works as an expression in a textbox but when I try the same thing in a variable I get an error. I'm trying to do "85 - used percentage". Us

  • How to install the playbook OS 2.1

    I keep hearing about the playbook app but I don't know how to get it, or even if it's already on my phone or not... little help please Solved! Go to Solution.