Need Help using OpenText Methord to read a CSV formmated file into an excel spreadsheet

I am trying to load a csv into excel with formated columns, the 4th column is alphanumeric but after loading the values in the four column the column is define as general and it drops the leading zeros on values that have the leading zeros
i can not use a sub string to preload the zeros due to varing length and format the csv file has them correctly anybody have a solution on how to correct?
the VBScript looks like;
Set objExcel = CreateObject("Excel.application")
Const xlDelimited  = 1
Const xlGeneralFormat = 1
Const xlTextFormat = 2
oFile = "I:/temp/MEMAPRPT3P 2014-08-04.csv"
wfile = "I:/temp/MEMAPRPT3P 2014-08-04"
filetime = "_2015_01_20_10_28_00"
tagname = "sample"
objExcel.application.visible=false
objExcel.application.displayalerts=false
objExcel.Workbooks.OpenText Filename, , 1, 1, , False, False, False, True, False, , ,Array(Array(1, xlTextFormat), Array(2, xlTextFormat), Array(3, xlTextFormat), Array(4, xlTextFormat))
Set objExcelBook = objExcel.ActiveWorkBook
Saveasfile = trim(wfile) & trim(filetime) & ".xlsx"
objExcelBook.SaveAs Saveasfile, 51
objExcel.Application.Quit
objExcel.Quit  
Set objExcel = Nothing
Set objExcelBook = Nothing
The csv data look like"HEDA","Fred","Detroat","0598""SDRA","Steve","Jericho","Q23456""ADAS","Tim","Home","000892356"

i can not use a sub string to preload the zeros due to varing length and format the csv file has them correctly anybody have a solution on how to correct?
The issue is that the cell isn't formatted as text, that's a bug within OpenText.
You can use a query table instead and emulate OpenText. The benefit is that you can import the data in the current file.
Andreas.
Sub Test()
Dim FName As String
Dim Q As QueryTable
FName = "C:\Users\Killer\Documents\test.csv"
'Add a new sheet after the current sheet
Worksheets.Add After:=Sheets(ActiveSheet.Index)
'Add a query table
Set Q = ActiveSheet.QueryTables.Add( _
Connection:="TEXT;" & FName, Destination:=Range("$A$1"))
With Q
'Setup the importsettings
.TextFileCommaDelimiter = True
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileColumnDataTypes = Array(xlTextFormat, xlTextFormat, xlTextFormat, xlTextFormat)
'Import the data
.Refresh BackgroundQuery:=False
'Delete the query table (we don't need a permanent link to the file)
.Delete
End With
End Sub

Similar Messages

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • I need helping using iAds in my application.

    I need helping using iAds in my application. I currently am not using any storyboards. I am using Sprite builder for my UI.
    I attatched an image ot show all the different file name I have.
    Everyone is being used & they all work fully.
    The "iAdViewController.h & .m" files are just example codes I looked up and was messing with so that my iAd can work.

    I wouldn't even be able to use the Mathscript node in an executable? 
    What I am trying to do is make a user configurable data stream. 
    They tell me how many bytes are in the stream and what parameters they
    want to be put in to it.  Currently I have to make vi's that are
    called dynamicaly to make the parameters.   Then recompile
    the code and send it to them.  This is somewhat of how the config
    file is set up so I know how to make the data.
    Data_Type  foo
    Bytes 30
    parameter_name        
    function           
       byte#          format
    sync              
    foo_sync            
    29               int
    time                              
    foo_time             
    1,2,3,4       double
    If I can't use MathScript to allow the user to make there own functions
    is there another way that I might be able to do this so I do not have
    to recompile the code atleast?  Were I might just be able to make
    the new function and send that to them.
    Any Idea would be great.

  • Need help using TD1Hdl in C++

    So I've generated a .dll to use in VC++.  After almost 3 full days of searching forums and messing with my code I really need to get something done.  The variables I'm trying to use are declared as follows:
    typedef struct {
    long dimSize;
    LStrHandle elt[1];
    } TD1;
    typedef TD1 **TD1Hdl;
     The function I need to call is:
    void __cdecl getFileList(TD1Hdl *SpecResults);
    According to LabVIEW SpecResults is an output variable that I should be able to use.  It is an array of file names retrieved from a database.
    I've gotten my code to compile many different ways but no matter what I do I can't get to dimSize or elt.
    Here's the closest I've gotten:
    int main(int argc, char *argv[])
    TD1 *tdptr = new TD1;//(TD1 *)malloc(sizeof(long) + sizeof(LStrHandle));
    TD1Hdl tdhdl = &tdptr;
    SetupWO();
    getFileList(&tdhdl);
    return 0;
    SetupWO() starts the main vi.  getFileList() is the subvi that i want to get the array from.
    Debugging with watches shows nothing in tdptr->dimSize or tdptr->elt[0].
    Any help you can provide is greatly appreciated.  Thanks in advance.

    Hi Drew!
    First of all thanks for getting back to me.  After almost a full week of debugging this, I think I've finally found a way to access what I need to.  I've separated the code into classes now so it looks a little different but I'll post the important stuff below.
    class wrapper
    public:
    void run();
    private:
    void LStrToCStr(LStrHandle lstr, char *cStrBuff, long buffLen);
    TD1 tdptr;
    TD1Hdl tdhdl;
    void wrapper::run()
    tdhdl = NULL;
    SetupWO();
    getFileList(&tdhdl);
    tdptr.dimSize = (*tdhdl)->dimSize;
    for(int i = 0; i < tdptr.dimSize; i++)
    tdptr.elt[i] = (*tdhdl)->elt[i];
    char atpString[256];
    LStrToCStr(tdptr.elt[i], atpString, 256);
    printf(atpString);
    printf("\n");
    void wrapper::LStrToCStr(LStrHandle lstr, char* cStrBuff, long buffLen)
    int32 len = LHStrLen(lstr);
    if(len >= buffLen)
    len = buffLen - 1;
    memcpy(cStrBuff, LHStrBuf(lstr), len);
    cStrBuff[len] = 0;
    This seems to be working.  I figured it out probably half an hour before I went home on Friday so I haven't had a whole lot of time to mess around with it yet.  The only problem I'm having is that the list I want should have 6 elements in it, but I'm only getting the first 2 when I go through the for loop before it errors.  I'm sure this must be because the array was declared: LStrHandle elt[1];
    I'm thinking I need to use the NumericArrayResize() function?  I haven't looked into it much yet, but I plan on checking it out today.  However in the mean time if you can provide any more advice that would be great!
    Thanks again!

  • Re: Beginner needs help using a array of class objects, and quick

    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ? In html, I assume. How did you generate the html code of your three classes ? By help of your IDE ? NetBeans ? References ?
    I already posted my question with six source code classes ... in text mode --> Awful : See "Polymorphism did you say ?"
    Is there a way to discard and replace a post (with html source code) in the Sun forum ?
    Thanks for your help.
    Chavada

    chavada wrote:
    Dear Cynthiaw,
    I just read your Beginner needs help using a array of class objects, and quick of Dec 7, 2006 9:25 PM . I really like your nice example.You think she's still around almost a year later?
    I also want to put a question on the forum and display the source code of my classe in a pretty way as you did : with colors, indentation, ... But how ?Just use [code] and [/code] around it, or use the CODE button
    [code]
    public class Foo() {
      * This is the bar method
      public void bar() {
        // do stuff
    }[/code]

  • Need help using ELM tool

    Hi Guys,
    I need help with importing a external list in .csv format into CRM 4.0. I want these to be created as business partners within the system. I have created a mapping format called ztest for my import file. However I am unable to do the upload part.
    After creating the mapping, I went to Maintain address list. I have selected orgin & type as own data. In the process tab I have selected upload file, map data, business partner creation, target group creation. For start I select immidiately and save the file. I get a green light saying that address list was saved. But nothing happens. I went to transaction BP to check if the BP was created but they are not there. Am I missing any steps?

    Hi Ani,
    Once you specify the Format (along side the Map date), if the Mapping is proper, the light will be green. Are you getting a GREEN light?
    If everything is proper you will get green light on ALL 4 steps which you have selected. Even if BP is not created & no batch job created, you should get GREEN on Upload File & Map data.
    Once the Mapping is correct, BP still might not get created since you might not have entered some mandatory fields or the mapping is not proper to the BP transaction (this can be viwed by clicking the RED button)
    In your case, you are not getting any of these. That seems either you Mapping Format is wrong or there is somehting wrong in System (in which case, better go for an OSS). If you are not even getting a RED button, I cant help
    Hope this is of some help.
    -Liju
    (Mark the post if it helped)

  • Need help using dbms_scheduler to submit an immediate job on the database

    Hi. I need help using dbms_scheduler to submit an immediate job on the database. Essentially I want to issue a one-time call to an Oracle Stored Procedure - this procedure will then send an email. I've never used dbms_scheduler before, but here's what I have so far.
    So my Program is a stored database procedure named 'TTMS.dropperVacationConflict_Notify', but my problem is that I need to pass 3 parameter values to this job each time I run it. This is what I can't figure out. The procedure expects an 'Id' as number(5), begin_dt as a date, and end_dt as a date.
    How do I pass these values when I run my job? Can anyone help?
    begin
        dbms_scheduler.create_program(program_name=> 'PROG_DROPVACCONFLICTS_NOTIFY',
         program_type=> 'STORED_PROCEDURE',
         program_action=> 'TTMS.dropperVacationConflict_Notify',
         number_of_arguments => 3,
         enabled=>true,
         comments=> 'Procedure to notify PCM of a Dropper Vacation Conflict. Pass in Dropper Id, Begin_dt, and End_dt');
    end;
    begin
        dbms_scheduler.create_schedule
        (schedule_name=> 'INTERVAL_EVERY5_MINUTES',
         start_date=> trunc(sysdate)+18/24,
         repeat_interval => 'freq=MINUTELY;interval=5',
         end_date => null
         comments=> 'Runtime: Every day all 5 minutes, forever'
    end;
    begin
        dbms_scheduler.create_job
        (job_name => 'JOB_DROPVACCONFLICTS_NOTIFY',
         program_name => 'PROG_DROPVACCONFLICTS_NOTIFY',
         schedule_name => 'INTERVAL_EVERY5_MINUTES',
         enabled => true,
         auto_drop => true,
         comments => 'Job to notify PCM of Dropper Vacation Conflicts'
    end;
    /And I use this to execute the job as needed...
    begin
        dbms_scheduler.run_job('JOB_DROPVACCONFLICTS_NOTIFY',true);
    end;
    /

    Duplicate Post
    Need help using dbms_scheduler to submit an immediate job on the database

  • I need help because I can't read my redemption code on my iTunes giftcard and I can't wait 48 hours for a response via e-mail.

    I need help because I can't read my redemption code on my iTunes gitfcard and I can't wait 48 hours for a response via e-mail.

    How can i help you?

  • NEED HELP... Creating dynamic table from data file...

    Hi
    I'm writing an application for data visualization. The user can press the "open file" button and a FileChooser window will come up where the user can select any data file. I would like to take that data file and display it as a table with rows and columns. The user needs to be able to select the coliumns to create a graph. I have tried many ways to create a table, but nothing seems to work! Can anyone help me?! I just want to read from the data file and create a spreadsheet type table... I won't know how many rows and columns I'll need in advance, so the table needs to be dynamic!
    If you have ANY tips, I'd REALLY appreciated.....

    Thank you for your help. I tried to use some of the code in the examples... I'm really new at this, so I'm not sure how to set it up. I added the code, but when I open a file, nothing happens. Here's the code I have so far...
    package awt;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.text.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    * @author
    public class Main {
    public static void main(String[] args) {
    JFrame frame = new ScatterPlotApp();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.show();
    class ScatterPlotApp extends JFrame implements ActionListener{
    private JButton openButton, exitButton, scatButton, refreshButton;
    private JMenuBar menuBar;
    private JMenuItem openItem, exitItem;
    private JFileChooser chooser;
    private JMenu fileMenu;
    private JTextPane pane;
    private JTable table;
    private DefaultTableModel model;
    private JScrollPane scrollPane;
    private Container contentPane;
    /** Creates a new instance of ScatterPlotApp */
    public ScatterPlotApp() {
    setTitle("Data Visualizer");
    Toolkit tk = Toolkit.getDefaultToolkit();
    Dimension d = tk.getScreenSize();
    int width = 867;
    int height = 800;
    setBounds((d.width - width)/2, (d.height - height)/2, width, height);
    contentPane = getContentPane();
    JPanel panel = new JPanel();
    //pane = new JTextPane();
    panel.setLayout(new FlowLayout(FlowLayout.CENTER));
    contentPane.add(panel, BorderLayout.SOUTH);
    //contentPane.add(pane, BorderLayout.NORTH);
    scatButton = new JButton("Create ScatterPlot");
    scatButton.addActionListener(this);
    openButton= new JButton ("Open File");
    openButton.addActionListener(this);
    exitButton = new JButton ("Exit");
    exitButton.addActionListener(this);
    refreshButton = new JButton ("Reload Data");
    refreshButton.addActionListener(this);
    panel.add(openButton);
    panel.add(scatButton);
    panel.add(refreshButton);
    panel.add(exitButton);
    fileMenu = new JMenu("File");
    openItem = fileMenu.add(new JMenuItem ("Open", 'O'));
    openItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Event.CTRL_MASK));
    openItem.addActionListener(this);
    exitItem = fileMenu.add(new JMenuItem ("Exit", 'X'));
    exitItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, Event.CTRL_MASK));
    exitItem.addActionListener(this);
    JMenuBar menuBar = new JMenuBar();
    fileMenu.setMnemonic('F');
    menuBar.add(fileMenu);
    setJMenuBar(menuBar);
    public void actionPerformed(ActionEvent e){
    Vector columnNames = new Vector();
         Vector data = new Vector();
    try{
    Object source = e.getSource();
    if (source == openButton || e.getActionCommand().equals("Open")){
    chooser = new JFileChooser(".");
    int status =chooser.showOpenDialog(this);
    if (status ==JFileChooser.APPROVE_OPTION)
    File file = chooser.getSelectedFile();
    FileInputStream fin = new FileInputStream(file);
    BufferedReader br = new BufferedReader(new InputStreamReader(fin));
    String line;
    //StringBuffer bf = new StringBuffer();
    StringTokenizer st1 = new StringTokenizer(br.readLine(), ";");
                   while( st1.hasMoreTokens() )
                        columnNames.addElement(st1.nextToken());
                   // extract data
                   while ((line = br.readLine()) != null)
                        StringTokenizer st2 = new StringTokenizer(line, ";");
                        Vector row = new Vector();
                        while(st2.hasMoreTokens())
                             row.addElement(st2.nextToken());
                        data.addElement( row );
                   br.close();
    model = new DefaultTableModel(data, columnNames);
              table = new JTable(model);
    scrollPane = new JScrollPane( table );
    getContentPane().add( scrollPane, BorderLayout.NORTH );
    while((line=br.readLine())!=null)
    bf.append(line+"\n");
    pane.setText(bf.toString());
    //pane.setText(bf.toString());
    else if (source == scatButton){
    else if (source == exitButton || e.getActionCommand().equals("Exit")){
    System.exit(0);
    else if (source == refreshButton){
    catch (Exception ex){
    ex.printStackTrace();
    }

  • Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe acco

    Hey, How do I populate my replace colors color library in illustrator? I tried to replace color on a traced/ vectorized image and when I selected and went to the color library CC said I need to use a valid username. I was already logged into my adobe account.

    Can you please show a screenshot of what exactly you want to replace where?

  • Need help on how to handle zip & text/csv as a resposne payload from Concur RestWebservice

    Hi All,
    We are getting zip(if there are multiple files) and test/csv(single file) as a response payload from the concur rest API and need your help on how to handle in NWBPM and SAP PO.
    Zip response coming in response looks like below -
    PKÀ˜F7extract_attendee_detail_p0600908soav_20150424022159.txts� rt©1204Õ50Ñ52©1¨áåPKzà@ÆPKÀ˜F2extract_CES_SAE_v3_p0600908soav_20150424022148.txts� rt©1204Õ50Ñ52©1¨©1ãåPKå늟PKÀ˜Fzà
    Text/csv response looks like below -
    Extract|2015-24-40|20|0
    Need you help on how to handle the zip content response.
    Also need help on how to handle when text/csv response comes and when zip response comes.
    As per the scenario, there are 4 calls to be made and we are using NWBPM and in the last call the actual respons (text/csv or zip) will come.
    Please provide your inputs.
    Thanks
    Narayanareddy B

    Hi Aaron,
    Thanks for your reply.
    I tried with Payload zip bean and the java mapping as mentioned in the response mapping of OM.
    Payload zip bean - Zip  zip.mode  unzip
    I am getting the error below in the receiver rest channel -
    "Transmitting the message using connection JPR failed, due to: com.sap.aii.af.lib.mp.module.ModuleException: Zip: error occured during processing: java.util.zip.ZipException: invalid stored block lengths"
    Java Mapping - used the java mapping in the response of Operation mapping
    Here also i am seeing the same error in the channel log as it is synchronous step and the message got cancelled.
    "Transmitting the message using connection JPR failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeApplication mapping program com/equalize/xpi/esr/mapping/java/UnzipAndAttach throws a stream transformation exception: Exception: invalid stored block lengths"
    The below is the response i am seeing and is it proper zip response payload(any encryption) , kindly advise.
    PKâE�F:ws_extract_attendee_detail_p0600908soav_20150424083413.txts� rt©1204Õ50Ñ52©1¨áåPKzà@ÆPKâE�F5ws_extract_CES_SAE_v3_p0600908soav_20150424084014.txtíTß��@~oÒÿ�÷Fº»ìV}ëòCÏz Qljß8ÜöL�`N�ùão8�Ò«�´M�Ü@�awvçûfgÇùâϤå#Ttï0Ø�B�²·olÇ�£[4Ï](L�]«�ÑbÀôÁÒc�0ÀÏdAªÙТ¨Ìû�Êv¡�b¤eJA%��=Þ7Í>PÚ=í2��7ò[�¼¡=q/°¶�*ø)
    K|<`BgÉÔºÜWs[§J�&Ñ:Ìá:´�ç«�RÐv�ÚÅAD'\�ÁtR²*DP3gî:B@JëhU�Ò'¬�ùQ\�È\D{·O×±JS\ï�-ò�¸�Þ²êó�{Å¡2®â,MmÉù XAzßüBn&®Sl-§�l¶A�×ú½³ÙFI®0¿©Ú¯¤�oT�iV²RÀJ��¼«`õ»�í Ûéwa#�àpY�««óq)U°JaøÁA�ûì>Ù³üHåÒe¾�7��Ð/§£u°Nzã÷ç4×·èãþ�¾}õ0ÙµYÄ�+J��eX\�E±ïsR%®yÜÕðsªáÚ$qÚÎÇ�Û$^%1¸AF*ý¶VÑêxÏZÏ¢U½T~Ñ®ØkW5ç×®õ¿w5¬zò:oN»�ô���íø÷úÛÙ=¬å�[ôÚ�þmczPKhÏ��i PKâE�Fzà@Æ:ws_extract_attendee_detail_p0600908soav_20150424083413.txtPKâE�FhÏ��i 5�ws_extract_CES_SAE_v3_p0600908soav_20150424084014.txtPKËö
    Thanks
    Narayanareddy B

  • Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.

    also say explorer not reading SWF files and I have to reload them? Not sure what that is either,
    Thanks
    Jim

    Hi Nancy
    Trying to update my site got to make some changes.  Do you work on sites via remote? I am on Cloud.
    : Nancy O. 
    Sent: Monday, September 01, 2014 3:47 PM
    To: James Neidner
    Subject:  Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    created by Nancy O. <https://forums.adobe.com/people/Nancy+O.>  in Dreamweaver support forum - View the full discussion <https://forums.adobe.com/message/6692200#6692200>

  • I have a windows 7 system and use Adobe Reader XI, 11.0.05  All my excel spreadsheet files have conv

    I have a windows 7 system and use Adobe Reader XI, 11.0.05  All my excel spreadsheet files have converted to Adobe files and I cannot access my excel spreadsheets.  I uninstalled Adobe and reinstalled the version all over, and I also downloaded a security patch, however, I am still having the same problem.  Does anyone know what is causing this to happen and what I might be able to do to fix this ?  Thank you

    I don't understand; did you really convert all your Excel docs to PDF (how?), or did you merely lose/change the file association?
    If the latter, that's really easy: http://windows.microsoft.com/is-is/windows7/change-the-program-that-opens-a-type-of-file

  • How to read a whole text file into a pl/sql variable?

    Hi, I need to read an entire text file--which actually contains an email message extracted from a content management system-- into a variable in a pl/sql package, so I can insert some information from the database and then send the email. I want to read the whole text file in one shot, not just one line at a time. Shoud I use Utl_File.Get_Raw or is there another more appropriate way to do this?

    how to read a whole text file into a pl/sql variable?
    your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
    ....

  • Can we combine multiple excel files into one excel file using SSIS?

    I have a bunch of excel files in a specified folder. I wanted to combine all the excel files into one excel file by adding additional tabs in one excel file. Can I do this using SSIS?
             OR
    I know using macro we can combine multiple excel files. Can we run a excel macro in SSIS? Please help me.
    Actually the complete package is this:
    Step1: Using FTP task I'm downloading the bunch of excel files into a folder.
    Step2: Above implementation is the second step that I have to do.  

    You can do it in two steps
    1. First get all data from excel sheets to a sql staging table. For that you need to use a looping logic as explained in below link (you dont required the additional logic used for checking file name etc in below example as you need all files). Also make
    source as excel instead of flat file
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    2. Once you get the data onto a single table, use below to get it exported to multiple sheets within same excel destination file
    http://visakhm.blogspot.in/2013/09/exporting-sqlserver-data-to-multiple.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • How do I remove files from my HD if MacBook Pro is not starting up?

    My MacBook Pro has a solid state aftermarket hard drive that is completely full and is now causing start up problems. When I turn my laptop on the login screen comes up and I can enter my password and login as usual. However after login just a grey s

  • Why does my idletime/display so short

    Why is it if my laptop is idle for a short time i have to log back in to windows

  • Curve 9300

    Hi,i wonder if somebody can help me? My app memory keep on dropping by allmost 20 megabites,then i reboot and i,ve got some memory to use but within a couple of ours it drop again! I,ve deleted some apps but not even that does not solve the problem.

  • On Leopard after running software update computer freezes during restart

    Hi All, I hope I am posting this in the right place. I have installed Leopard (brand new installation with formating the HD before install). It went lovely. Migrate all of my accounts and settings form my other HD. BTW that other HD was upgraded to L

  • Deep Sleep issue after SSD upgrade

    I recently upgraded my Macbook Pro mid-2012 13" Intel Core i5 laptop to a SSD. I purchased a OWC Mercury Electra 6G model for this machine. Everything seems to run fine except when I leave my notebook with the lid closed to induce sleep mode and its