Connecting DI API with wrong user name or password

I have an addon connecting to DI API by user login. If user types wrong username or password, the Company.Connect() runs endlessly. However I try to stop this process, I have no chance to do so.
I tried by starting the Company.Connect() in a separate thread, but I cannot shut down this thread, because this thread is endlessly trying to connect to DI API.
Even through using a timer I have no chance to cancel Company.Connect() after a defined period.
Anybody got an idea to solve this problem?
Thanx and best regards,
Ralph

Ralph,
You may want to look at one of the samples that comes with the Business One SDK that use the DI API and have the user log into Business One.  You can find one here ...
..\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\05.OrderAndInvoice
HTH,
Eddy

Similar Messages

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • HT204053 I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on

    I did not know my kids had set up an Itunes account for me with one user name and password.  then i got an i phone and set it up with a different email address and new password.  how can i get my accounts to merge so i can have all of my music on my iphone

    Quote: "You cannot merge two or more Apple IDs into a single one. You can, however, use one Apple ID for iCloud services and another Apple ID for store purchases (including iTunes in the Cloud and iTunes Match). See “Using one Apple ID for iCloud and a different Apple ID for Store Purchases” above for details." See also Apple ID & iCloud FAQ: http://support.apple.com/kb/HT4895?viewlocale=en_US&locale=en_US
    You can set up your iCloud account on your iOS device under: "Settings > iCloud" and a other account for store purchases under "Settings > iTunes & App Stores". Unfortunately merging accounts is not possible but you could transfer all of your music manually via iTunes from your Mac or PC.

  • I tried to share a photo using e-mail and when I set up my gmail account I typed in the wrong user name and password.  Now i can't share photos using e-mail.

    I tried to share a photo using e-mail and when i set up my gmail account I typed in the wrong user name and password.
    Now I can't send a photo because i get an error message saying the user name and password do not match.
    How do i save a new gmail user name and password??

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • Got an error while setting up account after reset password: "Wrong user name or password"

    Firefox Sync
    I've perform "Reset password" operation and tryed to set up Sync again - and got an error "Wrong user name or password". After resetting password once more error still remains.
    This affect after I've update my Firefox to version 8.0.

    Hi Khimesra,
    Could you please try the following:
    1 - Firewall/antivirus disabled                                   
    2 - B1 uninstalled                                                
    3 - Net 1.1 installed                                            
    4 - B1 reinstalled                                                
    Please also refer to the following SAP notes:
    546344 and 542690
    Regards
    Emanuel

  • HT203261 When i open my email it comes up with The user name or password is incorrect. This has only come up in the last day. As far as I am aware the user name and password is correct. Can you please advise.

    My email has been working fin. however In the last day or so when  i open my email or send an email it comes up with,
    The user name or password is incorrect. As far as I am aware the user name and password is correct. Can you please advise.
    Declan Jackson

    Try going into Settings > Mail, Contacts, Calendars and select that email account and try re-typing in the account's username and password

  • Invoke-sqlcmd with domain user name and password

    I am trying to execute below small SQL script from powershell by passing my domain user name and password..but it is throwing an error login failed for the user.
    Howerver I am able to execute the same query by passing normal user 'non domain' and password. The issue is only when i am trying to connect with domain username.
    Can you please suggest if there is any way to execute below query with domain user..
    Invoke-Sqlcmd
    -query "select name from master.sys.databases"
    -ServerInstance "CM-NCKM-DBTST04\SQL2012" -username "sos\9venk" -password "xxxx"
    Thanks
    Venkat
    venkat

    Hi Venkat,
    Agree with Mike, to connect sql via powershell, you can refer to this article about authentications:
    Connecting to SQL Server through Powershell
    Please try to gather credentials using Get-Credential, and then use New-PSSession -Authentication CredSSP to open the pssession.
    A similar discussion about this issue is for your reference:
    Invoke-SQLCmd with Different Credential
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • TS2621 I have an e-mail set up on mt desk top and I-pad. Recently I had to change the password on my desktop. The next time I tried to open my I-pad e-mail it said I had the wrong user name or password. I changed the password to match the one on my dt, sa

    I keep getting error message on my I-Pad e-mail, user name or password incorrect. I reset the password with a new one and it says same thing. I have same e-mail on desktop. Same password. Any ideas?

    If you can't send mail, but can receive it  - Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • SCOM Linux discovery failed with "The user name or password is incorrect" error

    Hi every one .
    In our test environment when I want to discover a new linux computer system , discovery process fails with this error message :
    Unexpected DiscoveryResult.ErrorData type.  Please file bug report.
    ErrorData: Microsoft.SystemCenter.CrossPlatform.ClientLibrary.Common.SDKAbstraction.TaskInvocationException
    Task invocation failed with error code 1326. Error message was: The user name or password is incorrect.
       at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
       at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
       at Microsoft.SystemCenter.CrossPlatform.ClientActions.DefaultDiscovery.InvokeWorkflow(IManagedObject managementActionPoint, DiscoveryTargetEndpoint criteria, IInstallableAgents installableAgents)
    But I m sure that this username and password is correct and I can logon to this computer with this credential.
    how do I find root cause of this issue ?

    I have been enabled logging before doscovery process .
    in temp directory :
    0: 02/10/15 20:03:22 : Enter SCXNameResolverProbe constructor
    0: 02/10/15 20:03:22 : Leave SCXNameResolverProbe constructor
    1: 02/10/15 20:03:22 : Enter SCXNameResolverProbe::DoInit
    1: 02/10/15 20:03:22 : XML_INIT_CALL
    1: 02/10/15 20:03:22 : Check WSAStartup
    1: 02/10/15 20:03:22 : Exit SCXNameResolverProbe::DoInit
    2: 02/10/15 20:03:22 : Enter SCXNameResolverProbe::DoProcess()
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess passed initial arguments checking
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess input: 192.168.7.62
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess - Input is an IP-address
    3: 02/10/15 20:03:22 : Enter SCXNameResolverProbe::GetName(): 192.168.7.62
    3: 02/10/15 20:03:22 : Resolve IPv4 address to host name
    3: 02/10/15 20:03:22 : Leave SCXNameResolverProbe::GetName(): SUSE11
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns name: SUSE11
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns ip: 192.168.7.62
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns errorcode: 0
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns errortext: 
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns xml: <NetworkName>SUSE11</NetworkName><IPAddress>192.168.7.62</IPAddress><StatusCode>0</StatusCode><StatusMessage></StatusMessage>
    2: 02/10/15 20:03:22 :  Enter initDataHolder
    2: 02/10/15 20:03:22 : Enter initDataType
    2: 02/10/15 20:03:22 : initDataType initializing output datatype
    2: 02/10/15 20:03:22 : Leave initDataType
    2: 02/10/15 20:03:22 : Leave initDataHolder
    2: 02/10/15 20:03:22 : Leave SCXNameResolverProbe::DoProcess
    4: 02/10/15 20:03:22 : Enter SCXNameResolverProbe destructor
    4: 02/10/15 20:03:22 : SCXNameResolverProbe destructor - FreeLibrary failed: 0
    4: 02/10/15 20:03:22 : Leave SCXNameResolverProbe destructor
    with debug viewer I have this message after discovery :
    [7448] A management object with display name SUSE11 could not be found.

  • Problems with invalid user name and password

    We have a one week old MacBook 2.2GHz basic white model that is generally working well.
    However a problem has now arisen whereby on any attempt to shutdown or restart it won't accept the administrator user name and password, returning an 'invalid' warning. The issue seems to be the user name as the administrator password has worked OK in other situations. Naturally I have checked and re-checked the user name (which was in the form (first name followed by surname in upper and lower case) and it was OK (in any case it was being prompted automatically by the system.)
    I have subsequently changed the administrator name (to the form first name only in upper and lower) and the password as suggested by the following article:
    http://docs.info.apple.com/article.html?artnum=306876
    Nothing has changed. Can anyone help?

    HI Martin, a late post to confirm the solution from the last post by using the "RETURN" key works..
    (mouse click worked ok in Tiger 10.4.x I thought).
    Tis was a delight and so obvious after seeing these symptoms.
    I have posted this entry in case anyone else get's into this situation since OSX LEopard 10.5. Several people have encountered this issue where they may have:
    • LEopard 10.5.x installed
    • have 2 or more active users LOGGED into the OSX system via fast user / fastuser switching
    • request a SHUTDOWN or RESTART from an user
    • get a OSX request to supply administrator attributed user and it's associated password to validate SHUTDOWN | RESTART request,
    • have admin | root account verification failure of password after 'clicking'.
    After some months of frustration, it seems a simple PRESS of the "RETURN key" works!
    Simply, DON'T mouse click after entering admin user/password.... instead press "RETURN" key.
    fwiw.
    w

  • Wrong User name or Password while connecting from SAP Business One - PL26

    I have restored my database on the server.I am using Patch Level PL26
    I am getting an error while logging to Server
    Wrong username and password....Message [131-93]
    Is it because i have not imported the Temporary Liscence.But when i work on my laptop, it doesnt give me an error with the same username and Password.
    I have checked SAP B1 Suite Service Manager also......it is "ON".
    Can you please give me an help on this issues, why is it giving this error
    OR
    Is there a problem in my SAP Business One Server installation
    Steps i have followed to install the SAP Busines One Server
    1 - PL26 - Packages - Server Tools - Setup
    2 - SAPB1 - Packages - Server - Setup (Custom - Demo-India
    3 - Client - setup
    4 - PL26 - Packages - DIAPI - Setup
    Not installed -
    5 - Packages - Upgrader Common - Setup
    Reason - I have been told that until and unless you import liscense, you cannot run Upgrader Common Setup.
    Please if you can find out is this true ?
    Is the problem coming because i have not run the Upgrader Common setup ?

    Hi Khimesra,
    Could you please try the following:
    1 - Firewall/antivirus disabled                                   
    2 - B1 uninstalled                                                
    3 - Net 1.1 installed                                            
    4 - B1 reinstalled                                                
    Please also refer to the following SAP notes:
    546344 and 542690
    Regards
    Emanuel

  • Imovie will not let me load a movie to You Tube error message say wrong user name and password when it is right

    imovie will not let me load a movie to You Tube. The error message from imovie says it is the wrong password and user name. I rechecked it and it is right.

    It can be tricky sometimes.  Go to your youtube account in Safari and try logging in.  They might have changed the security requirements.  In addition, you might find this software easier to use for uploading video to youtube.

  • I have to log in everytime with my user name and password even though "Keep me logged in ...." is checked, this just started

    I don't know what else to say about this but I guess I have to enter something in this box.

    gemma252 wrote:
    I have just installed snow leopard and reset my admin name and password.
    Likely because both occurred at the same time and/or you created another Admin user/ didn't allow the new Admin to admin the machine?
    Hold c and boot off your Snow Leopard install disk and second screen in under the Utilities menu is Reset Password.
    There is also a Single User mode (caution root user!) way to reset passwords on each account.
    http://osxdaily.com/2011/04/25/change-admin-password-mac/
    Before you do that, make sure at any opportunity to backup your files manually to a external drive and disconnect.

  • Portal trying to connect to syndicator with wrong user

    I'm trying to create my first KM syndicator / subscriber.  I've followed the steps from this document <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/38effdbf-0d01-0010-c3ad-9d9547a492af">https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/38effdbf-0d01-0010-c3ad-9d9547a492af</a>
    The problem I'm running into is when creating a subscriber.  When prompted to enter the connection information I supply the URL and my username and password for the source portal server.  When clicking the Get Catalog button I receive the below error.
    What seems odd is that the error mentions the user Guest and not my username.
    Failed to connect to the syndicator (HTTP status: 500 Internal Server Error)
    Looking at the logs on the source server I getting the following...
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException:
    <b>
    Access is denied: com.sap.km.cm.ice - user: Guest,
    </b>
         at com.sapportals.portal.prt.deployment.DeploymentManager.checkPermissions(DeploymentManager.java:2005)
         at
    Caused by: com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object(s): com.sap.portal.system/security/sap.com/NetWeaver.KMC/low_safety/com.sap.km.cm/components/ice)
         at com.sapportals.portal.pcd.gl.PcdFilterContext.filterLookup(PcdFilterContext.java:421)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1198)
         at com.sapportals.portal.pcd.gl.PcdProxyContext.basicContextLookup(PcdProxyContext.java:1204)
         at
    and of the destination portal server...
    Exception in connect - java.io.IOException: HTTP status: 500 Internal Server Error
         at com.sapportals.wcm.service.ice.wcm.ICEHttpConnection.checkStatus(ICEHttpConnection.java:290)
         at com.sapportals.wcm.service.ice.wcm.ICEHttpConnection.getOutput(ICEHttpConnection.java:165)
         at com.sapportals.wcm.control.ice.ICESubscriberHelper.getOffers(ICESubscriberHelper.java:81)
         at com.sapportals.wcm.control.ice.SubscriberEditSyndicatorControl.onConnect(SubscriberEditSyndicatorControl.java:463)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)
    Any thoughts as to what I'm doing wrong?

    The current version of iTunes is 12.x.x and requires OS X later than Snow Leopard.

  • HT1430 Since latest update, my iCloud keeps telling me it cannot connect due to horrible connection. I know my user name and password an still says it won't connect. I want to know why?

    Can't use iMessage due to "bad connection" I have full signal an WiFi. Can't use half my apps. Everything I have an use tells me to connect to iTunes just to use push notifications. I'm getting real sick of this of this an need help...quickly?

    Here's a qustion for you:
    I purchased music on my PC and I home share iTunes between my Mac and PC.  My Mac is authorized but every time I want to play the music I purchased on the PC via home sharing, it says the Mac is not authorized.  I confirm the account associated with it and all it will say on my MAC is that the computer is authorized, but it won't play the music lol. Is this due to DRM?

Maybe you are looking for

  • MIGO error while posting..!!!

    H Alli, Getting below error while posting in MIGO: "Account 413501 requires an assignment to a CO object" Regards, Amit

  • How do I transfer pfd files from mac to iPad?

    How do I transfer pfd files from mac to iPad, to read in the iPad app Adobe Reader?

  • Add fields to logical database selection screen

    Hello,    Is it posible to add a field in the default selection screen of a logical database.? I´m using ELM. In the default selection screen, only the lifnr and ekorg fields are shown. I want to show the matnr field, is it posible? Thank you!

  • Input-Enabled Query for Planning

    Hi, We have an issue in which the fields in this sheet are not able for input(WAD opens in display and not be edited), which were been edited previously , but not anymore.saimiliar situation is in dev, test and production. Thanks Sunil

  • Right-click funcionality not working in assessment mode. I NEED HELP!

    Hi - I've recently created a number of assessment recordings. The right-click function works as I'm recording as well as when preview the project and then after I publish it. However, when I give it to a colleague(s) to demo it, for some reason the a