Import a csv in SSIS with the delimiter as a combination

Hi, 
How do we import a csv file in SSIS which has the delimiter : "~*|". Note the delimeter is a combination of one or more characters.
TIA.

Use the SSIS import/export wizard. It has an option for such a delimiter entry:
http://www.sqlusa.com/bestpractices/ssis-wizard/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

Similar Messages

  • The reference to entity "M" must end with the ';' delimiter issue

    Hello,
    My interface scenario is third party system sending file to PI; Then PI is generating IDOC and sending it to ECC system.
    Now issue is we are getting below error message,
    “The reference to entity "M" must end with the ';' delimiter”.
    What do I have to do to fix this error? I'm not sure what the problem about the delimiter is?
    I am giving example here,
    Input payload like:
    <NAME>H&M</NAME>
    <NAME_2>H&M</NAME_2>
    <NAME_3></NAME_3>
    <POSTL_CODE>00002</POSTL_CODE>
    <CITY>HELSINKI</CITY>
    If I removed ‘&’ from  <Name> segment value then IDOC is generated correctly.
    But Name is coming to PI like that only.
    Please help me.

    Hello Rohan
    It might be that PI thinks &M is part of an XML escape code in line
    <NAME>H&M</NAME>
    it should be <NAME>H&amp;M</NAME>
    Kind regards
    Steve

  • Why won't excel read my csv file created with the powersell out-file automatically.

    I wrote a PowerShell script that creates a CSV formatted file.  The script simply creates a comma delimited string for each entry and adds it to a collection.  Then the out-file command write it to a file.
    When you open it with Excel each line is put into one cell.  If you import the file and specify the "," as the delimiter, it imports just fine.  If the data is saved out again as a csv file,  the file is about half the size and opens
    just fine with excel.
    If you open the original file and the file created by Excel with notepad, they look the same.
    So the files are different in size, contents look the same, but Excel won't automatically open the original file.
    Any ideas of why this happens?  Also PowerShell and Excel are both running on Server 2012 R2.  Excel is a remote app.
    If I do an export-CSV, I get some kind of information about the object.
    Here is the script:
    foreach ($group in $groups)
       $header += '"' + $group.name + '",'
       $CSVdata = @()
       $CSVdata += $header
       # Create a user entry
       $users = Get-ADUser -filter * |select SamAccountname, Name | sort SamAccountName
       foreach ($user in $users)
          $Groupmembership = Get-ADPrincipalGroupMembership -Identity $user.SamAccountName
          $userentry = '"' + $user.SamAccountName + '",'
          $user
          foreach ($group in $groups)
              if ($Groupmembership.SamAccountName -contains $group.SamAccountName) { $userentry += '"X",'}
              else { $userentry += '"",' }
           $CSVdata += $userentry
          $CSVdata
          Out-File -inputobject $CSVdata -FilePath c:\batch\GroupMembership.csv

    Ok the script works exactly like I want it.  Thank you very much.
    I am trying to understand the script but I am unable to figure out what the line "$keys=$t.Keys|%{$_}"
    does.  I figured ".keys" was a method but my search for it comes up blank.  Do you have a reference you can point me to?  

  • Can I import 2 sets of photos with the same file name numbers?

    I've inadvertantly not had my camera set to "continuous" for file names and now have 2 memory cards with 2 different sets of images with the same file names.
    Can I still import both into Lightroom 2 without problems?
    What are the consequences?
    Thanks
    Stuart

    Yes. Of course, two files with the same name cannot be in the same folder. And don't forget to uncheck Don't import suspected duplicates during import.
    Another thing is that's not a good idea for good asset management, because someday you'll make some mistake because of this ambiguity. Good DAM practices suggest renaming your files after or during import, so that each files has a unique name across your entire image archive.

  • How do i import XML-project from imovie with the clips being apart? And not imported as one big clip...

    Hello!
    I have a problem with my final cut express. I want to import my project from iMovie (multiple clips in one project) without the clips together as one big clip.
    Important: XML-from imovie
    This had worked before but one day a note showed up at the screen saying:
    If i choose yes the project becomes one big clip and if i choose no this error shows up:
    and the project wont be imported.
    Help me please! This has never been a problem before.
    Sorry for the bad english, i am from sweden.
    Thanks!   //Karl Ekdahl

    Hello!
    I have a problem with my final cut express. I want to import my project from iMovie (multiple clips in one project) without the clips together as one big clip.
    Important: XML-from imovie
    This had worked before but one day a note showed up at the screen saying:
    If i choose yes the project becomes one big clip and if i choose no this error shows up:
    and the project wont be imported.
    Help me please! This has never been a problem before.
    Sorry for the bad english, i am from sweden.
    Thanks!   //Karl Ekdahl

  • What kind of cool things can you do with the ipad and macbook combined?

    I was wondering what kind of cool things can be done between the macbook pro and the ipad mini. For example syncing and other ways of communication between the two devices.

    How to sync
    Enable "Find my iPad" in Settings > iCloud. Put your name on the back. Losing it is not cool.
    Make it easy for someone to find you when you misplace it:
    Tape a business card to the back.
    If that is inelegant then make a pretty label with a phone number so that when you lose it, there is the possibility you can be reunited with it and perhaps meet someone nice as well.
    Enable "Find my iPad" in Settings > iCloud. This enables you to send a message or play a loud noise should you misplace it.
    Disable "in-app purchases" in Settings > General > Restrictions. This prevents unauthorized or unintentional purchases, some of which are expensive. You will need a password. Don't forget your password.
    Sync it to a computer running iTunes. Back up the computer because the iPad is not a backup. If it's a Windows computer, have several backups. Windows computers die with predictable regularity for a number of reasons. Your iPad is synced to one and only one computer at a time, so if its mate is lost then its content will be erased when you replace your computer. Extracting content from your iPad is not trivial and not free.
    The Remote app enables you to control your MacBook's iTunes library remotely, along with an AirPort Express, you have a remote control for your stereo.

  • My title and description info on my iPhoto images do not import to Aperture with the image

    My title and description info on my iPhoto images do not import to Aperture 3.2 with the image. Is this just the default setting and if so, is there a way to import all the info?

    Hello there, FrancesCech.
    The following iPhone Troubleshooting Assistant should help with what to do with your situation:
    Apple - Support - iPhone - Restore Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/restore/
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Novice here: can video from thumb drive be imported to iPad 2 with the connect kit? If so how. I have a thumb drive with video on it but iMovie doesn't seem to detect it.

    Can video from thumb drive be imported to iPad 2 iMovie with the connect kit?

    emory53, I'm going to see if the Moderator of this Discussion group can place this question in the iMovie for iOS Discussion Group (yes there are two, count'em two iMovie Discussion Groups) hopefully that will happen shortly.

  • Error while trying to import a repository data file in the B2Bconsole

    I am trying to import a repository data file with the delivery-channel element
    and attributes as below. <delivery-channel name="GM_DC" syncReplyMode="none" nonrepudiation-of-origin="false"
    nonrepudiation-of-receipt="false" secure-transport="true" confidentiality="false"
    routing-proxy="false" document-exchange-name="GM_DE" transport-name="GM"/> I have
    modified the WLC.dtd present in the lib\dtd subdirectory of the WebLogic Integration
    installation directory to add the syncReplyMode attribute. When i import the xml
    file,i get the following error com.bea.b2b.B2BException: ERROR: Invalid document,
    file 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\B2B_COV_Export.xml'. at com.bea.b2b.bulkloader.BulkLoader.processDataFile(Unknown
    Source) at com.bea.b2b.bulkloader.BulkLoader.processDataFile(Unknown Source) at
    com.bea.b2b.bulkloader.BulkLoader.load(Unknown Source)
    Please advise,
    Thanks in advance

    Hello Esther,
    the problem seems to be that the temp folder of the target Integration Builder system can't be found:
    'The system cannot find the path specified
    at [..] FileAccess.getTempDirectory([..])'.
    You'll experience the same problem if you try a file based import or export within the Integration Builder directly.
    I would recommend to continue the search there. You could check if the environment variables (for Windows: TEMP and TMP) of the OS of the system with the target Integration Builder to an existing path. Check also if the WebAs can access this path.
    Good luck
    Frank

  • Help required for importing a repository data file in the B2B console

    I am trying to import a repository data file with the delivery-channel element
    and attributes as below.
    <delivery-channel
    name="GM_DC"
    syncReplyMode="none"
    nonrepudiation-of-origin="false"
    nonrepudiation-of-receipt="false"
    secure-transport="true"
    confidentiality="false"
    routing-proxy="false"
    document-exchange-name="GM_DE"
    transport-name="GM"/>
    I have modified the WLC.dtd present in the lib\dtd subdirectory of the WebLogic
    Integration installation directory to add the syncReplyMode attribute.
    When i import the xml file,i get the following error
    com.bea.b2b.B2BException: ERROR: Invalid document, file 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\B2B_COV_Export.xml'.
         at com.bea.b2b.bulkloader.BulkLoader.processDataFile(Unknown Source)
         at com.bea.b2b.bulkloader.BulkLoader.processDataFile(Unknown Source)
         at com.bea.b2b.bulkloader.BulkLoader.load(Unknown Source)
    Please advise,
    Aruna

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • RTC-5190: There is no location associated with the current module ...

    Hello,
    First to know, my experience with OWB is very limited.
    I have a OWB version 10 repository and I have to import a *.mdl file (using ./owbclient.sh). The import went fine and it consists in a Databases->Oracle module with some mappings, tables sequences etc.
    Now I want to Deploy some objects but I receive a error:
    "RTC-5190: There is no location associated with the current module, operation abandoned."
    I've created a location and I've edited the imported module to associate it with the location (right click on the module->Open Editor) in Metadata Location and Data Location tabs, but it still throws the error when I try to deploy. Do you have any idea what can I do more?
    Thank you,
    Adrian

    Hello,
    The .mdl file was generated by somebody else and I can't request another export. And also I didn't found any "import locations" check.
    Anyway, at import I've seen a warning message about a location that it can't find. So I've renamed the location to be the same with the one that can't be found. This way the initial error is not thrown. But in Control Center Manager in Job Summary there is a java error about the results being exhausted. God for me that I had the idea to restart the OWB client and now it works fine.
    OWB is such a bad product!
    Thanks guys.

  • Webservice call limitations with the & character?

    Hi all,
    I'm trying to call a webservice from my flex application and in the url it ends with "/webservices?ver=2.1&wsdl"
    The error is "The reference to entity "wsdl" must end with the ';' delimiter"
    After some tests I found if I replace the & with ? or remove it completely my application runs, but that's not where the WSDL is.
    Any help on this would be much appreciated.
    Man-Ted

    You might have to escape certain characters or use “entities” like &amp;

  • FindByAltKey() is not working properly with the nullable elemens in the Key

    HI
    I am facing a problem while using findByAltKey(). I have an alternate key in my Entity Object with few nullable/non nullable columns.
    When I call finidByAltKey() with the key as a combination of non nullable columns It is working fine , that means the row iterator has some elements if that key exists in the Database.
    When I call findByAltKey() with the key as combination of nullable columns It is not working, that means the row iterator does not have any elements
    Key key = new Key(new Object[]
    { dataBean.getCapability(),dataBean.getFeasibilityFlag(),dataBean.getLineOfBusiness(),dataBean.getPriority(),dataBean.getDesGeoBegValue(),dataBean.getDesGeoEndValue(),dataBean.getDesGeoType(),dataBean.getOriGeoBegValue(),dataBean.getOriGeoEndValue(),dataBean.getOriGeoType() });
    RowIterator rows = vo.findByAltKey("NetworkFeasibilityAltKey",key,2,false);
    System.out.println(rows.hasNext());
    if(!rows.hasNext()){
    // Do this
    }else {
    // Do something else
    rows.hasNext() always givine me false value eventhough that key exists
    When I commit the row I am getting below exception
    oracle.jbo.TooManyObjectsException: JBO-28204: Too many objects match the alternate key oracle.jbo.Key[DEDS N DEDC 1 NJ null ST DEPERE null CT ] for entity sni.nm.model.entities.NetworkFeasibilityEO, key NetworkFeasibilityAltKey.
    I suspect null values are creating some problem...

    '''McAfee Site Advisor:''' https://support.mozilla.com/questions/837419
    Look for an updated version in about the 3rd week of July; hopefully they'll fix their many other errors besides, I don't think I've been able to use it since about Firefox 3.6.0 or maybe 3.6.6
    Be aware that if you currently choose to use McAfee Site Advisor it has some serious problems for Firefox users, check
    *http://kb.mozillazine.org/Problematic_extensions for some things to watch out for.
    *https://support.mozilla.com/questions/837877
    *https://community.mcafee.com/message/195191

  • Error: None of the fact tables are compatible with the query request

    Hi experts,
    I have one confirm dimension D1 and other two fact table F1 and F2 (F1 and F2 are connected to D1)
    when i create a report from D1 and F1 the report is running fine. But pull the column from F2 also in this report i am getting the following error
    None of the fact tables are compatible with the query request Code Combinations
    please suggest on the same.
    Regards,
    S

    Hi
    i have done the content level setting in each of the table, D1,F1 and F2(LTS), now i am getting the following error..
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 15018] Incorrectly defined logical table source (for fact table Gl Sets Of Books) does not contain mapping for [Code Combinations.Code Combinations.Affiliate, GL Balances.GL Balances.Currency Code, GL Balances.GL Balances.PTD_Balance, Gl Sets Of Books.Gl Sets Of Books .SoB Name]. (HY000)
    Gl Balances : D1
    Code Commbination: F1
    Gl Sets Of Books : F2
    I have checked the joins in physical and BMM layer..all are fine..

  • I'm trying to import contacts from Outlook to mac address book. I've exported as a CSV but when i try to open with the Address book import tool, the file is greyed out and can't be imported

    I'm trying to import contacts from Outlook to Mac address book. I've exported as a CSV but when I try to open with the Address book import tool, the file is greyed out and can't be imported. Any ideas? 
    Thanks,
    Ian

    If you can't get the exported .csv file to work you might consider using Migration Assistant: http://support.apple.com/kb/HT2518, particular if you need to move more than just your contacts.  There is some granularity in the options on what to transfer but I'm not sure if you can choose to just your migrate contacts.

Maybe you are looking for

  • Cannot login to new imac

    I have just received new imac. Migrated from time capsule to new imac. All seemed okay but now cannot login to any previous accounts. The password hints tell me that i am using the correct password, but no success. Have restarted computer a couple of

  • How to add existing jsp file to a project?

    I am trying out 10g developer preview. Looks like a lot of bugs are there in the tool. I would like to know how to add existing jsp file into a project. I tried the Import functionality, but it shows the option to create a project and include only Ja

  • Creation of BP from customer

    am trying to create a BP from custmer in Financial . Have already synchronized BP to Customer and Custmer to BP. am having the following error message: Customer 500002 cannot be assigned to a business partner Message no. CVIC_UI016 Diagnosis No busin

  • Netweaver Developer Studio Installation

    I am installing developer studio with Sql server along with java engine. But during the installation after giving the path of the JDK and JCE policy following installation occurs. ERROR 2008-05-27 12:38:25 MOS-01185  The subkey 'HKEY_LOCAL_MACHINE\SY

  • Is it possible for two servers to receive broadcasts on the same port?

    I'm trying to run multiple instances of a class that creates a UDP socket that receives broadcast packets on a specific port: socket = new DatagramSocket(port); The second and succeeding instances get a BindException because the address is already in