Trying to change Opportunity SalesStage with WebServices Update

I have successfully updated a custom field in an opportunity, but when I try to update the SalesStage to "Closed/Won", I get the error: Cannot find entry ''Closed/Won'' in the bounded picklist for the field 'Sales Stage - Translation' in integration component 'Opportunity'(SBL-EAI-04401).
Closed/Won is a valid choice in the dropdown list, but I am wondering if I need to update with a value or object that is different that the display term.
Here is the C#/.Net code I use that references the opportunity.cs created from the WSDL for our schema.
WebServices.Opportunity.Opportunity webService = new WebServices.Opportunity.Opportunity();
// WebServices.Opportunity.Opportunity1 oppUpdate = queryOutput.ListOfOpportunity[0];
WebServices.Opportunity.OpportunityWS_OpportunityUpdate_Input updateInput = new WebServices.Opportunity.OpportunityWS_OpportunityUpdate_Input();
WebServices.Opportunity.Opportunity1 updateOpp = new WebServices.Opportunity.Opportunity1();
initializeStrings(updateOpp);
updateOpp.OpportunityId = opportunityID;
updateOpp.SalesStage = "Closed/Won";
updateInput.ListOfOpportunity = new WebServices.Opportunity.Opportunity1[] { updateOpp };
          WebServices.Opportunity.OpportunityWS_OpportunityUpdate_Output updateOutput = null;
          lock (requestLock) {
               prepRequest(webService);
               updateOutput = webService.OpportunityUpdate(updateInput);
               lastRequestEnd = DateTime.Now;
// I am not sure what comes back from this update query
          if (updateOutput != null && updateOutput.ListOfOpportunity != null && updateOutput.ListOfOpportunity.Length > 0)
               result = true;
I'd appreciate your help if you know what to do or have an example to share.

Thanks for your response.
We have 8 values of SalesStage defined. Stage1 through Stage 6 are custom stages added to the built-in Closed/Won and Closed Lost stages.
I think I see what you are saying is that if the SalesProcess and SalesProcessId are not set, the web service API does not know what picklist of SalesStage values to refer to. Is that right? I've changed my code to first read the opportunity and get the values in those 2 fields (SalesProcess and SalesProcessId), then set these values in the update record along with the SalesStage and run the update. I still get the same error that Closed/Won is not in the picklist for 'Sales Stage - Translation'. Is the 'Translation' an indication of the mapping to a sales process?
It appears that the SalesStageID also changes with each stage selected. Do I have to set that as well or will it be changed by the server when I change SalesStage? If so, I will have to do some debugging to find the values of the SalesStageID associated with each SalesStage.

Similar Messages

  • While trying to change a BOM with transaction CS02, a runtime error appears

    While trying to change a BOM with transaction CS02, a runtime error appears.
    In intial screen he entered material ,plant BOM usage and date valid from  after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
    Developer trace
    ABAP Program SAPLKED1_WRITE_CE4_BPS1                 .
    Source LKED1_WRITE_CE4_BPS1U01                  Line 30.
    Error Code SAPSQL_ARRAY_INSERT_DUPREC.
    Module  $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
    Function HandleRsqlErrors Line 775.
    RABAX: level LEV_RX_STDERR completed.
    RABAX: level LEV_RX_RFC_ERROR entered.
    RABAX: level LEV_RX_RFC_ERROR completed.
    RABAX: level LEV_RX_RFC_CLOSE entered.
    RABAX: level LEV_RX_RFC_CLOSE completed.
    RABAX: level LEV_RX_IMC_ERROR entered.
    RABAX: level LEV_RX_IMC_ERROR completed.
    RABAX: level LEV_RX_DATASET_CLOSE entered.
    RABAX: level LEV_RX_DATASET_CLOSE completed.
    RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    RABAX: level LEV_RX_ERROR_SAVE entered.
    RABAX: level LEV_RX_ERROR_SAVE completed.
    RABAX: level LEV_RX_ERROR_TPDA entered.
    RABAX: level LEV_RX_ERROR_TPDA completed.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    RABAX: level LEV_RX_END entered.
    RABAX: level LEV_RX_END completed.
    RABAX: end RX_RFC
    In sm21
    Perform rollback
    Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
         Short dump "090618 110101 donalda 11557 " generated
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     18.06.2009 at   11:01:01
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
    one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "RKE_WRITE_CE4__BPS1" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "RKE_WRITE_CE4__BPS1"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Use an ABAP/4 Open SQL array insert only if you are sure that none of
    the records passed already exists in the database.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
    "SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
    "RKE_WRITE_CE4__BPS1"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi ,
    you are getting beacuse u are trying to do mass update to database.
    Please check that below note are applicable to your system.
    Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
    Note 869534 - AFS MRP doesn't work properly with all BOM item categories
    Thanks Rishi Abrol

  • I give up: Trying to change to app with In App Purchase

    This should be such a simple process and procedure.
    I have an app priced at .99 in iTunes.
    I have been trying to change it to a free download, first 7 pages of app free preview, with an In App Purchase of .99 to view the rest of the app.
    Have followed all these instructions to the letter:
    http://www.adobe.com/devnet/digitalpublishingsuite/articles/free-article-preview.html
    iTunes rejects the IAP because they don't see the IAP after the 7th page.
    I have the first 7 pages of the app set as Free in the folio producer and the rest are marked as Protected. I update the folio with the status Public and Free.
    I assume the problem is that I have the app priced at .99 still in iTunes, but if I change it to free while waiting for Apple's approval it generates hundreds of downloads a day and I end up having to purchase another folio bundle. Not exactly ideal.
    I have gone through weeks of this with iTunes/Apple trying to get the IAP approved. It should be such a simple process/procedure but at this point I'm ready to give up and let my folio count run out and my Professional subscription expire.
    Unless anyone has experience with this problem and can offer some specific advice/solutions?
    Thanks!

    Thanks Bob
    Apologies for the confusion on terminology.
    The app is currently priced at .99
    Problem is, if I set it to free while I wait for Apple to approve the IAP, which has taken a minimum of 7 days the last three go arounds, so many folios are downloaded that I have to purchase another bundle. Which on the one hand is great that so many users want to use my app, but then again, it isn't exactly in my budget to be purchasing extra bundles of folios.
    But apparently that is the cost of doing business, I guess.
    I did have the app published as Public and Retail. The first 7 articles were set as Free, the rest of the articles set as Protected. I have selected the "Enable Article Preview" also.
    This resulted in the bug error message from Apple, which basically says there was no content available to download. This is the same folio that has been working fine, I just changed the settings to Pubic & Retail, etc. so can't imagine it is a real "bug" so to speak? Here's the message (the screen shot they attached was basically a blank screen):
    We found that your app exhibited one or more bugs, when reviewed on iPad running iOS 7.0.2, on both Wi-Fi and cellular networks, which is not in compliance with the App Store Review Guidelines.
    Specifically, your app launched to the attached screen. Not content was available.
    For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to:
    - include the complete details of your rejection issues
    - prepare any symbolicated crash logs, screenshots, and steps to reproduce the issues for when the DTS engineer follows up.
    For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.
    If you have difficulty reproducing this issue, please try testing the workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or users are seeing.
    Thanks for the feedback, much appreciated. Starting over yet again...

  • Have tried to change session restore after latest update

    First, I'm a very novice user when it comes to anything related to Firefox. I have basic understanding of my profile, but certainly can't get into any code.
    I've also looked at previous threads on this topic and have tried the solutions. Those have not worked. I have taken some screenshots to help describe what I have tried:
    I went to this profile folder. In it, I changed "sessionstore.js" to "sessionstore.old". I then went into several of the subfolders, "sessions", "sessionbackups", and "sessionstore-backups". Each one had files which were timestamped from before this morning. I copied them, then pasted in the folder shown in the image, renaming to "sessionstore.js". When I did this, I had firefox closed. Each time I reopened firefox, and restored previous session, the session which restored was the one I opened this morning. Is there something about this newest update which I need to do differently? Thanks

    The session had 4 differnet windows with many tabs. The session deleted immediately after the newest update of Firefox.
    And I don't have a lot of interest in going through my history to find all the tabs as they were opened over the course of a cpl weeks. I would open them, then go back for reference but not actually click on them.

  • Error when trying to controll mp3 player with webService

    Hi
    I have a system to controll some things in my house, and one of them is my soundsystem. I have a tablet that communicates with an server that do the acctual work.
    I found an mp3 player online with the source-code, and I want to controll it using webservices from the client. I stript it an added it to my system. I just want to have buttons on the client, and then the server to do the actual work.
    If I don't use WS, just make an object of the player, I can add music to it and play them.
    If I do the exact same thing, but it's the WS that gives the commands on the server side I get an ex.
    Unable to handle format: mpeglayer3, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 7000.0 frame rate, FrameSize=32768 bits
    Failed to realize: com.sun.media.PlaybackEngine@12b51d4
    Error: Unable to realize com.sun.media.PlaybackEngine@12b51d4
    I have tryed asking google about the format, and i found somethin about that it hade problems finding the codec. I can se the codec in my JMF Regisrty.
    I can find the "com.sun.media.PlaybackEngine" in the jmf.jar thats in my lib.
    I have installed jmf 2.1.1e.
    Server and client are run from the same pc.
    I have tryed from diferent pc, but it dident work.
    Anyone?

    Glypher wrote:
    I have tryed to run it without using web service, and it works perfectHuhh. I actually asked that question, positive that you would reply that it also failed in the desktop app. That is very odd.
    Maby the best thing is to move it yes. Can you do it, or tell me how I can do i.I am not so sure now, that that is the best move, since it seems the web service is playing some part in the problem.
    I'll leave it to your decision though. If you want it moved, surf on over to the [latest Report Abuse thread|http://forums.sun.com/thread.jspa?threadID=5422989&tstart=0] and ask the mods to move the thread to JMF. Typically that thread is for reporting abuse, but it is also good for getting threads moved, since the community moderators keep an eye on it.

  • Trying to use Message Signing with Webservices and getting exception!

    Here is the exception I'm getting....
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    Detail:
    null; nested exception is:
         javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    Detail:
    null; nested exception is:
         javax.xml.rpc.soap.SOAPFaultException: [Security:090377]Identity Assertion Failed, weblogic.security.spi.IdentityAssertionException: [Security:090245]No mapping for Identity User Name
    I followed step by step the example given on the Weblogic "edocs" pages, but I am at a loss as to what to put on the Identity Asserter Detail screen under "Default User Name Mapper Attribute Type" and "Default User Name Mapper Attribute Delimiter".
    I'm using the example code you can find at the following URL - http://e-docs.bea.com/wls/docs81/webserv/security.html#1061856
    I'm creating my client key pair as specified with a keyname of client_key and password of client_key_password.
    I'm also creating a user in the Admin Console called auth_user with a password of auth_user_password.
    HELP!!!!!

    The error message means you haven't configured the identity mapping between your client cert and a WLS user.
    Here is the WLST script I used in my dev2dev sample(https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=S18)
    rlm = cmo.getSecurityConfiguration().getDefaultRealm()
    ia = rlm.lookupAuthenticationProvider("DefaultIdentityAsserter")
    activeTypesValue = array(["X.509"],java.lang.String)
    ia.setActiveTypes(activeTypesValue)
    ia.setDefaultUserNameMapperAttributeType('CN');
    ia.setUseDefaultUserNameMapper(Boolean('true'));
    So I add the X.509 to the ActiveTypes of IdentityAsserter, then I choose the "CN" as the DefaultUserNameMapperAttributeType, finally enable UseDefaultUserNameMapper.

  • Working with FOR UPDATE

    Hi,
    i have 2 session(A, B) and trying to execute sql statement with For update clause
    Session A
    select * from emp where empid in (10) for update nowait;
    Session B
    select * from emp where empid in (10, 20) for update nowait;
    my question is after executing select statement in sessin B will oracle locks
    empid =20 or it will ignore the lock as part of it (empid=10) is already locked by
    session A.
    Can anyone plz help me in this..
    Rds,
    Naga

    Why not try it out?:
    Session A:
    SQL> select empno,ename from emp where empno in (7788) for update nowait;
         EMPNO ENAME
          7788 SCOTTSession B:
    SQL> select * from emp where empno in (7788,7900) for update nowait;
    select * from emp where empno in (7788,7900) for update nowait
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specifiedSesson A again:
    SQL> select empno,ename from emp where empno in (7900) for update nowait;
         EMPNO ENAME
          7900 JAMES

  • Steps to build Datastore with webservices in DataServices

    Hello gurus,
    i tried to build a  Datastore with Webservices but it did not work.
    Could you please give the steps to follow or a document which explains the steps to be done?
    Thank you in advance.
    Pat

    to use a webService you need to create a Webservice Datastore and use the WSDL to import the operation (as functions in Datastore) that it has and then call that function in a Query tansform to send the XML input and get the response
    what is the error you get and when ?

  • I can't change about credit card for update and download

    I would like to update and download , right now i have problem , can't change credit card for buy item , app., and can't update and download, please help me  or How do i do?

    If you tried to change through the oral account updating and it is not working, try going to the store support staff at http://www.apple.com/emea/support/itunes/contact.html for help.

  • Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    I guess I will wrap this up. I have abandoned iPhoto and viewing my Photo Streams using it and moved to Adobe products (Bridge + PS). So that's that.

  • Please help! I am trying to change my Apple Id that used to be my mother to Mine- Every time i have it changed and i go and try and do an update it continues to ask for her old password. I really need help with this!

    Please help! I am trying to change my Apple Id that used to be my mother to Mine- Every time i have it changed and i go and try and do an update it continues to ask for her old password. I really need help with this!

    Phil0124 wrote:
    Apps downloaded with an Apple ID are forever tied to that Apple ID and will always require it to update.
    The only way around this is to delete the apps that require the other Apple ID and download them again with yours.
    Or simply log out of iTunes & App stores then log in with updated AppleID.

  • What would cause imovie to keep quitting.  Lately it kept doing it when i was trying to change the text theme on a clip.  I just updated to imovie 11.  I have a macbook pro with OSX 10.6.8

    imovie has been quitting unexpectedly lately.....the latest was when I was trying to change the text theme on a clip. I have two external drives for my events and projects. 
    Also does imovie 11 only let you use the comic book transitions when you set that as your project theme?

    imovie has been quitting unexpectedly lately.....the latest was when I was trying to change the text theme on a clip. I have two external drives for my events and projects. 
    Also does imovie 11 only let you use the comic book transitions when you set that as your project theme?

  • HT201303 I tried to change my email address on the apple ID but now when I try to buy an app or film it still comes up with my old email address and won't accept  my password to buy anything. My old email address is no longer in use  and can not be access

    I tried to change my email address ID , but now when I try to buy an app or music it still shows my old email address  and won't accept my password which I did not change. What can I do as I can't download anything ?

    What id shows in Settings > iTunes & App Store ? If it's the old one then tap on it and log out of it and then log in with the updated version

  • HT5621 I have tried to changed my Apple ID and every time I try to use the new Apple ID it won't let me because when i try to update an app the old ID comes up to sign in.  I deleted that account so it will not let me use my new one.

    I have tried to changed my Apple ID and every time I try to use the new Apple ID it won't let me because when i try to update an app the old ID comes up to sign in.  I deleted that account so it will not let me use my new one.

    Content and Apple IDs -
    Content is forever tied to the Apple ID that bought it. Apple does not transfer content from one Apple Id to another. Apple does not merge Apple IDs. You will never be able to access your content bought with another Apple ID with a new ID.

  • Since downloading ios8 to my I pad mini I am unable to sync movies, however I can sync them on my I phone 5s with same update? How can I change this?

    Since downloading ios8 to my I pad mini I am unable to sync movies, however I can sync them on my I phone 5s with same update? How can I change this?

    Thanks - that helped. But when I tried to sync all my photo folders to the I pad 2, I tunes would add some but not all of the ones that were marked to sync, end the sync, then the I pad 2 would hang with the wheel turning, saying it was still syncing photos, and it would not end and the remaining folders of photos never appeared. I finally had to sync and re-sync over and over by adding one folder of photos at a time, then another and another.

Maybe you are looking for

  • Problems with pdf files on OSX10.9

    since updating I cannot save files in pdf format to desktop cloud or evernote also cannot save scans from HP 4700 irritating and apparently no fix any help out there?

  • Animation slides skip content in published flash

    Dear helpers and experts, I may be new to Captivate, but have worked with all its predecessors... My simple demonstration consists of 6 slides: a text slide; an animation slide built from an avi file (123 sec); a text slide; an animation slide built

  • Convert VHS tape to a DVD format??

    How do I save my family home movies (VHS) to a DVD? In broad terms what hardware and software could make this possible?

  • Query: Open Item Management

    Dear All, I have made posting in General Ledger Account which was not ticked as Open Item Management. But now I want it to be as Open item management. I heard of some program that could do that. Please anyone suggest me on this. Thanks in Advance San

  • Query to find the number of main meter and its corresponding sub meter

    Hi Expert, I need to build a query to derieve the main meter & it corresponding sub meter in SAP system Please could you let me the table which i should join