Is the Goto Statement in Debugging a security risk?

Hi,
In debugging ABAP code we have  the option to jump to a certain statement via the GOTO STATEMENT from the menu.
Is there any security risk in doing this.
It is now controlled in the 02 Activity of the authorization object, which was formerly only used for changing values with the debugger.

It is often misunderstood as forward and backward navigation instead of stepping in the debugger and always checked actvt 02 - but in earlier releases was not as obvious to find and did not write a system log message. You can now also right-click the location to GOTO.
But it is just as dangerous if not more so that changing a variable in the debugger and more than just display. Reason is that between the current code line and the code line "jumped to", the code in between is not executed at all...
So you can jump over authority-checks instead of having to change the sy-subrc result. Changes can be made without the calls to change documents and logs being made. All other forms of validations or checks can be jumped over, including statements which were created not to be able to debug them (such as kernel calls) then you don't need to be able to change anything in the debugger if you can steer wide of it.
It is functionally equivalent to being able to create a program and execute it, regardless of your other authorizations, developer key or even if the system is closed for changes.
So... very naughty. Only for developers in development systems and even in emergency situations it should not really be used in production either.
Cheers,
Julius

Similar Messages

  • How to view the SQL statement generated during execution of the BW Query?

    Dear Experts,
    I am trying to retrieve data in a SAP BW Query from a Non-SAP system.
    I think if I am able to see the complete SQL statement that was generated when I executed the BW Query, I may be able to use it to retrieve the data.
    Do you know how and where I can see the SQL statement of a BW Query's SQL statement?
    I tried RSRT options to execute the Query but still could not find the SQL statement.
    Thanks in advance.
    Regards,
    Shunhui.

    hi
    goto rsrt
    give your query name
    select execute + debug option
    in the debug option under data manager check the check box "display SQL/BIA query
    selcet continue
    you can see the sql statement
    thanq

  • GOTO Statement

    Hi,
    Is this code structure with goto statement ok?
    IF SUM_CNT = 0 THEN
    GOTO ADD_DATA_T1;
    SELECT ID INTO TRANS_ID FROM TABLE1 WHERE ID = MYID;
    GOTO ADD_DATA_T2;
    ELSE
    --MORE CODE GOES HERE
    --IF CONDITION
    GOTO ADD_DATA_T1;
    END IF;
    <<ADD_DATA_1>>
    INSERT STATEMENT HERE;
    <<ADD_DATA_T2>>
    INSERT STATEMENT HERE;
    would like to know because when I debug this:
    after first GOTO statement (ADD_DATA_T1), it immediately goes to the next goto (ADD_DATA_T2). It is still suppose to go back and select id from table1 before going to the next goto.
    If this is not allowed, then can you please tell me how to call a block of code so I will not be writing the same insert statement in another lines.
    Im sorry if this is stupid, but Im just learning pl/sql now.
    Thank you so much for your help.
    Edited by: mexyz on Feb 26, 2010 7:33 AM

    Hi,
    Here's the most important thing to learn about GOTO: Don't use it.
    Invest your time in learning other things about PL/SQL; things that you will actually use later.
    I've been using Oracle for over 20 years. I have never even been tempted to use GOTO, and I have never seen any serious code that used GOTO. The only places I have seen GOTO used in PL/SQL are in textbooks and in forums like this.
    I'm not sure what the code you posted is supposed to be doing.
    To make it easier to talk about that code, add calls to put_line everywhere:
    dbms_output.put_line ('Point A');
    IF SUM_CNT = 0 THEN
            dbms_output.put_line ('Point B');
            GOTO ADD_DATA_T1;
            dbms_output.put_line ('Point C');
            SELECT ID INTO TRANS_ID FROM TABLE1 WHERE ID = MYID;
            dbms_output.put_line ('Point D');
            GOTO ADD_DATA_T2;
            dbms_output.put_line ('Point E');
    ELSE
            dbms_output.put_line ('Point F');
         --MORE CODE GOES HERE
         --IF CONDITION
         GOTO ADD_DATA_T1;
            dbms_output.put_line ('Point G');
    END IF;
    dbms_output.put_line ('Point H');
    <<ADD_DATA_1>>
    INSERT STATEMENT HERE;
    dbms_output.put_line ('Point I');
    <<ADD_DATA_T2>>
    INSERT STATEMENT HERE;
    dbms_output.put_line ('Point J');and then post a question like
    "When sum_cnt=0, I want the output to be 'Point A, Point B, Point I, Point C', but
    when sum_cnt!=0, I want the output to be 'Point A, Point F, Point G', Point I, Point J' How can I do that?"
    Someone will show you a good way to do it using IF, or procedures, or EXCEPTION, or some other reasonable way.

  • Is there a goto statement in java??

    is ther a goto statement in java
    if yes how is it
    and if no wat we use instead of it , if we want to redirect to control flow??
    thanking you
    rose!!!

    But he did not say it with three exclamation
    points!!!
    yes, I'm trying to restrict my usage of the exclamation mark as part of my attempts to be more even tempered (which aren't succeeding that well, but I may just need more practice).

  • Error executing a stored procedure from SSIS using the MERGE statement between databases

    Good morning,
    I'm trying to execute from SSIS a stored procedure that compares the content of two tables on different databases in the same server and updates one of them. To perform this action, I've created a stored procedure in the destination database and I'm
    comparing the data between tables with the MERGE statement. When I execute the procedure on the destination database the error that I obtain is:
    "Msg 916, Level 14, State 1, Procedure RefreshDestinationTable, Line 13
    The server principal "XXXX" is not able to access the database "XXXX" under the current security context."
    Some things to take in account:
    1. I've created a temporary table on the same destination database to check if the problem was on the MERGE statement and it works fine.
    2. I've created the procedure with the option "WITH EXECUTE AS DBO".
    I've read that it can be a problem of permissions but I don't know if I'm executing the procedure from SSIS to which user/login I should give permissions and which.
    Could you give me some tip to continue investigating how to solve the problem?
    Thank you,
    Virgilio

    Read Erland's article http://www.sommarskog.se/grantperm.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

  • My Iphone 4  will not let me send an email or reply to an email.  The message states it has put it in my outbox  and it is rejected by the server because it does not allow relaying???   I can't seem to find an answer to fix this.  Any help?

    My Iphone 4 will not let me send an email or reply to an email.  The message states that it has put my email in my outbox and that my server does not allow for relaying.   Can anyone help with this?    I have read some other answers and nothing has worked   Thanks

    Your email provider has blocked the standard mail port 25 for sending emails and is requiring a different port. This is to avoid mail relays that use mail clients to send spam. You need to find the port that is used by your provider for sending outgoing mail. Then change the settings in your email account on your phone to match the port. You will also have to provide some security credentials for the account.
    You can also try deleting the email account from your iphone, and the adding the email account back as this will many times set the correct port for sending emails.
    You could also do a Google search on the the settings for your device with your email provider. That will provide you with the proper settings.

  • How to get Java source in applet stack trace to debug Java security manager

    How can I get line numbers for Java source in stack traces for my applet? I'm having a problem with my code-signing certificate. On one of my applets, I consistently get a NullPointerException inside the security dialog code in the JDK. As a result, either the "trust this applet" dialog never appears, or even though it appears, it defaults to untrusted because of the exception, so I can't access any local files (and that's a bit of a problem for an applet whose sole purpose is to upload files to our server). I unzipped src.zip in my JDK directory and set the debug flag for my Ant <javac> task as well as set debuglevel to "lines." Anything else? Here's the trace that I'm getting so far. See that after the NullPointerException it assumes that the user has denied permission. If I could read this Java source maybe I could figure out why it hates my code-signing certificate (jarsigner, BTW, never complains when I verify my jar).
    security: Blacklist file not found or revocation check is disabled
    security: Accessing keys and certificate in Mozilla user profile: null
    security: Loading Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from D:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loaded Deployment certificates from C:\Users\Rich\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    security: Checking if certificate is in Deployment session certificate store
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.X509Util.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.isTrustedByTrustDecider(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$700(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: User has denied the priviledges to the code
    security: Adding certificate in Deployment denied certificate store
    security: Added certificate in Deployment denied certificate store
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Start to check whether root CA is replaced
    security: The root CA has been replaced
    security: No timestamping info available
    security: Found jurisdiction list file
    security: Start checking trusted extension for this certificate
    security: Start comparing to jurisdiction list with this certificate
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: This OCSP End Entity validation is disabled
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment denied certificate store

    Rats, now that I look at the stack trace and compare to what's in the JDK srce.zip, it appears that most of this code is not part of the JDK source. I don't see any com/sun/deploy, etc.

  • I;m no longer able to use the Penn State ANGEL system (I teach on line) for my email and intead get messages about "script" problems.

    Question
    I'm no longer able to use the Penn State ANGEL system (I teach on line) for my email and instead get messages about "script" problems

    I have asked a moderator to provide assistance, they will post an invite on this thread.
    They are the only BT employees on this forum, and are a UK based team of people, who take personal ownership of your problem.
    Once you get a reply, make sure that you are logged into the forum, then click on their name, you will see a screen like this. Click on the link as shown below.
    Please do not send them a personal message, as they may not be on duty for a long time, and your message will not be tracked properly.
    For your own security, do not post any personal details, on this forum. That includes any tracking number you are give.
    They will respond either by phone or e-mail within 5-6 working days.
    Please use the tracked e-mail, to reply, not via the forum. Thanks
    This is the form you should see when you click on the link. If you do not see this form, then you have selected the wrong link.
    When you submit the form, you will receive an enquiry number, so please keep a note of it
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Why do the visited states of my hyperlinks don't work?

    I have been trying for days and I can't figure it out with tutorials, teachers, google search and trail and error.
    My hyperlinks will NOT show a visited state. I set up hyperlink styles, I named them, I applied them to the different text links in my copy and roll over works fine, they link as they are supposed to, but I can't get the visited state to appear. When I return back to the page, they are still all black.
    Since this is for a end of the semester project and my entire project kinda builds on these states to work, without the visited states, the "map/timeline" I have created will not make any sense.
    Is the anybody that knows what I am doing wrong and can give me a hint on what I should try?
    Thanks!

    I understood that the styles can only be appied to text, that is why I used actual text bullets (found in most fonts) that are type and not an image. Therefore I thought that the link styles should apply to them just like any other text would be.
    By now I have tried applying the style to the text frame,... to the selected character itself,...I have tried in different orders in which I first applied the link, then the style, or first the style and then the link - I have tried it with deselecting in between and keeping it selected through out...I have used regular text, letters and numbers, I have even created an entirely new file without any editing to see if my file might have problems. Nothing changed the fact that the visited link did not change the color. I understand the security issues you have mentioned before, but just for an example, reddit is still using the visited state. There has got to be a way, just not one I will be able to find before I have to have this done.
    Anyway, I certainly appreciate your feedback and I am looking forward in using Muse in the future. Even though it has quiet a few limitations, since this is just the beginning, there is a lot of promise for the future.
    Would you mind looking at my other 2 questions?
    ...is there a dimension limit to how long I can make a horizontally scrollable webpage? For the ipad the image resolution is pretty big and so lining up 8-9 full background images back-to-back next to each other makes for a huge file. I tried it and started to have some issues with jumping text boxes. Could that be because of the file size?
    Can I use page anchors to link from child pages back to a certain spot on the main "home", or are anchor points just for the navigation within one contained long page?
    Jez

  • How do I return my MB Pro to it's "out of the box" state?

    I have a MB Pro 15". I just got a new one yesterday, and my new co-worker will be getting this one. There is nothing we need to keep, so a backup won't be necessary. How do I go about deleting/reseting everything to it's original out-of-the box state, and make his the new admin, etc?
    Thanks!

    Start up from your install disc, go to Disk Utility and select the disk and click erase - to securely erase data click Security Options and Erase Free Space which will entirely wipe your disk, overwriting it with zeros so that no data is recoverable. 
    Restoring your computer’s software

  • The update operation is not allowed in the current state of the request

    When users have logged a request through the service manager 2012 portal and they go back in to add user input they sometimes receive a message that says " The update operation is not allowed in the current state of the request." The state of the
    request has not changed it is still Active and has not breached its service level .
    I can't seem to find any information about this error and don't know how to troubleshoot it. Any help and advice would be appreciated.
    Thanks
    Sarah

    ok, so they're adding user comments after creating the service request. looks like this:
    the first thing to check is that the user is added to the default, un-scoped "End User" security role, or the custom end user security role they are added to has a scope that includes all work items. The "user input" field adds a user comment related
    to the SR, so the ability to create user comments is required to use this field.

  • Failed to get the Availability State on server Distriubtionpoint1 for role SMS Distribution Point

    Distriubtionpoint1-- Server share distribution point
    Distriubtionpoint1-- Acting as site system role (DP)
    Distriubtionpoint1--attached under the primary PR0 (Primary server0)
    Primary server0-- reporting to CS0 (central site 0)
    Distriubtionpoint1-- Windows 2008 sp1 r2 standard
    Infrastructure details:-
    =============
    Distriubtionpoint1 located in different domain with one way trust.
    1) Check ping status with FQDN from both domain and it is success.
    2) Check port 135, 445, 80,443 through telnet from both domain and success.
    3) Primary Server0 account is member of the local admin group on Distriubtionpoint1.
    4) Check the PR0-SCCM-DP$ folder NTFS & Share permission
    Share permission
    a) everyone & local admin group has full control
    Security permission
    a) System has full permission
    b) user has read & exec
    4) Local admin full
    Sitestat.log error message:
    ---->: Failed to get the Availability State on server
    Distriubtionpoint1 for role SMS Distribution Point. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:15 PM 952 (0x03B8)
    ---->: Now polling via NAL for SiteObject "["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\" SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:15 PM 952 (0x03B8)
    for ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\, no connection account is available SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:15 PM 952 (0x03B8)
    ---->: The NAL path ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\ is currently not accessible. SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:18 PM 952 (0x03B8)
    Info>: Unable to get available space for the Site Object ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\ SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:18 PM 952 (0x03B8)
    STATMSG: ID=4701 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_SITE_SYSTEM_STATUS_SUMMARIZER" SYS=Distriubtionpoint1 SITE=PR0 PID=4112 TID=952 GMTDATE=Wed Apr 23 01:00:18.002
    2014 ISTR0="\\Distriubtionpoint1\PR0-SCCM-DP$" ISTR1="\\Distriubtionpoint1\PR0-SCCM-DP$" ISTR2="2014 04 4 17 04 31 31 000" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8=""
    ISTR9="" NUMATTRS=0 SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:18 PM 952 (0x03B8)
    for ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\, no connection account is available SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:18 PM 952 (0x03B8)
    ---->: GetOperationsManagementData failed to connect to ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\; error
    = 5. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:20 PM 952 (0x03B8)

    I have tried to access the server share DP from the primary server by using my user
    credential. Yes I can able to access the share.
    But when I use the system credential to access the share received an error message as shown in below screenshot
    Hence i have provided the share and ntfs permission administrators, system, everyone,
    primary server account with full control on both tab. but still i am receiving error message.
    :\temp>whoami
    US\prasath
    c:\temp>dir \\PrimaryServer1\SCCM-DP$
    Volume in drive \\PrimaryServer1\SCCM-DP$ is Data
    Volume Serial Number is 22F0-661B
    Directory of \\PrimaryServer1\SCCM-DP$03/17/2014
    03:33 PM <DIR> .03/17/2014 03:33 PM <DIR> .
    04/01/2014 08:04 AM <DIR> SMSPKG
    0 File(s) 0 bytes
    3 Dir(s) 514,625,064,960 bytes free
    ===========================================
    C:\Windows\system32>whoami
    nt authority\system
    C:\Windows\system32>dir
    \\PrimaryServer1\SCCM-DP$
    Access is denied.

  • Adding an "IMAQ Image.ctl" to the "Display State.ctl" of an XControl prevents LabVIEW from creating a probe of "Display State.ctl"

    I am working on an extended IMAQ Display control using LabVIEWs XControl capabilities.
    I need a copy of the original image passed to add some overlays which must not affect the original image. To achieve this I am creating a backup image in the "Init.vi" and deleting it in the "Uninit.vi". I am storing the reference of this image in the "Display State.ctl" which is part of every XControl.
    As soon as I am adding an "IMAQ Image.ctl" to the Display State cluster, it is no longer possible to generate a probe of the Display State cluster for debugging purposses. I am always getting the message: "Failed to load or create probe."
    Deleting the "IMAQ Image.ctl" from the cluster makes the probe working again.
    Is it a bug or am I doing something wrong?
    I am working with LabVIEW 8.5 and Vision 8.5.
    Regards
    Ingo Bartsch

    Hello Mr. Bartsch,
    is it possible for you to post a small example to reproduce the behaviour? It would be helpful to get a description in which way you use the typedef files.
    I found a example/knowledge base where some informations were included to XControl and LV but not with Vision.
    http://digital.ni.com/public.nsf/allkb/1DC1ADD2A136DA298625712C00635758?OpenDocument
    Best wishes
    Jan Kniewasser
    Jan Kniewasser | Applications Engineer | Tel.: +49 89 7413130 | Fax: +49 89 7146035

  • My stolen 5S (T-Mobile) is blacklisted by insurance company, can someone use the phone outside of the United States?

    Can someone use it outside of the United States?

    Just like wjosten said, Change the Password for your AppleID.
    Go to appleid.apple.com and sign in.
    Click on Security and Password. It'll ask you two security questions that you orginal answered.
    On the next page is where you can change the password, change it.
    Now go to icloud.com and sign in, with the new password of course.
    Go to Find My iPhone. Click on the iPhone 5s, even if it's off line.
    Click on Lost Mode and enter a new 4 digit password. One that they won't be able to guess.
    Now it's a paper weight.
    KOT

  • WCF Service update UPS. Operation is not valid due to the current state of the object.

    I try import custom data to custom user properties from my own wcf service (on sharepoint server machine), but i got
    Message "Operation is not valid due to the current state of the object. "
    on line
    userProfile[PropertyConstants.Department].Value = "SDDDD";
    Why i cant modify property value?
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite("http://portal.local"))
    SPServiceContext serviceContext = SPServiceContext.GetContext(site);
    using (var web = site.OpenWeb())
    Debug.WriteLine(web.CurrentUser); //Here AppPoolAccount user of current wcf service
    Debug.WriteLine(WindowsIdentity.GetCurrent().Name); //Here too AppPoolAccount user of current wcf service
    UserProfileManager userProfileMgr = new UserProfileManager(serviceContext);
    ProfilePropertyManager profilePropMgr = new UserProfileConfigManager(serviceContext).ProfilePropertyManager;
    ProfileSubtypePropertyManager subtypePropMgr = profilePropMgr.GetProfileSubtypeProperties("UserProfile");
    UserProfile userProfile = userProfileMgr.GetUserProfile(accountName);
    userProfile[PropertyConstants.Department].Value = "SDDDD";
    userProfile.Commit();
    My service running under domain\SPSvcAcc what have full permissions on UPS service, it's management account and UPS admin with full rights.
    If i create console app with identical code and run it under SPSvcAcc account it working without problems
    What i do wrong?

    Hi,
    pls seee if you can add threading like this below to solve the pbm
    https://social.technet.microsoft.com/Forums/office/en-US/b6d6f85c-e12b-4540-a821-690e296b7b56/operation-is-not-valid-due-to-the-current-state-of-the-object-exception-when-activating-a?forum=sharepointdevelopmentprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • HT1414 how do i syn with my apple computer i had purchased it in dec and i use a lap top and the name is there it won,t let me

    we bought this new air  mini pad i used a very old lap top now i trying to get it to work on my apple desk top and it wants the other i so fustrated our son tryed no luck and i am trying for hours nothing on the  air works only the mail and face book

  • PO awaiting approval - even if it is approved

    the PO was still in awaiting approval but it is already approved. I ran the PO at SE37 BBP_PD_PO_TRANSFER_EXEC & BBP_PD_PO_TRANSFER_EXEC_V2 but it is still on awaitng approval status. There's no error appearing at the application monitor.

  • After 10.6.7 can't get desktop background to display

    This problem is similar to Linc Davis problem solved in this thread: https://discussions.apple.com/thread/2795229 In that thread I write: "I tried the [] from Linc Davis and it didn't work for me. I have a MBP bought in may 2010 i Sweden which is whe

  • Improve the performance of the code

    Hi All, Just check the below report and give some hits to improve the performance of the report.   LOOP AT WBS_TAB.     CLEAR: HOLD_PO_NBR,                                                HOLD_PO_LINE.                                        SELECT * F

  • IRecruitment and Apple Safari doesn't display Job Description information

    Hi, We are a very large Mac OS X installed user base of eBusiness and have found an issue with iRecruitment rendering on Mac OS X with the Safari web browser. Going to iRecruitment > Jobs: Available Jobs > Vacancy ID should render: Job Title Organiza