Issue with Target File structure

Hi Experts ,
                          Mine is a proxy to file scenerio. please suggest me on the below req. My target file structure should be as follows.
HDR:PARTNER,CHDAT,NEW_TEL,OLD_TEL,PREF_CONTACT_NO,TEL,EXXX_ID
1029382,28.02.2011,0782191829,049829329,Y,3,0
1029382,28.02.2011,0783484311,077383738,N,2,0
1029382,28.02.2011,01972383934,0113938393,N,,0
1039385,28.02.2011,0782133829,079829310,Y,3,0
10245748,28.02.2011,N,,,,DAVID.WHITAKERattheYAHOO.CO.UK
112928393,28.02.2011,01183393843,01123839388,N,,Tom.HanksattherateSKYdotCOM
FTR:UPDATE_VENDOR_CONTACTS_SRM_TO_EIS,01.03.2011 02.18.29,6
This structure has 3 parts , header , body and trailer.
I am planning to create a target  structure . Is it possible to get the field names of the structure in it
Header
     HeaderInfo :  HDR:PARTNER,CHDAT,NEW_TEL,OLD_TEL,PREF_CONTACT_NO,TEL,EMAIL_ID
Body
1029382,28.02.2011,0782191829,049829329,Y,3,0
1029382,28.02.2011,0783484311,077383738,N,2,0
1029382,28.02.2011,01972383934,0113938393,N,,0    
Footer
     Footer Info :FTR:UPDATE_VENDOR_CONTACTS_SRM_TO_EIS,01.03.2011 02.18.29,6
I will take care of the comma and the single line for header/footer and multiline for body in content conversion ,
In the footer I need date and time stamp along with total number of rows for the body.
How do I get the same  .
Please suggest .
Arnab.

Hi,
Yes you can get the timestamp and count of no of records in the footer.
Please define your target structure like below
MT_
Records
  Header ( o to 1)
    Headerdata
  Items(0 to unbounded)
    field1
    fielld2
Footer
  Footerdata
And in the mapping get the current dat using data function.
And then pass the Item node to the function count
Concat both of them along with the constants you need and assign to footer data..
Thanks
Suma

Similar Messages

  • Issue with Sender File FCC

    Hi Experts,
    I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
    The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
    The Error thrown is :
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
    I have two questions:
    1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
    2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
    Thanks,
    Arkesh

    Hi Arkesh,
    I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
    In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
    I hope this helps you....
    Thanks,

  • A serious issue with excel file read in ODI

    hi gurus,
    Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
    what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
    So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
    Set objArgs = WScript.Arguments
    For I = 0 to objArgs.Count - 1
    FullName = objArgs(I)
    FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
    Set objExcel = CreateObject("Excel.application")
    set objExcelBook = objExcel.Workbooks.Open(FullName)
    objExcel.application.visible=false
    objExcel.application.displayalerts=false
    objExcelBook.SaveAs FileName & "csv",23
    objExcel.Application.Quit
    objExcel.Quit
    Set objExcel = Nothing
    set objExcelBook = Nothing
    Next
    Now this script convert the xls file to csv with comma seprated values
    e.g in excel sheet if data is ABC XYZ PQR
    csv will come with ABC,XYZ,PQR
    here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
    but if i change 23 with 124 its not working i getting the error cannot save as...
    can anyone tell me that what should be the correct code for pipe
    so that the output is ABC|XYZ|PQR
    AS WE CAN USE THE SCRIPTS IN TOOLS
    Edited by: 789141 on Sep 14, 2010 11:33 PM

    I dont have the answer for your question but i have different approach in handling multiple Excel File.
    Step 1. Copy a sample source Excel File and Call it Final.xls .
    Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
    Step 3. Do the Reversing and Map and test the Interface . Once its done.
    Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
    Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
    Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
    Step 7. Increment the Loop and copy your next File for Final and run the interface
    Step 8 . Finally you will be able to read all the Excel File .
    Step 9 . Delete the source file [ Optional ]
    Hope this helps.

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Issues with Bex query structures and Crystal Reports/Webi

    Hi experts,
    I'm having an issue with Bex Query structures and nulls. I've built a Crystal Report against a Bex query that uses a Bex Query structure. The structure looks like the following
    Budget $
    Budget %
    Actual $
    Actual %
    Budget YTD
    etc
    if I drag the structure into the Crystal Report detail section with a key figure it displays like this
    Budget $     <null>
    Budget %     <null>
    Actual $     300
    Actual %     85
    Budget YTD     250
    the null values are displayed (and this is what is required). However if I filter using a Record selection or group on a profit centre then the nulls along with the associated structure component are not displayed.
    Actual $     300
    Actual %     85
    Budget YTD     250
    Webi is also behaving similarly. Can anyone explain why the above is happening and suggest a solution either on the Bex side of things or on the Crystal Reports side of things? I'm confused as to why nulls are displayed in the first example and not the second.
    Business Objects Edge 3.1 SP2
    SAP Int Kit SP2
    OS: Linux
    BW 701 Level 6
    Crystal Reports 2008 V1
    Thanks
    Keith

    Hi,
    Crystal Reports and Web Intelligence will only show data which is in the cube. You could have an actual 0 or Null entry whithout grouping but by changing the selection / grouping in the report the data does not include such entry anymore.
    ingo

  • Issue with attachment file name

    Hi All,
    This is about an issue with attachment file name:
    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    Regards
    kiran

    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    - <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
      <SAP:Name>1 .Header1.txt</SAP:Name>
    Error we are getting is
    Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
    So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
    Thanks for interste and assisting
    Regards
    Kiran

  • Issue with corrupted file when dragging to timeline

    Has anyone ever had an issue with a files audio becoming corrupted when moving the file from the editing window to the timeline.  I am also seeing the my camtasia mp4 becomes blurry on the timeline but plays fine in the editing screen.
    I had not problem with camtasia Mp4s previously and today I have had so many issues with premier pro

    Hi,
    Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes &quot; as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
    <element name="FieldTwo" type="string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy="<"/>

  • Issues with RAW files from my 7D

    I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
    Any words of advice, other than just buy Aperture 3??

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Sharpening issues with RAW files

    Hi,
    I have downloaded lightroom 5 as a one month trial and have been playing with the program. I am not an experienced user and are wondering if I am doing something wrong, have wrong settings applied or if it is the known sharpening bug that messes with my photos. I know that sharpening and noise reduction includes a bug that does not let you export pictures 1/3 of original size with sharpening/noise intact. However, in my case, this also happens with RAW files. I do not crop or change size/resolution to any of the photos, but the sharpening is still not working. Photos look great in develop mode, but when I click on library mode to export them, all sharpening disappears!
    Is this the same bug previously reportered "only for pictures 1/3 of original size", or do I have some strange settings applied?
    I was loving lightroom 5 up until I noticed this, and now I am reluctant to buy the product...
    I'd be greatful if anyone has any input on this!
    Thanks in advance

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Issue with delimited file

    I have a file with a following structure:--
    "0.1";"19.8";"Less than 20 years"
    "20.2";"29.2";"20-29 years"
    "30.1";"39.3";"30-39 years"
    "40.2";"49.3";"40-49 years"
    "50.4";"59.5";"50-59 years"
    "60.6";"110.8";"60 years or more"
    Under the Files tab i have defined record seperator as MSDOS,record separator as ; text delimiter as " and decimal separator as .
    When I reverse the file I get the three columns and when i change the type of first two columns to numeric and then try to view the data,I see nothing.
    At file location a .bad file and .error file is created.
    .error file says:----
    Line 1: Value was incorrect for column 0: String "0.1" is not a valid representation of an decimal
    Line 1: Value was incorrect for column 1: String "19.8" is not a valid representation of an decimal
    Line 2: Value was incorrect for column 0: String "20.2" is not a valid representation of an decimal
    Line 2: Value was incorrect for column 1: String "29.2" is not a valid representation of an decimal
    Line 3: Value was incorrect for column 0: String "30.1" is not a valid representation of an decimal
    Line 3: Value was incorrect for column 1: String "39.3" is not a valid representation of an decimal
    Line 4: Value was incorrect for column 0: String "40.2" is not a valid representation of an decimal
    Line 4: Value was incorrect for column 1: String "49.3" is not a valid representation of an decimal
    Line 5: Value was incorrect for column 0: String "50.4" is not a valid representation of an decimal
    Line 5: Value was incorrect for column 1: String "59.5" is not a valid representation of an decimal
    Line 6: Value was incorrect for column 0: String "60.6" is not a valid representation of an decimal
    Line 6: Value was incorrect for column 1: String "110.8" is not a valid representation of an decimal

    Whilst in general, what you say is true, ODI is in fact flexible enough to have a "one-step" interface, which uses any tools to just do the "integrate" step.
    If your IKM is multi-technology (e.g.file to Netezza), and in your interface you set the checkbox, staging area different from Target, and select your source schema from the drop down, you will only need to specify the IKM.
    This is useful in circumstances where you want to break down the steps of your integration process in small steps. You will in this case be limited by the nzload limitations - some bulk loaders only operate on empty tables, or operate faster on empty tables, created with certain parameters (like Teradata's fastload). So you could have an interface which only has the "integrate" phase, and no "load" phase.

  • Issue with Deduplicated files and Mac OSX 10.9.2

    Running a Windows 2012 R2 DFS with Deduplication enabled on the storage drives.  Both Macs and PCs regularly interact with the system with no issues.
    However with Apple's rollout of 10.9.2 SMB2 'fix' users are no longer able to correctly interact with any files on the file server with the "SparseFile" attribute, which appears to be from the deduplication of the file.
    When the Macs attempted to download a "sparsed" file they get an error along the lines of "you do not have permissions to copy this file".  This is annoying enough, but the biggest head ache is when a user tries to
    copy a folder that has sparced files in it, the folder and its files are seemingly copied but the Mac does not copy the sparced files... and give no indication to the user that it ran into an error... Finder just closes like
    the operation was completely successful.
    Even more annoyingly the user can open the file directly from the server, and work on the file with seemingly no issues, but when they save the file the changes are often not saved, and the user gets NO feedback from the application or OS.
    It seems the Macs are seeing the file as having a NULL file size and they skip the file when they download it.  This was not the case in 10.9.1 or any other version of any other OS we have tested.  We have entered this as a bug to Apple
    and hope they will fix it... mostly just posting this for the next admin who is pulling his hair out trying to figure this out.
    For a work around you can force the Apple 10.9.2 system to use SMB1 by using the CIFS protocol to connect to the server instead of normal SMB... which is not ideal but will work for now.

    Hi,
    Please try to change "everyone" user permissions on a share folder to modify to see if the issue still exists.
    For more detailed information, please refer to the thread below:
    Problems with permissions when copying a files and folder on Windows remote share
    https://discussions.apple.com/thread/4902764?tstart=0
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Transparency Issues with PSD files in FCP 7

    I'm having some weird file layer transparency issues with FCP 7. I'm working on a project that's made up entirely of graphics drawn in Photoshop CS5. They Photoshop settings were done to match an HDTV 1080i (16:9) sequence in FCP. In FCP, the pixels were set to square, field dominance to none, frame rate to 29.97 and compressor is Apple ProRes 422.
    I exported my PSD files out of Photoshop, with each layer being exported to its own file. In general, things were fine, but there were a few files where you could see the outline of the character against the background, but mind you that this is only visible once the video is rendered out in the FCP timeline. Nothing is visible in Photoshop, nor is it visible while viewing from the Browser in FCP. I told this to the artist and he went back and made corrections, making sure everything was on a transparent background, but the result was still the same - once I rendered the graphics out in FCP, these edge lines were visible.
    I then went back into Photoshop, opened all the files that were giving me trouble, clicked on the "foreground color" and changed it to a color other than white, then back to white and hit ok. That seemed to work - even when rendered out, I was getting no artifacts, until I tried enlarging the graphics over 100%.
    Also, with some of the same graphics, I was trying to layer them so that a guy was in the foreground with other people and a van behind him in the background. Once again, no problem in Photoshop, but once brought into FCP, the background people were actually being displayed over the main foreground character.
    I'm pretty baffled - what to do? I'll attach a photo of the weird lines around the characters. It might be hard to see at this size, but if you download and enlarge it to 300% or so, you'll see what I mean.

    Just saw that Adam's original post was an older one.  Will keep this here anyway to maybe help the most recent poster.
    Sharon
    Adam, did you try what David said about pointing to the root folder?  Did that work?
    When I copy the SD card, I name a new folder on my hard drive something specific, like Smith Wedding.  Then I copy everything inside the SD card to that new folder.  The first level inside my new folder now has folders for
    AVF_INFO
    PRIVATE
    and on down from there.  When you open Log and Transfer, point it to the Smith Wedding folder (of course whatever you have named yours).
    ClipWrap2 also works great to convert the files beforehand if you want.
    What camera are you using?  I have the Sony NX30 and it was giving me fits because the .mts files don't ingest if the clips are longer than 11 min. My problem is that I'm still on FCP 6.0.6.  I think 7.0.3 fixed that.  But I did find enough work-arounds to keep the camera. 
    This is a link to the full discussion if you are interested.
    https://discussions.apple.com/message/19085158#19085158
    Sharon
    Message was edited by: SSteele

  • [Applet]Printing issue with pdf files on Xerox 4595

    Greetings !!
    I'm trying to print to a Xerox 4595 printer from a Windows XP station (limited account) using a Java Web Applet.
    This applet generates pdf files which have to be printed.
    The Xerox 4595 uses a printing queue that is detected by the Applet.
    The problem is the following: usually when printing a simple local file from this computer there is a box that asks you your login to let you create a job and then print.
    When using the Java Applet, there is no way to have this print box displayed. We have the Java Print Dialog but once clicked on "Print" there is no box displayed to pass the login to the printer and let us print.
    Is anyone already worked with Xerox 4595 and experienced such issue ?
    How can I, using the Java language and modify the Applet, ask the printer to send me the dialog box asking for the login ? Without this login no jobs are accepted and we can't print the generated pdf files.
    I looked on the printer queue settings and it seems that the Xerox uses the IPP to communicate with the local computers in the office.
    The server from which the Applet is used is a openSuSE Linux Web server (apache2)
    How come using Linux workstations any pdf files are printed (on shared printers such HP laserjet) and under windows there is jammed characters and sheet feed instead ?

    A lot can depend upon which app your are using on your tablet device, the same applies to computer programs but apps are much worse.
    Which app are you using?
    I would try the free Adobe Mobile Reader. This product seems to support more features than other apps.
    There could even be issues with the type of tablet you are using. The Apple line may work better then Android devices since there is QA check and approval by Apple.
    Another factor is the how the PDF was created.
    How well are the maps displayed on your laptop or desktop? Try different values of zoom.

  • Download issue with 1 file in 11.5.10+ virtual Documentation Library

    I am unable to download the following document from the 11.5.10+ virtual Documentation Library.
    Title:          Using Oracle Workflow in Oracle Order Management
    Part Number:     A96689-02
    URL:          http://download-uk.oracle.com/docs/cd/B16981_03/current/acrobat/115omwf.pdf
    It seems that whether I try to open it or save the document to disk, it makes no difference. Please can you check whether there is a problem with the file as I am able to download all the other documents on this web site. Please can you correct this issue.
    I would also like to suggest that a single zip file (containing all the documents revised or released since the creation of the original 11.5.10 documentation library CD) be made available so that customers can download all new documents with a single click, without having to download the entire CD.
    Regards
    Mark

    Try replacing download-uk.oracle.com with one of the below:
    download-east.oracle.com
    download-west.oracle.com
    Cheers, OTN

Maybe you are looking for

  • Cache issue in OBIEE 11.1.1.6.0 dashboards

    Hi, last week I disabled cache in EM and restarted BI Services but OBIEE keep hitting presentation server cache (BI server cache is purged manually). I restarted BI services couple of times but dashboards keep hitting presentation server cache. I edi

  • Hi All, newbie here, trying to install Windows 7 on my new iMac, heaps of trouble?

    I get to a point where I choose the Bootcamp partition and the error message comes up: Windows cannot be installed to this hard disk space. Windows must be installed on a partition formatted as NTFS.....

  • Compare two characteristics in Query

    Hi Experts, I have to compare two characteristics in Query fields like (A)Approved Level of Job(contain values like 01,02,03,04) and (B)Required Level of Job(contain values like 01,02,03,04). Now I have to do these calculations If A>B =1 If A<B =0 An

  • How do I fix font problems in InDesign?

    Fonts are not displaying correctly in InDesign . .  . Exporting to PDF produces distorted fonts. I have tried with Helvetica and Helvetica Nue. I am not using third party font software . . I am on OSC Maverics running Indesign CC. Also some low res j

  • Thunderbolt or MiniDisplay Port?

    So I'm wanting to get an HDMI hook up for my Macbook, so I can hook up almost anywhere I go. While searching for a MiniDisplay Port adapter, I came across a Thunderbolt to HDMI adapter. So my question is, which is better? I know Thunderbolt is suppos