Unhandled SOAP Exception When Reading from an External List created from SQL Server

This is absolutely doing my head it.  Doesn't matter what I do, which approach I take or how its done, I gt the same crappy error from Sharepoint Designer 2010.
Pulling Data from SQL Server 2008 using An external List.  All I want to do is read the data and display in on the Sharepoint Site..  Nothing fancy, just read.
Created a Limit filter to limit 100 records per time, removed any primary keys, get no warnings or Errors upon creating the External List or View.  
But when I add it to the view or data source in page designer, I get the unhandled exception error we all know and love :-(...  
Anybody shed any light on this before I make a dell 2900 Server sized hole in my window?
Sharepoint Foundation 2010
Sharepoint Designer 2010
SQL Server 2008
Ta

Hi,
If want to change the WCF client (BCS in this case) timeout, you need to change the registry on the SharePoint server.
The keys are located under:
HKEY_CURRENT_USER\Software\Policies\Microsoft\office\15.0\Common\Business Data.
Moreinformation:
http://blogs.technet.com/b/meamcs/archive/2010/12/23/configuring-wcf-connection-timeout-for-bcs.aspx
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • How do you transfer info from an external hard drive from a PC to a Mac

    How do you transfer info from a external hard drive from a pc to a imac?

    Expanding on what Niel said, a Mac can mount and read just about any hard drive from a Windows system. It can't write to an NTFS-formatted drive without third-party drivers, but it can read them. So as Niel indicated, you should be able to just connect the drive to your Mac and drag-copy over whatever you want. If you want to save things from the Mac to that drive, then it will need to be formatted either as FAT32 or exFAT, or if it's NFTS you'll again need drivers.
    Regards.

  • Captivate 5 Crashes (Unhandled win32 Exception) when Generating Loquendo TTS

    I consistently get “An unhandled win32 exception occurred in AdobdCaptivate.exe” when Generating a TTS with Loquendo and my VS2010 JIT kick in to “help”.  No dump, nothing in the log.
    I have a 1 slide test project trying the quality to the TTS engines.  The MS and NeoSpeech allow me to generate an audio file, but using the Loquendo voice (any of them), I get a “Test-to-speech Progress” dialog, followed by the exception and Captivate closes.  I installed both the NeoSpeech and Loquendo from the Adobe site, along with the Captivate trial.
    Any ideas where to start debugging this?

    Resolved! 
    This problem has been resolved and I want to thank for posters for pointing me in several directions to look.  As some of you suspect, the problem had nothing to do with Captivate 5 or Loquendo, except some bad behavior by not handling an Exception.
    The root cause was several .Net Framework 4.0 BETA DLLs hanging around.  This particular machine had several incarnations of .Net Framework installed, uninstalled and reinstalled.  Digging deep into the registry, I find some beta code still getting loaded into GAC.  My solution was to trash this users’ PC and reinstall a fresh copy of the OS (it’s a sandbox machine anyway).
    After installing a clean copy of the OS, all the maintenance and upgrades, including .Net Framework 3.5 SP1, Captivate 5 (and friends) worked properly.
    Again, thanks for the support.
    Regards,
    Jon

  • JavaMail Gmail Exception when reading mails

    I am using JavaMail for reading messages in a gmail account.
    My general problem is validationException. My code is the following.
    public class MessagesReader {
         public static String usage = "Usage: java gmailTest user password subject";
         public static void main(String[] args) {
              String username = "username";
              String password = "password";
              Properties pop3Props = new Properties();
              Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
              pop3Props.setProperty("mail.pop3.user", username);
              pop3Props.setProperty("mail.pop3.passwd", password);
              pop3Props.setProperty("mail.pop3.ssl", "true");
              pop3Props.setProperty("mail.pop3.host", "pop.gmail.com");
              try {
                   checkForMessage(pop3Props, null);
              } catch (Exception e) {
                   e.printStackTrace();
         public static void checkForMessage(Properties props, String msgSubject)
                   throws NoSuchProviderException, MessagingException {
              Session session = null;
              Store store = null;
              String user = ((props.getProperty("mail.pop3.user") != null) ? props
                        .getProperty("mail.pop3.user") : props.getProperty("mail.user"));
              String passwd = ((props.getProperty("mail.pop3.passwd") != null) ? props
                        .getProperty("mail.pop3.passwd")
                        : props.getProperty("mail.passwd"));
              String host = ((props.getProperty("mail.pop3.host") != null) ? props
                        .getProperty("mail.pop3.host") : props.getProperty("mail.host"));
              if ((props.getProperty("mail.pop3.ssl") != null)
                        && (props.getProperty("mail.pop3.ssl").equalsIgnoreCase("true"))) {
                   String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory";
                   //Replace socket factory
                   props.setProperty("mail.pop3.socketFactory.class", SSL_FACTORY);
                   // configure the appropriate properties so JavaMail doesn't
                   // fall back to an unsecure connection when a secure one fails:
                   props.setProperty("mail.pop3.socketFactory.fallback", "false");
                   String portStr = ((props.getProperty("mail.pop3.port") != null) ? props
                             .getProperty("mail.pop3.port")
                             : "995");
                   //change the default port number to the corresponding port that your protocol's secure version uses;
                   //otherwise, you must use a fully qualified address (that includes a port number) in the URL passed
                   //to JavaMail (for example, imap://id:[email protected]:993/folder/), or else you get an
                   //"unrecognized SSL handshake" exception. You specify these properties like so:
                   props.setProperty("mail.pop3.port", portStr);
                   props.setProperty("mail.pop3.socketFactory.port", portStr);
                   URLName url = new URLName("pop3://" + user + ":" + passwd + "@"
                             + host + ":" + portStr);
                   session = Session.getInstance(props, null);
                   store = new POP3SSLStore(session, url);
                   //Unfortunately, you may realize that the code above throws an SSLException "untrusted server cert chain"
                   //if the mail server certificate is not installed locally. In that case, you should obtain a correct,
                   //valid certificate for the server and use the keytool utility to add it to a local key storage at
                   //<javahome>\jre\lib\security\cacerts.
              } else {
                   session = Session.getInstance(props, null);
                   store = session.getStore("pop3");
              session.setDebug(true);
              store.connect(host, user, passwd);
              Folder folder = store.getFolder("INBOX");
              folder.open(Folder.READ_WRITE);
              Message[] allMsgs = folder.getMessages();
              for (int i = 0; i < allMsgs.length; i++) {
                   System.out.println(allMsgs.getSubject());
              folder.close(true);
              store.close();
    When I execute the above code I get the following exception:
    [java] DEBUG: setDebug: JavaMail version 1.4ea
         [java] DEBUG POP3: connecting to host "pop.gmail.com", port 995, isSSL true
         [java] javax.mail.MessagingException: Connect failed;
         [java] nested exception is:
         [java] javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
         [java] at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
         [java] at javax.mail.Service.connect(Service.java:275)
         [java] at javax.mail.Service.connect(Service.java:156)
         [java] at javamail.MessagesReader.checkForMessage(Unknown Source)
         [java] at javamail.MessagesReader.main(Unknown Source)
         [java] Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
         [java] at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
         [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
         [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
         [java] at java.io.DataInputStream.readLine(DataInputStream.java:562)
         [java] at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:347)
         [java] at com.sun.mail.pop3.Protocol.<init>(Protocol.java:91)
         [java] at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
         [java] at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
         [java] ... 4 more
         [java] Caused by: sun.security.validator.ValidatorException: No trusted certificate found
         [java] at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:304)
         [java] at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:107)
         [java] at sun.security.validator.Validator.validate(Validator.java:202)
         [java] at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(DashoA6275)
         [java] at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(DashoA6275)From all the relative posts I have understood that the problem is associated with an SSL certificate. I have the gmail certificate. Taken from the padlock of the gmail browser page and so I have a gmail.cer.
    I know that I have to use a keytool to do something that I have not understand.
    Can you please give me some instructions?
    Or the forementioned exception has any other solution??
    Thanking you in advance

    Ok here.. im using this code to read from gmail too....
    * MailSender.java
    * Created on 14 November 2006, 17:07
    * This class is used to send mails to other users
    package jmailer;
    * @author Abubakar Gurnah
    import java.sql.SQLException;
    import java.util.*;
    import java.io.*;
    import java.sql.ResultSet;
    import java.text.DateFormatSymbols;
    import java.text.SimpleDateFormat;
    import javax.mail.*;
    import javax.mail.event.*;
    import javax.mail.internet.InternetAddress;
    /* Monitors given mailbox for new mail */
    class MessageRead implements Runnable{
        private String status;
        private String uname;
        private boolean serverStatus=true;
        private String serverConn;
        private int freq;
        private String account;
        private DbConn db;
        private ResultSet rsA;
        private Properties props;
        private Session session;
        private Store store;
        private Folder folder;
         * @param account get the thread account name
         * @param uname logged in user name
         * @param mailServer pop3 mail server
         * @param mailuname pop3 account username e.g [email protected]
         * @param mailPwd pop3 account password
         * @param port pop3 access port
         * @param SSL pop3 support encryption?
         * @param freq the frequency that the server will check for a new message
        public MessageRead(String account,String uname,String mailServer,String mailuname,
                String mailPwd,String port,String SSL,int freq){
            this.uname=uname;
            this.freq=freq;
            this.account=account;
            db=new DbConn();
            rsA=db.executeQuery("SELECT * " +
                    "FROM Accounts " +
                    "WHERE AccountName='" + uname + "'");
            connectToServer(uname,mailServer,mailuname,
                    mailPwd,port,SSL);
         * @param b set the thread on/off
        public void setStatus(boolean b){
            serverStatus=b;
         * @return if the server is on/off
        public boolean getStatus(){
            return serverStatus;
         * @param uname logged in user name
         * @param mailServer pop3 mail server
         * @param mailuname pop3 account username e.g [email protected]
         * @param mailPwd pop3 account password
         * @param port pop3 access port
         * @param SSL pop3 support encryption?
        public void connectToServer(String uname,String mailServer,String mailuname,
                String mailPwd,String port,String SSL){
            serverConn=mailServer+":"+mailuname;
            try {
                if(SSL.equalsIgnoreCase("true")){
                    Properties props = System.getProperties();
                    props.setProperty( "mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
                    props.setProperty( "mail.pop3.socketFactory.fallback", "false");
                    props.setProperty("mail.pop3.port", port);
                    props.setProperty("mail.pop3.socketFactory.port", port);
                    Session session = Session.getInstance(props);
                    store = session.getStore("pop3");
                }else{
                    props=new Properties();
                    props = System.getProperties();
                    // Get a Session object
                    session = Session.getInstance(props, null);
                    store = session.getStore("imap");
                // session.setDebug(true);
                // Get a Store object
                // Connect
                store.connect(mailServer, mailuname, mailPwd);
                // Open a Folder
                folder = store.getFolder("INBOX");
                System.out.println("Opening the inbox folder for " + mailServer);
                if (folder == null || !folder.exists()) {
                    //Tray.showBallon("Warning","Invalid folder Name:"+folder.getName(),Tray.WARNING);
                    System.exit(1);
                folder.open(Folder.READ_WRITE);
                // Add messageCountListener to listen for new messages
                folder.addMessageCountListener(new MessageCountAdapter() {
                    public void messagesAdded(MessageCountEvent ev) {
                        System.out.println("new mail " + serverConn);
                        readMail(ev);
                // Check mail once in "freq" MILLIseconds
            } catch (Exception ex) {
                ex.printStackTrace();
         * Listen for incoming messages
        public void run(){
            try {
                while(serverStatus){
                    // sleep for freq milliseconds
                    // This is to force the IMAP server to send us
                    // EXISTS notifications.
                    System.out.println("Reading for change for " + serverConn);
                    folder.getMessageCount();
                    Thread.sleep(freq);
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            } catch (MessagingException ex) {
                ex.printStackTrace();
         * This method is triggered upon receival of the message
         * @param ev Message Object event
        public void readMail(MessageCountEvent ev){
            Message[] msgs = ev.getMessages();
            String from="";
            String subject="";
            String body="";
            status="New Mail";
            // Message retrival part
            for (int i = 0; i < msgs.length; i++) { // for each new entry
                try {
                    from=((InternetAddress)msgs.getFrom()[0]).getPersonal(); //get From whom the came from
    if (from==null)
    from=((InternetAddress)msgs[i].getFrom()[0]).getAddress();
    subject=msgs[i].getSubject(); //get the subject of the message
    //check message if it contain other parts, such as attachment
    Part messagePart = msgs[i];
    Object content=messagePart.getContent();
    if (content instanceof Multipart){
    messagePart=((Multipart)content).getBodyPart(0);
    // -- Get the content type --
    String contentType=messagePart.getContentType();
    //this the mail is plain mail.. or contain some html
    if (contentType.startsWith("text/plain")|| contentType.startsWith("text/html")){
    //get the mail
    BufferedReader reader=new BufferedReader(new InputStreamReader(messagePart.getInputStream()));
    //start reading line after line
    String b=reader.readLine();
    while (b!=null){
    b=reader.readLine();
    body+=b + "\n";
    writingLogs(from + ":" + ((InternetAddress)msgs[i].getFrom()[0]).getAddress(),subject,body);
    checkMsg(((InternetAddress)msgs[i].getFrom()[0]).getAddress(),subject,body);
    msgs[i].setFlag(Flags.Flag.DELETED, true); //delete the messages
    reader.close();
    } catch (IOException ioex) {
    ioex.printStackTrace();
    } catch (MessagingException mex) {
    mex.printStackTrace();
    * This method is used to write the mail to the log, so as to keep track
    * of all the incoming messages...
    * @param strFrom from where the mail is originated
    * @param strSubject the subject of the message
    * @param strBody the body of the message
    public void writingLogs(String strFrom,String strSubject,String strBody ){
    Date today = new Date();
    DateFormatSymbols symbols;
    SimpleDateFormat formatter;
    symbols = new DateFormatSymbols(new Locale("en","US"));
    formatter = new SimpleDateFormat("yyyyMMddHHmmss", symbols);
    String result = formatter.format(today);
    BufferedWriter bw;
    try {
    String path=new File(".").getCanonicalPath();
    bw = new BufferedWriter(new FileWriter(path+"\\logs\\"+result + ".txt"));
    bw.write("From..." + strFrom +"\n");
    bw.write("---------------------------------------------------------\n");
    bw.write("Subject..."+strSubject+"\n");
    bw.write("---------------------------------------------------------\n");
    bw.write("Body..."+strBody+"\n");
    bw.flush();
    bw.close();
    } catch (IOException ex) {
    ex.printStackTrace();
    public void checkMsg(String from,String subject,String body){
    String msg="";
    ResultSet rsP=db.executeQuery("SELECT * " +
    "FROM priority " +
    "WHERE uname='" + uname + "'");
    try {
    boolean fReading=true;
    int i=1;
    rsP.first();
    while(fReading){
    int p=checkPriority(rsP.getString("Priority"+(i++)));
    if(i>3) {fReading=false;break;}
    switch(p){
    case 1:
    msg=readFrom(from,body);break;
    case 2:
    msg=readSubject(from,subject,body);break;
    case 3:
    msg=readBody(from,body);break;
    case -1:
    fReading=false;break;
    } catch (SQLException ex) {
    ex.printStackTrace();
    public int checkPriority(String p){
    if (p.equalsIgnoreCase("From")){
    return 1;
    }else if(p.equalsIgnoreCase("Subject")){
    return 2;
    }else if(p.equalsIgnoreCase("Body")){
    return 3;
    return -1;
    private String readBody(String from, String body) {
    return null;
    private String readSubject(String from, String subject, String body) {
    return null;
    private String readFrom(String from, String body) {
    boolean Matched=false;
    String s=from.substring(0,from.indexOf("@"));
    ResultSet rsR=db.executeQuery("SELECT * " +
    "FROM Rules " +
    "WHERE [if]='from' and uname='" + uname + "'");
    try {
    rsR.first();
    do{
    Matched=checkPattern(from,rsR.getString("Contains"));
    if(Matched){
    break;
    }while(rsR.next());
    MailSender m=new MailSender();
    m.send(rsA.getString("smtpmailuname"),
    rsA.getString("smtpmailuname"),
    rsA.getString("smtpserver"),
    rsA.getString("smtpport"),
    rsA.getString("smtpmailuname"),
    rsR.getString("phoneNo"),
    "Server Message",
    body
    } catch (SQLException ex) {
    ex.printStackTrace();
    return null;
    public boolean checkPattern(String original, String contains){
    if(contains.indexOf(original)>0){
    return true;
    return false;
    Let me explain... just consider connectToServer
    there is SSL.equalsIgnoreCase("true") which is google.. this is what you want in this if statement... it configure the properties of google... try it..

  • Why i'm getting out of memory exception when trying to comparing two Lists ?

    First this is a paint event.
    In the paint event i draw a rectangle and then adding the pixels coordinates inside the rectangle area to a List:
    private void pictureBox1_Paint(object sender, PaintEventArgs e)
    if (cloudPoints != null)
    if (DrawIt)
    e.Graphics.DrawRectangle(pen, rect);
    pointsAffected = cloudPoints.Where(pt => rect.Contains(pt));
    CloudEnteringAlert.pointtocolorinrectangle = pointsAffected.ToList();//cloudPoints;
    Bitmap bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height, PixelFormat.Format32bppArgb);
    CloudEnteringAlert.Paint(e.Graphics, 1, 200, bmp);
    I'm drawing a rectangle thats the rect(Rectangle) variable and assigning to pointsAffected List only the pixels coordinates that are inside the rect area ! cloudPoints contain all the pixels coordinates all over the image !!! but pointsAffected contain only
    the coordinates of pixels inside the rectangle area.
    Then the mouse up event:
    private void pictureBox1_MouseUp(object sender, MouseEventArgs e)
    StreamWriter w = new StreamWriter(@"c:\diff\diff.txt");
    pixelscoordinatesinrectangle = new List<Point>();
    pixelscoordinatesinrectangle = pointsAffected.ToList();
    DrawIt = false;
    for (int i = 0; i < trackBar1FileInfo.Length; i++)
    DrawIt = true;
    trackBar1.Value = i;
    LoadPictureAt(trackBar1.Value, sender);
    pictureBox1.Load(trackBar1FileInfo[i].FullName);
    ConvertedBmp = ConvertTo24(trackBar1FileInfo[trackBar1.Value].FullName);
    ConvertedBmp.Save(ConvertedBmpDir + "\\ConvertedBmp.bmp");
    mymem = ToStream(ConvertedBmp, ImageFormat.Bmp);
    backTexture = TextureLoader.FromStream(D3Ddev, mymem);
    scannedCloudsTexture = new Texture(D3Ddev, 512, 512, 1, Usage.Dynamic, Format.A8R8G8B8, Pool.Default);
    Button1Code();
    pictureBox1.Refresh();
    newpixelscoordinates = new List<Point>();
    newpixelscoordinates = pointsAffected.ToList();
    if (pixelscoordinatesinrectangle != null && newpixelscoordinates != null)
    IEnumerable<Point> differenceQuery =
    pixelscoordinatesinrectangle.Except(newpixelscoordinates);
    // Execute the query.
    foreach (Point s in differenceQuery)
    w.WriteLine("The following points are not the same" + s);
    else
    am1 = pixelscoordinatesinrectangle.Count;
    am2 = newpixelscoordinates.Count;
    //MessageBox.Show(pixelscoordinatesinrectangle.Count.ToString());
    w.Close();
    Once i draw the rectangle when finish drawing it i'm creating a new List instance and store the pixels in the rectangle area in the pixelscoordinatesinrectangle List.
    Then i loop over trackBar1FileInfo that contains for example 5000 images files names from the hard disk.
    This is the problem part:
    pictureBox1.Refresh();
    newpixelscoordinates = new List<Point>();
    newpixelscoordinates = pointsAffected.ToList();
    if (pixelscoordinatesinrectangle != null && newpixelscoordinates != null)
    IEnumerable<Point> differenceQuery =
    pixelscoordinatesinrectangle.Except(newpixelscoordinates);
    // Execute the query.
    foreach (Point s in differenceQuery)
    w.WriteLine("The following points are not the same" + s);
    else
    am1 = pixelscoordinatesinrectangle.Count;
    am2 = newpixelscoordinates.Count;
    I'm doing refresh for the pictureBox1 so it will go one each image to the paint event and will create a new List pointsAffected will have each time a different pixels coordinates.
    So newpixelscoordinates should be with new pixels coordinates each loop itertion.
    Then i'm comparing both Lists newpixelscoordinates and pixelscoordinatesinrectangle for a different items.
    And write those who are not the same to a text file.
    So i'm getting a very large text file with many pixels coordinates that are not the same in both Lists.
    The problems are:
    1. Does the comparison i'm doing is right ? I want to compare one list index against other listi ndex.
       For example in the List newpixelscoordinates in index 0 if i have x = 233 y = 23 and in the List pixelscoordinatesinrectangle in index 0 there is x = 1 y = 100 then write this as not the same to the text file.
      What i want to do is to check the whole List items against the other List items and if some of the items are not the same write this items to the text file.
    Next itertion new image new Lists with new pixels coordinates do the same comparison.
    The List pixelscoordinatesinrectangle is not changing it's storing the first pixels coordinates when i drawed the rectangle first time. Only the List newpixelscoordinates change each time, Should change each itertion.
    2. The exception i'm getting is on the line:
    newpixelscoordinates = new List<Point>();
    I added this line since i thought maybe i didn't clear it each time but it didn't help.
    Before adding this line the exception was on the line:
    newpixelscoordinates = pointsAffected.ToList();
    The exception is: OutOfMemoryException: Out of memory
    System.OutOfMemoryException was unhandled
    HResult=-2147024882
    Message=Out of memory.
    Source=System.Drawing
    StackTrace:
    at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
    at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
    at System.Drawing.Graphics.DrawImage(Image image, Rectangle rect)
    at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    InnerException:

    Hi Chocolade1972,
    >> Does the comparison i'm doing is right ? I want to compare one list index against other listi ndex.
    I think you could use “Object.Equals” and the link below might be useful to you:
    # Object.Equals Method (Object)
    https://msdn.microsoft.com/en-us/library/bsc2ak47(v=vs.110).aspx
    >> OutOfMemoryException: Out of memory
    This error is very common, and when there is not enough memory to continue the execution of a program, it would be thrown.
    It would be helpful if you could provide us a simple code to reproduce your issue.
    Best Regards,
    Edward
    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.
    Click HERE to participate the survey.

  • Flash CC Air iOS: Problems with loading text from an external xml located on a server.

    So I have this code allowing me to load text from an xml located on a server. Everything works fine on the Air for Android. The app even works in the ios emulator, but once I export my app to my ios device with ios 7, I don't see any text. The app is developed with Air sdk 3.9. What could be the reason? Do I need any special permissions like on Android? Does ios even allow to load xml from an external server?
    Any clues?

    It was my bad. I linked to a php file to avoid any connection lags, which was absolutely fine on the android, but didn't seem to work on the ios 7. So all I did is change the php extension to xml and it worked without any problems.

  • How can I read file from filepath and Insert in to SQL Server ?

    Hi,
    I have table called "table1" and has data like this ..
    id
    Folder
    FileName
    1
       f:\cfs\O\
    ENDTINS5090.tif

    D:\Grant\
    CLMDOC.doc
    3
     f:\cfs\Team\
    CORRES_3526.msg
    4
      f:\cfs\S\
    OTH_001.PDF
    I have another table called "table2" with content column is image datatype.
    Id
    FileName
    Content
    1
    FileName
    2
    ENDTINS5090.tif
    3
    CLMDOC.doc
    4
    CORRES_3526.msg
    5
    OTH_001.PDF
    I would like to insert in to content column in the table2 by reading the file from filepath( table1).
    Is there any simple way or SSIS  able to do it ?
    Please help me on this.
    Thank you.

    http://dimantdatabasesolutions.blogspot.co.il/2009/05/how-to-uploadmodify-more-than-one-blob.html
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to connect to External Database, if say SQL server, from Adobe LC

    Hi everyone,
    I have one application, which needs to save and load data from/to an external database,SQL server.I have no idea on how to implement this.But with my knowledge I managed to create DSs and using new data connection wizard, some how I managed to list the fields in the Data View.BUT i still worrying about the way i did is rigt or wrong?.. how can i save and load data to sql server from Adobe LC..Please help me
    Thanks,
    Vinod

    You created the data source on the app server which is the first step. Now you can use the JDBC service to query the database:
    http://livedocs.adobe.com/livecycle/8.2/wb_help/000632.html
    scott

  • BO Data Services - Reading from excel file and writing to SQL Server Table

    Hi,
    I would like to read data from an excel file and write it to a SQL Server Data base table without making any transformations using Data Services. I have created an excel file format as source and created target table in SQL Server. The data flow will just have source and target. I am not sure how to map the columns between source and target. Appreciate your quick help in providing a detailed steps of mapping.
    Regards,
    Ramesh

    Ramesh,
    were you able to get this to work? if not, let me know and I can help you out with it.
    Lynne

  • SQL Server Error when tryingt to install the CMS DB on SQL Server 2005 x64

    I am trying to install BOEXI R3 on w2k3 64-bit OS in a SQL Server 2005 x64 database, I am currently at the installation step where i Specify an exisiting CMS database. I created a System DSN and tested it, and it was successful. So when I got to the screen where I select my datasource I had to check use trusted connection because the datasource would not show up when Use DSN created by WOW64 option was checked. From there I could select the database I created. Oh yeah, I also made the application server local system account part of my DB admins group so it has full access to the database yet when I click next to connect I get a CMS Database Error: STU000226. here is what I have in my log:
    ThreadID     Message
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: findDFA_LLR:  (CmdLineDir) C:Documents and SettingsgsdadminDesktopBOEXI and BSM AnalyticsBOEXI R3 Full Version from SAPpackagedbcheck
    sqlrule.llr
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: Loading: database subsystem only
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: loading libary succeeded
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: DatabaseSubsystem::Init()
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.wireobinit.cpp:96): trace message: Creating the shared CWireObject::PropertyNameMap
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.wireobinit.cpp:118): trace message: Setting static property map
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.wireobinit.cpp:125): trace message: CWireObject::InitializeStaticPropertyMap() - reference count: 1
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: initializing subsystem succeeded
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: Loading: done loading subsystem - database subsystem only
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: DatabaseSubsystem::Connect()
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.DBConnectionManager.cpp:802): trace message: DBConnectionManager - Setting total target number of connections for pool 0 to 1.
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.SQLServerDatabase.cpp:119): trace message: SQLServer error found:  ErrorMessage( (Microsoft)[ODBC Driver Manager] Data source name not found and no default driver specified), ErrorCode(0)
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.dbutils.cpp:820): trace message: Caught DatabaseSubystem Error: BusinessObjects Enterprise CMS: Unable to connect to the CMS system database "BOEXI_CMS". Reason:  (Microsoft)[ODBC Driver Manager] Data source name not found and no default driver specified
    (Thu Apr 23 20:57:46 2009)     3024     3028     trace message: DatabaseSubsystem::Shutdown()
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.wireobinit.cpp:175): trace message: CWireObject::TerminateStaticPropertyMap() - reference count: 1
    (Thu Apr 23 20:57:46 2009)     3024     3028     (.wireobinit.cpp:182): trace message: Releasing
    static property map
    How do I get past this?

    The workaround was, I installed the SQL Server Client tools and created a System DataSource  and then had to create a user DataSource  (it is a quirk in the installer I guess) to get past this point in the installation. Now I have an even bigger problem. Everything but the CMS installed and the installer hung at the "Configuring the CMS" part. The installation finished but when I tried to log into the Central managment console I got this error:
    Error: Server GSD-RRPT-RDC:6400 not found or server may be down (FWM 01003) null
    I looked at the forums for the cause of this error and came to the conclusion that BOEXI does not support an installation on SQL Server 2005 when using Integrated Authentication to the SQL Server. See the engineers here disabled SQL Authentication for the SQL Server and  will not allow it.
    Is this true? Or is there a workaround to install the CMS using Integrated Authentication in the DataSource ?
    Thanks.

  • ForEach Loop Container Mapping Variable From SSIS Package Not Working In SQL-Server StoredProcedure

    I have an SSIS package that uses a ForEach Loop Container to enumerate Excel Files in a dir. I also have a Task Flow that inserts data from those Excel files into SQL-Server.
    Im trying to insert the file names into a column into the same table in SQL-Server by using a mapping variable in my StoredProcedure.
    Im having trouble with my MappingVariable at the end of the script with red squigglies. The following is my StoredProcedure script.
    CREATE PROCEDURE [dbo].[Insert_F_STG_v2]
    -- Add the parameters for the stored procedure here
    @Hrs float,
    @Type nvarchar(100),
    @SN nvarchar(100),
    @Op nvarchar(100),
    @[USER::CurrentFileName]
    AS
    BEGIN
    SET NOCOUNT ON;
    INSERT INTO [CRM_RC].[dbo].[F_StgTbl]
    [Hrs],
    [Type],
    [SN],
    [Op],
    [Report_Date]
    VALUES
    @Hrs ,
    @Type,
    @SN,
    @Op,
    @[USER::CurrentFileName]
    END
    The last @[USER::CurrentFileName] in the Values block at the bottom of the script is the one giving me issues.
    The following is the error:
    Msg 102, Level 15, State 1, Procedure Insert_F_STG_v2, Line 95
    Incorrect syntax near 'USER::CurrentFileName'.

    This seems to be the solution, but get the following exception: 
    [Derived Column [2]] Error: The "Derived Column" failed because truncation occurred, and the truncation row disposition on "Derived Column.Outputs[Derived Column Output].Columns[Derived Column 1]" specifies failure on truncation. A truncation error occurred
    on the specified object of the specified component.
    AND:  [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Derived Column" (2) failed with error code 0xC020902A while processing input "Derived Column Input" (3). The identified component returned
    an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

  • Vix file in UI builder doesn't recieve data from Webservice application that communicates with SQL server database

    I have created Web service VI ("Prikaz insolacije.vi") which has two input string terminals (FROM / TO) for dates and two output terminals for data (1-D array) collected from database (MS SQL server). This VI communicates with database using functions from database palette with appropriate DSN and SQL query. There are two tables with two data columns (Time and Insolation) in Database.
    This VI works when you run it in Labview 2010, but when I used it as sub VI in UI builder it doesn't return any data.
    Could you please help me find a solution. Is it possible to communicate with SQL server database this way or there is another way?
    There are two attachmet files: Image of .vix file in UI builder and .vi file ("Prikaz insolacije.vi")
    Please help me ASAP!
    Thanks,
    Ivan
    Solved!
    Go to Solution.
    Attachments:
    vix file in UI builder.png ‏213 KB
    Prikaz insolacije.vi ‏35 KB

    Status is False and source string is empty. It behaves like there is no code in VI.
    I tried to access web service directly using following URL:
    http://localhost:8080/WSPPSunce/Prikaz_insolacije/2009-11-05/2009-11-01
    and it doesn' t work. It returns zeros.
    The response is:
    <Response><Terminal><Name>Insolacija</Name><Value><DimSize>0</DimSize></Value></Terminal><Terminal><Name>Vrijeme</Name><Value><DimSize>0</DimSize></Value></Terminal></Response>

  • When to user Availability Group versus traditional Clustered SQL Server

    Hi...
    I'm trying to get my arms around when to use an SQL Server 2014 Availability Group. Here are the characteristics about my platform:
    2 physical servers (Windows Server 2012 / SQL Server 2014)
    Both servers connected to same LAN
    External SAN storage connected DIRECTLY to each physical server via fibr3-channel. (No fibre-channel switch)
    Database resides on SAN storage.
    I've set up a failover cluster between the 2 physical servers.
    I've created a high availability group with a Primary/Secondary and synchronization.
    Both Primary/Secondary are green and show synchronized. The concern I have is that the Primary says Synchronizing (No Data Loss) and the Secondary says Not Synchronizing (Data Loss). When I use the Failover Wizard to failover, it tells me that I will have
    data loss on the Secondary.
    So my questions are these, do you need more than one Secondary node to have an effective Availability Group? If I only plan to have the 2 physical servers, should I be setting up a traditional Clustered SQL Server installation.
    I've used the traditional Clustered SQL Server in the past and used the Active/Passive licensing for the SQL Server software but the Always On Availability Group looked interesting to me, but NOT if it requires more than 2 physical servers and more
    than 2 SQL Instances (and licenses) to provide proper failover capability.
    All input will be appreciated.
    Thanks,
    Brett

    Hi Brett,
    An AlwaysOn Availability Group is created between several standalone SQL Server instances, you don’t need to set up a traditional clustered SQL Server installation when configuring AlwaysOn Availability Group. Also you can have an effective Availability Group
    with only one Secondary node.
    From your description, you have an synchronous-commit availability secondary replica
    and it says Not Synchronizing. This issue can be caused by the following:
    •The availability replica might be disconnected.
    •The data movement might be suspended.
    •The database might not be accessible.
    •There might be a temporary delay issue due to network latency or the load on the primary or secondary replica.
    Please resolve any connection or data movement suspend issues. You can check the events for this issue using SQL Server Management Studio, and find the database error.
    Reference:
    Data synchronization state of some availability database is not healthy
    Availability databases in unhealthy data synchronization state (Error: 35285, Severity: 16, State: 1.)
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • DB Connect from BW on Oracle to MS SQL Server 2005

    Hello,
    I am having issues replicating Meta-Data from SQL server databases via DBCONNECT to SAP BW.
    For instance we have the CCM DB and the Siebel DB.  We can transfer meta-data from CCM with no problem (SQL Server 2000) but we cannot transfer meta-data from Siebel (SQL Server2005).
    Our SAP BW is system is on an Oracle database.
    CCM is on OS Win 2003. SQL 2000 SP4.
    Siebel is on Win 2003 Server Enterprise 5.2 and SQL Server 2005 SP2.
    I already have the dbsl for SQL server installed in the BW system. When I do a Connection Check of the source systems in RSA1, it says "Source system connection OK".
    Any help will be highly appreciated.
    Thanks,
    Ajay

    Hi,
    I don't think the 32 vs. 64 bit is the issue. Have you tried checking OSS note: 512739. It describes the prerequisites for accessing MS SQLServer via DB Connect. Normally problems occurs due to unsupported data types being used in SQLServer - in such cases you have to create views in the source system and then use these views instead of the actual database tables. In the view you can perform the necessary data type conversion.
    Hth,
    Jacob

  • DBLINK FROM ORACLE9I ON WINDOWS TO CONNECT SQL SERVER 2005 ON WINDOWS 2003

    Hello All,
    please i will need help in connecting oracle9i via dblink to sqlserver 2005.
    i have done some configurations already
    * started the listener = which starts alright
    * the tnsping was also successful
    but i keep getting ORA-12154:TNS:could not resolve service name
    this is my tnsnames
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    SIMREG.CORP.MULTI-TELKOM.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.11.185)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = simreg)
    INST1_HTTP.CORP.MULTI-TELKOM.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.11.185)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA.CORP.MULTI-TELKOM.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Mtl_simcard =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (CONNECT_DATA=(SID=Mtl_simcard))
    (HS=OK)
    and my listener
    # LISTENER.ORA Network Configuration File: D:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vic00246dt)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = simreg)
    (ORACLE_HOME = D:\oracle\ora92)
    (SID_NAME = simreg)
    LISTENERMtl_simcard =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = vic00246dt)(PORT = 1522))
    SID_LIST_LISTENERMtl_simcard =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = Mtl_simcard)
    (ORACLE_HOME = D:\oracle\ora92)
    (PROGRAM = hsodbc)
    (SID_DESC =
    (GLOBAL_DBNAME = simreg)
    (ORACLE_HOME = D:\oracle\ora92)
    (SID_NAME = simreg)
    i also have the following in my D:\oracle\ora92\hs\admin
    *inithsodbc
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Mtl_simcard
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    also initMtl_simcard
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = Mtl_simcard
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    please is there any thing have done wrong please some should point out to me.....thanks, i will be looking forward to suggestions and recommendations

    12154 means the alias you have defined for HSODBC specified in the database links using cluase can't be found in the tnsnames.ora. Most of your entries have the domain suffix .CORP.MULTI-TELKOM.COM - only the hsodbc alias misses this information.
    Unfortunately you didn't post the SQLNET.ORA file which commonly contains the default domain parameter, so I can only suggest to change the alias to:
    Mtl_simcard, Mtl_simcard .CORP.MULTI-TELKOM.COM = # note the comma between both aliases which allows you to use an alias with and without the domain
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=vic00246dt)(PORT=1522))
    (CONNECT_DATA=(SID=Mtl_simcard))
    (HS=OK)
    You also didn't post the create database link statement but it should look like:
    create database link <you link name> connect to "<case sensitive SQl Server UID>" identified by "<case sensitive PWD>" using 'Mtl_simcard';
    => the using cluase must refer to your tnsnames.ora hsodbc alias.
    When it continues to fail, please post the tnsping command the the create database link statement.

Maybe you are looking for

  • Photo Resolution for Ad

    I am creating an ad. The magazine specs: Heatset, saddle stitched, 45 lb. Web offset enamel, 200 lpi. All files should output to: minimum 150 lpi / 300 dpi; maximum 200 lpi / 400 dpi. I am planning on making my photo just 300 resolution in Photoshop

  • Short dump while generating data sources

    Hi all, I've created a source system for MSSQL database. Now, when I'm trying to Generate the Data Source from SQL into BW using 'Select database tables' option in the Source system and execute it for a table (SAMTEST) in the SQL database, the progra

  • Migrating from SQL to Oracle 10g -- Oracle Migration Work Bench

    All I've come across this tool from Oracle for Migrating SQL and mySQL databases to Oracle 10g. But the procedure and documentation was not clear. I wanted to try this once and hence I am posting here. Could you please share your experiences if you h

  • MotionMan Code Request (from Video 7 of Programming Kinect for Windows v2 video series)

    Casey Meekhof: thank you for the great presentation from Video 7 of the Programming for Kinect video series that was published back in July. I was wonder if there was anyway that you could post the code you wrote for the MotionMan program you present

  • ITunes asked me what cd I inserted - and I choose the wrong one.

    I'm sure some of you before have inserted a CD only to have iTunes be unsure what it is, and ask you to select the correct album from a list that it thinks it might be. I chose the wrong one - so the track names are incorrect. How do I get iTunes to