PCI-6259 AI_Configure returns -10401 error

Hi,
I'm using MS VC++ to program an application that uses PCI-6259 M-Series DAQ card. I'm having trouble configuring and reading data from this device. AI_Configure(...) function returns with an error code of -10401 (unknown device error). What could I be missing.
OS: Windows XP Professional
NIDAQ: Version 7.3
Include file: nidaq.h
lib files: nidaq32.lib
lib files: nidex32.lib
Best Regards,
Ted

Hello Ted. Thank you for contacting National Instruments. You are getting this error because you are trying to use Traditional DAQ calls with a PCI board that requires DAQmx calls. There is a great help file called NI-DAQmx C Reference Help that comes with NI-DAQ. This file shows up on your computer as daqmxcfunc and can be found at C:\Program Files\National Instruments\NI-DAQ\Docs. For example, if you are reading in a voltage, AI_Configure() in traditional becomes DAQmxCreateAIVoltageChan() in DAQmx. Example programs can be found at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C. I hope this helps! Have a great day!
Marni S.
National Instruments

Similar Messages

  • PCI-MIO-16​XE-50 -10401 Error ;-(

    Hi, I am installing a 'supposedly' good (but used-)board into a 350MHz PII running XP Professional OS. Seems to install OK, but when I launch MAX 2.2/NI-DAQ 6.9.3 the resource section is greyed out although it does appear, and I get a -10401 error (failed test, do you wish to continue?).
    When I first installed the board, MS wanted to install a 'PCI Bridge Device' rather than my PC-MIO-16XE-50, don't know if there might be some other bugs to patch or diagnostics to run, or if I should send the board in for check out?
    Thanks,
    Bob
    aka Philco-Ford

    Sorry, typed to fast.
    NI-DAQ is the drivers for all of the hardware.
    MAX gets installed at the same time (?) as NI-DAQ and allows you to configure the hardware. THis brings me to a question that I failed to ask.
    Did you do a "Refresh" once you opened MAX?
    Depending on how MAX is set-up it may not have been refreshed after the borad was installed.
    Recently, my experience with getting NI hardware to show up has been pretty good.
    If the above does not work, you may want to call NI because the board may be bad.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Writing to digital port disrupting counter on PCI-6259? (nidaqmxbase)

    Hello,
    I've set up my PCI-6259 with an angular encoder counter, as per the C code example at http://zone.ni.com/devzone/cda/epd/p/id/5735
    This appears to work great, but I would also like to use my PCI-6259's digital lines to control a TTL switch on the encoder it's measuring (among other things). If I set up a separate task in the same program and install a new DOChan to the task, it works great: I can control the TTL and measure the encoder position at the same time.
    However, I would like to be able to control the digital lines, e.g., via a script, while leaving the encoder readout running continuously. I tried running the angular encoder counter example code, and while it was running, I ran the dio/writeDigPort example.
    First of all, the writeDigPort took about 3 times longer than usual to run. It wrote to the digital line successfully, but as soon as it had, it corrupted the counter somehow. The angular encoder example began to spit out garbage, rather than the measured angle.
    Is this just a limitation of nidaqmxbase, wherein I cannot use the PCI-6259 resource from multiple processes? I can imagine this being the case, since I think the counter setup is using a DMA.
    Or is there a workaround? Any advice is much appreciated, thanks!
    -Chase

    I think what was meant is that DAQmx Base is not multi-thread safe.  From the readme:
    NI-DAQmx Base is not multi-thread safe. In LabVIEW, use the error cluster to
    force execution order. In C, use only one thread to make API calls; especially
    for task/channel creation and deletion.
    So, if using DAQmx Base, all of your functions should be in the same thread (i.e. don't make parallel calls to the driver).
    Having said this, I notice you're using the PCI-6259 which is supported in DAQmx for Linux.  You didn't mention what OS you're using, but if you are able to use the full version of DAQmx I would recommend doing this.  DAQmx is multi-thread safe, and provides more functionality and better performance than DAQmx Base.
    Best Regards,
    John Passiak

  • Start Counter Output on a Analog Trigger in the PCI 6259 Mseries board

    Hi,
    My question is regarding how to use Analog Triggering to start a counter in the PCI 6259 M-series board.
    I have attatched a program here
    'Mult_Device_Digital_Analog_Out_on_Analog_Trigger.​vi'
    and I'll explain my problem regarding this program.
    I've tried to include all the details about the program in the documentation for the VI, but what the program
    does is essentially output a set of digital and analog patterns as specified by an end user, and at times
    specified in the front panel.
    Problem 1.
    I wish to start the whole operation on a analog trigger signal, in the program its the boolean "Line Trigger",
    but I get an error saying that trigger type is not supported, when the M Series board manual clearly says it can be done.
    Is there something wrong with my program ?
    Thanks.
    Shomu
    Attachments:
    Programs.zip ‏101 KB

    Shomu
    Admittedly, it might take a little time to find the documentation, but it is there. Also, the error you are getting indicates the proper trigger signals to use. In the help look at the analog Triggering Considerations for E Series, M Series, and S Series.
    With that being said the easiest thing to do is to setup an Analog Input task configured to start on an Analog Trigger. Then, setup a digital edge trigger for the Counter task. The signal you are going to want to look for is the Analog Comparison Event. This signal won't show up by default in the list. What you need to do is right click on the trigger source constant or control and select I/O Name Filtering. Then check Include Advanced Terminals. Once you have done this you can select the Analog Comparison Event
    StuartG

  • MxiFindDev​LA() crashed without return any error code

    Version 2.1.1 of the VXI library returns 0xffffffff, error code.
    Version 3.2 and 3.3.1 simply crashed the application with returning any error code.
    Can you please tell me if there is any update within the mxiFindDevLA() function that's causing the problem?
    side note: there is no pci-mxi2 hardware installed on the system.
    Ken

    Ken-
    I think in order to best answer your question we need additional details about your setup.
    First, "mxiFindDevLA" is not an NI function. We provide an operation called "FindDevLA" which is probably related, but it sounds like someone (perhaps an instrument driver?) has provided a new function which may have behaviors we are not expecting. One step that would help us determine what the operation does would be for you to attach the output of NI Spy when your application runs.
    Also, I am confused by your side note. FindDevLA (which might be used by mxiFindDevLA) is an NI-VXI API operation. All NI-VXI API operations MUST be run after InitVXIlibrary succeeds. InitVXIlibrary will not work (it will return an error) if there is no controller in your sy
    stem. From your side note I can't tell if you have no controller at all, or just some other controller that is not a PCI-MXI-2.
    If you can provide this additional information it would assist us in debugging the problem. FindDevLA itself is a simple operation which compares the settings you provide against the device info fields for each logical address in your system. It could cause a crash if you pass in an invalid pointer for the logical address parameter, but that was true in NI-VXI 2.x as well, so I look forward to any additional information you can provide.
    -Scot

  • Simulated PCI-6259 missing Ctr0Out

    Good Afternoon,
    I am simulating a PCI-6259 as "Dev1," and am unable to locate & select the DAQmx terminal "Dev1/Ctr0Out."   According to the MAX pinout map this terminal exists, so my question is where did it go?   If I force with manual entry I recieve an error.   I've attach my VI for reference.   Any thoughts?
    Labview 8.5.1
    NI-DAQmx device driver 8.7.1f2
    MAX 4.4.1f0
    Sincerely,
    Zach
    Attachments:
    gen_tasks (SubVI).vi ‏44 KB
    merge_errors (SubVI).vi ‏27 KB

    Hi super-neuron,
    If you look at the pinout map for the PCI-6259 in Measurement and Automation Explorer (MAX), below the pinout diagram, it mentions that the default pin for Counter 0 Output is PFI12 (pin 2). This is the reason why you will not see Ctr0Out in your list of terminals in LabVIEW.
    I hope this helps,
    S_Hong
    National Instruments
    Applications Engineer

  • Error while executing script for sharepoint online (office 365) - the remote server returned an error: (503) server unavailable

    error while executing script for sharepoint online (office 365) - the remote server returned an error: (503) server unavailable.
    I am creating many site collections reading records from sharepoint list using powershell in sharepoint online tenant (office 365).
    Few site collections are created and then getting above error so this error record will be skipped then few succeeding record processed then again getting error.
    pattern is like:
    success
    success
    success
    success
    Error
    success
    success
    success
    success
    success
    success
    error
    success

    Hi,
    As it is an online environment, to troubleshoot this issue in an easier way, I suggest you contact Office 365 Support to see if there is any useful information in
    the log files in the server side:
    https://support.office.com/en-us/article/Contact-Office-365-for-business-support-32a17ca7-6fa0-4870-8a8d-e25ba4ccfd4b?ui=en-US&rs=en-US&ad=US
    Best regards
    Patrick Liang
    TechNet Community Support

  • HT4864 I am getting a triangle with an exclamation point next to my inbox...it says: There may be a problem with the mail server or network. Verify the settings for account "MobileMe" or try again.  The server returned the error: Mail was unable to log in

    I can send but cannot recieve email
    This is the messege I am gewtting:
    There may be a problem with the mail server or network. Verify the settings for account “MobileMe” or try again.
    The server returned the error: Mail was unable to log in to the IMAP server “p02-imap.mail.me.com” using “Password” authentication. Verify that your account settings are correct.
    The server returned the error: Service temporarily unavailable

    Also if I go to system preferences accounts and re-enter the password it fixes the glitch sometimes.

  • After Upgrade OBI 10g to 11g:Odbc driver returned an error - SQLExecDirectW

    Hi all,
    for an OBI upgrade from 10g to 11g I used a RPD and Webcatalog based on a remote machine other than my local machine. Firstable I am making the tests on a Linux Virtual machine, which uses the Sample Lite version from Oracle.
    I made the following steps:
    1. I upgraded the RPD and Webcatalog. It worked without any errors.
    2. I set the static variable BI_EE_HOME via Administration Tool to the path in the Linux machine.
    --> Here I am not sure if the set path is correct. It begins with: \bi\ ...\instances\...\coreapplication_obis1 (... : I can't mention here the whole path name).
    --> When the OBI Server is installed in Windows, the mentioned static variable points to something like 'C:\<install folder>\...\coreapplication_obis1'
    --> Question: is the begin of my set path correct?. I set that pointing to the Linux OBI Server, because the OBI Server is installed on Linux.
    Problem:
    After login as the user in RPD: Administrator/<Password for my upgraded RPD> I can see the links in the Catalog and the Dashboards links. But I can not see any values, any Reports when going through the links.
    For example when trying to see a Dashboard with date 12.02.2011it happens:
    Odbc driver returned an error (SQLExecDirectW).
    Status: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] general error.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 43119] Query Failed:
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database. (HY000)
    SQL Issued: SELECT "Dimension_-_My Dimension"."MyDimension" saw_0 FROM "Accounting (ACC)" WHERE "Dimension_-_My Dimension"."MyDimension" LIKE 'J%' ORDER BY saw_0
    I think its not retrieving the data from the remote database, because I don't have the data of the remote database in my local. I think the OBI Server still is pointing to the local virtual machine Oracle database.
    Can anybody tell me what happens here and how can I solve this problem?.
    I would appreciate any help....

    Hi gerardnico,
    I've tried many things and did as in your articles, but I don't have success with that.
    These are the things I did:
    1. I searched for the file tnsnames.ora in my Linux virtual machine. I could find it in many paths:
    /.../Oracle_BI1/network/admin/samples/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/hs/admin/tnsnames.ora.sample
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/samples/tnsnames.ora
    /.../oracle/xe/app/oracle/product/10.2.0/server/network/admin/temp/tnsnames.ora
    /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin
    in the last path I found the listener.ora as well.
    2. I took the tnsnames.ora from the last path, because the ORACLE_HOME points to /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    3. I edited the tnsnames.ora this way:
    # tnsnames.ora Network Configuration File:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host_of_the_remote_machine)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = database_name_of_the_remote_machine)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = database_SID_of_the_remote_machine)
    (PRESENTATION = RO)
    4. I made a backup of the tnsnames.ora in path /.../Oracle_BI1/network/admin/samples/tnsnames.ora
    and copied the tnsnames.ora from /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin to the Oracle_BI1 path
    5. I set the TNS_ADMIN to /.../usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin
    6. I restarted the BI Server
    No success in what I did. The error is still there.
    7. I've tried also: sqlplus database_user_remote_machine/database_password_remote_machine@database_SID_remote_machine
    I didn't get the connection:
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 16 04:36:10 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name: database_user_remote_machine
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory
    What am I doing wrong here?. I am still thinking that I need the import of the database.
    Additional SID=Service-Name=Database-name in the remote machine.

  • When I attempt to sign up for the Samsung website using Firefox on my macbook, it returns an error that the random question answer is wrong

    I was attempting to create a user at this site:
    http://www.samsunggalaxys3forum.com/forum/register.php?do=addmember
    It asks a "random" questions "Floors are horizontal, walls are ___?" When I hit submit, it returns an error that the answer was wrong. I tried several times using my macbook running firefox.
    I get to work, where I am using an intel based machine running Windows 7, IE 9 and am able to register on the site and answer the question with no problem.
    I have had the same problem on sites that use captcha - I cannot get past inputting the captcha phrase, as it returns an error every time, while using IE9 is problem free.
    Is there something wrong with my setup of Firefox?

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Why is my executable VI not working with a PCI-6259?

    I have bought a PCI-6259 which has referencing trigger capability. I wrote a VI for acquiring the data and tested the VI on my PC that has the full developmental LabView 8.2.1 package installed.  The trigger is a 1 volt level that is triggered by a potentiometer ranging from 0-5 volts that I control manually. The VI works exactly how I want it to, however, now I want to use the Application Builder to create an executable to distribute the VI to the testing station PC. I then removed the PCI-6259 from the developmental PC and installed it in the testing station PC and loaded the executable VI along with the LabView 8.2.1 Run Time Engine. I open the program and it runs but I cannot get the program to trigger using the same potentiometer so it runs in an infinite loop.  I'm pretty sure everything is loaded correctly and the only difference between the two stations is that one has the full developmental LabView package and the other is an executable. Would anyone know why my executable is not working?
    Thanks,
    Matt Kostyal

    Hey Matt,
    Thanks for contacting National Instruments support.  One thing I'd like to see you try in the DAQ diagnostic utility.  I do not suspect a bad card, but it is an executable that we can try that we know was properly built.  If it doesn't work that will give us some more insight into the problem if it is truly hardware or software. 
    Let me know what you find.
    Regards,
    Kenn North
    Senior Product Manager - Search, Product Data
    http://ni.com/search

  • Power BI analysis services connector - the remote server returned an error (403)

    Hi all, does any one have any suggestions what to try to identify the configuration problem I have?
    I have, a SSAS 2012 tabular instance with SP2, there is a database on the instance with a read role with everyone assigned permissions. 
    When configuring the Power BI analysis services connector, at the point where you enter Friendly Name, Description and Friendly error message, when you click next I receive the error "The remote server returned an error (403)." 
    I've tested connecting to the database from Excel on a desktop and connect fine.
    I don't use a "onmicrosoft" account so don't have that problem to deal with.
    We use Power BI Pro with our Office 365. As far as I can tell that part is working ok as I pass that stage of the configuration with a message saying connected to Power BI.
    The connector is installed on the same server as tabular services, its a Win2012 Standard server. The tabular instance is running a domain account that is the admin account for the instance (this is a dev environment) that account is what I've used in the
    connector configuration. It's also a local admin account. There is no gateway installed on the server.
    Any help would be greatly appreciated, thanks, Brian
    Brian Searle

    Brian-
    One other common issue I've seen is the UPN not quite matching. Log onto the SSAS server as the user who's logged into Power BI. Then open a command prompt and run:
    whoami /upn
    Hopefully the UPN it says will match your EffectiveUserName test and will match exactly how you're signing into the Power BI site.
    If that doesn't work, your best bet is to go to
    http://support.powerbi.com/ and click Contact Support and describe this situation and someone from the Power BI support team should get in touch with you to troubleshoot.
    http://artisconsulting.com/Blogs/GregGalloway

  • Provider-hosted Apps debug error: The remote server returned an error: (401) unauthorised

    Hi,
    Any help appreciated!!
    I'm getting this error: "The remote server returned an error: (401) unauthorised when I debug a provider-hosted app.  I get the error on this line:  
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    See code below
    I created a high trust development environment following the instructions provided here:
    http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx and
    http://msdn.microsoft.com/library/office/fp179923
    I created a provider-hosted app with the intent to:
    create a SharePoint list in the appweb
    Use self-signed certificate, tokenhepler.cs and sharepointcontext.cs to retrieve current user context and access on SharePoint.  (No changes were made to tokenhelper.cs and sharepointcontext.cs)
    retrieve list items from the SharePoint list in a button click event handler on a default.aspx of the remote web
    What happens:
    The app is deployed successfully to the Dev site
    The SharePoint feature is deployed and activated
    The default.aspx page of the remote web loads
    The error (see image) is returned on clicking of the button
    My environment is an on-premise SharePoint 2013 with AD and my dev box is standalone windows 8.1 running Visual Studio Professional 2013 Update 3.
    The code block below is a copy of the default.aspx code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Microsoft.SharePoint.Client;
    using Microsoft.IdentityModel.S2S.Tokens;
    using System.Net;
    using System.IO;
    using System.Xml;
    using System.Data;
    using System.Xml.Linq;
    using System.Xml.XPath;
    namespace Idea.GeneratorWeb
    public partial class Default : System.Web.UI.Page
    SharePointContextToken contextToken;
    string accessToken;
    Uri sharepointUrl;
    protected void Page_PreInit(object sender, EventArgs e)
    Uri redirectUrl;
    switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
    case RedirectionStatus.Ok:
    return;
    case RedirectionStatus.ShouldRedirect:
    Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
    break;
    case RedirectionStatus.CanNotRedirect:
    Response.Write("An error occurred while processing your request.");
    Response.End();
    break;
    protected void Page_Load(object sender, EventArgs e)
    //// The following code gets the client context and Title property by using TokenHelper.
    //// To access other properties, the app may need to request permissions on the host web.
    var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
    //var spContext = new ClientContext("MySPDevInstance");
    //spContext.Credentials = new NetworkCredential("username", "password");
    //using (var clientContext = spContext.CreateUserClientContextForSPHost())
    // clientContext.Load(clientContext.Web, web => web.Title);
    // clientContext.ExecuteQuery();
    // Response.Write(clientContext.Web.Title);
    string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);
    if (contextTokenString != null)
    // Get context token
    contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, Request.Url.Authority);
    // Get access token
    sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
    accessToken = TokenHelper.GetAccessToken(contextToken, sharepointUrl.Authority).AccessToken;
    // Pass the access token to the button event handler.
    Button1.CommandArgument = accessToken;
    protected void Button1_Click(object sender, EventArgs e)
    // Retrieve the access token that the Page_Load method stored
    // in the button's command argument.
    string accessToken = ((Button)sender).CommandArgument;
    if (IsPostBack)
    sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
    // REST/OData URL section
    string oDataUrl = "/_api/Web/lists/getbytitle('Diagrams In Idea Generator')/items?$select=Title,Diagram,SharingStatus";
    // HTTP Request and Response construction section
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrl);
    request.Method = "GET";
    request.Accept = "application/atom+xml";
    request.ContentType = "application/atom+xml;type=entry";
    request.Headers.Add("Authorization", "Bearer " + accessToken);
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    // Response markup parsing section
    XDocument oDataXML = XDocument.Load(response.GetResponseStream(), LoadOptions.None);
    XNamespace atom = "http://www.w3.org/2005/Atom";
    XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
    XNamespace m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
    List<XElement> entries = oDataXML.Descendants(atom + "entry")
    .Elements(atom + "content")
    .Elements(m + "properties")
    .ToList();
    var entryFieldValues = from entry in entries
    select new
    Character = entry.Element(d + "Title").Value,
    Actor = entry.Element(d + "Diagram").Value,
    CastingStatus = entry.Element(d + "SharingStatus").Value
    GridView1.DataSource = entryFieldValues;
    GridView1.DataBind();
    Any ideas what I might be doing wrong

    Hi ,
    Use the below code
    Public string GetAccessToken(){
    string sharePointSiteUrlHost =  Page.Request["SPHostUrl"].Tostring();
    string AccessToken = tokenHelper.GetS2SAccessTokenWithWindowsIdentity(sharePointSiteUrlHost, Request.LogonUserIdentity);
    return accessToken;
    Than initialize the ClientCOntext with the below Method
     private static ClientContext GetClientContextWithAccessTokenString(string targetUrl, object accessToken)
                ClientContext clientContext = new ClientContext(targetUrl);
                clientContext.AuthenticationMode = ClientAuthenticationMode.Anonymous;
                clientContext.FormDigestHandlingEnabled = false;
                clientContext.ExecutingWebRequest +=
                    delegate(object oSender, WebRequestEventArgs webRequestEventArgs)
                        webRequestEventArgs.WebRequestExecutor.WebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
                        webRequestEventArgs.WebRequestExecutor.RequestHeaders["Authorization"] =
                            "Bearer " + accessToken;
                return clientContext;
    use this clientCOntext and it will work.
    Do not use
    SharePointContextProvider
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • [URGENT] The remote server returned an error: (503) Server Unavailable

    Hi All,
    Im using vb.net to write a web services. After couple of days the stress test on all the function, my exception catch sometimes is return the error message as a title but sometimes is not, why is this problems? Please advice.
    Below is the coding to connect on the crmod server and this sample code is provided from oracle webservices sample code,
    Public Sub Establish()
    If Not sessionId Is Nothing Then
    Destroy()
    End If
    ' create a container for an HTTP request
    Dim req As HttpWebRequest
    req = WebRequest.Create(GetLogInURL())
    'username and password are passed as HTTP headers
    req.Headers.Add("UserName", UserName)
    req.Headers.Add("Password", Password)
    'req.Credentials = New NetworkCredential(UserName, Password)
    req.UserAgent = "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0"
    req.KeepAlive = False
    req.Proxy = Nothing
    ' cookie container has to be added to request in order to
    ' retrieve the cookie from the response.
    req.CookieContainer = New CookieContainer
    ' make the HTTP call
    Dim resp As HttpWebResponse
    resp = req.GetResponse()
    If resp.StatusCode = System.Net.HttpStatusCode.OK Then
    'store cookie for later...
    cookie = resp.Cookies("JSESSIONID")
    sessionId = cookie.Value
    End If
    End Sub

    Hi runndn2,
    Yes, absolutely. Please see my reply as below,
    (1) Are you running this single threaded? - is there more than one program running the same request?
    So far, what I did just a single thread. For example, I click on "functionA", after few seconds is display out result, i close the result pages then i submit the "functionA" again.
    (2) Do you have logic to re-try the request when you get a 503?
    I do, but the logic and retry to get the error message is very inconsistency. For example, I click on "functionA", it can display result and no error message within couple of times clicking. But sometimes even I first click on the same function already display out that error message.
    This really confusing where is the error came from, please advice for the possibility.
    Thanks :)

  • Getting "The remote server returned an error 503 server unavailable" in azure web jobs

    I have created one web
    job - on demand schedule under azure web site.  This web jobs contains .execmd(i.e.)
    Console Application.
    I am retrieving the data from SQL Azure database and uploaded the data in sharepoint online lists. (i.e.)I have uploaded the data to several(7) lists in each subsites. I have 3 subsites. 
    I am getting this error "The remote server returned an error 503 server unavailable", while uploaded the data into lists. 
    Full Error Message:
    Message - The remote server returned an error 503 server unavailable.
    StackTrace -    at System.Net.HttpWebRequest.GetResponse()
    > cc525c: INFO]    at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
    > cc525c: INFO]    at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
    > cc525c: INFO]    at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
    > cc525c: INFO]    at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
    > cc525c: INFO]    at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
    This is not occur every time. Some time i didn't get any error data successfully uploaded in share point online list.
    Totally 4 hours taken uploaded the data into list for completed all 3 subsites. 
    If anyone know how to resolve this.
    Thanks,
    A.Ramu

    Hi,
    Per my understanding, there is an issue when uploading data from SQL Azure database to a SharePoint list in Online environment.
    For narrowing down the issue, I suggest you create a Console Application in Visual Studio without accessing the SQL Azure database and upload some sample data to the same SharePoint
    list to see if the issue still occurs intermittently.
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Second Panther Install Disk not recognized

    I am trying to reinstall OS 10.3 from the original, full retail version CDs, doing a complete clean install. I have successfully installed disk one, but then when prompted to insert disk 2, I do so and nothing happens. I don't think it is a problem w

  • How should I output tracking data from Motion 5 to use it in Aegisub

    I'm a subtitle worker and I really need to track some hard to track objects and mark with subtitles for them. So I wonder if I may use the tracking function in Motion 5 and output it into a txt file or something like that and use it in the Aegisub wh

  • Needs to be Hide Additional Planning button on ME21N/ME22n/ME23n

    Hi All- Is there anyway we can disable the 'Additional Planning' push button on 'ME21N/ME22N/ME23N' either using user-exit or 'BADI's? Please let me know.. Thanks, Sony

  • Reverse Billing Document (JF11) - Media

    Hi, I'm new at IS-Media and I'm trying to reverse a billing document trought JF11, but I don't want to "repeat billing". Is it possible to decide this in a pop-up when I reverse it (In billing document i have the flag in "repeat billing"). It's about

  • Service Unavailable error in Alert Configuration

    Hi all, I have done all the Alert Configuration in the ABAP Stack using the tcode ALRTCATDEF.as mentioned in weblog: /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step But when I click on the Alert Configuration tab in RWB, i get the fo