Programmatically deleting task using the TaskService

Hi all,
I was trying to programmatically delete a task (logical delete) using the task service, but it states a security issue concernig the permitted actions of the user who creates the context. does anybody knows which is the recommended solution in order to handle this problem?
Kind regards,

If you authenticate as the admin user (weblogic) you should be able to perform the delete operation. The API allows you to authenticate as the admin in one context, then construct a user context on behalf of a normal user and act as that user. The context being used for the call must have the appropriate permissions to perform the delete.
Take a look at this post, it may be of some help:
Re: PAPI and weblogic security

Similar Messages

  • How to use a multiple boards (6321/6323) analogical acquisition task with simultaneous analogical generation task using the same boards (Labwindows CVI10)

    Subject : it seems impossible to run a multiple boards analogical acquisition task with one or several analogical generation task using the same boards.
    NI Configuration : Dev1 = Dev2 = 6321 boards
    Development environnement : LabWindows CVI 10
    Source code for analogical acquisitino task :
           DAQmxCreateTask("",&AIRecordingtaskHandle);
           DAQmxCreateAIVoltageChan(AIRecordingtaskHandle,chan,"",DAQmx_Val_NRSE,min,max,DAQmx_Val_Volts,NULL);
           DAQmxCfgSampClkTiming (AIRecordingtaskHandle, "", rate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan);
           DAQmxGetTaskAttribute(AIRecordingtaskHandle,DAQmx_Task_NumChans,&gNumChannels);
    Chan = "Dev1/ai0, Dev1/ai1, Dev1/ai2, Dev2/ai1"
    Source code for analogical generation taskS :
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC0));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC0, chan, "", min, max,DAQmx_Val_Volts, ""));  // chan vaut Dev1/ao0
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC1));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC1, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev1/ao1
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C2_DAC0));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C2_DAC0, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev2/ao0
    At the first DAQmxReadBinary call attempt, the system shows an error (see attached document) 
    What we understand about that error : it is impossible to run the two set of tasks (ai and ao) using ressources from both Dev1 and Dev2 in the set of tasks because it is not allowed to use the same Reference Clock for that.
    The question is : is there a way to to that without having that kind of message?
    We tried different combinations :
    - Using only one ao task (on Dev1/Dac0) : same error
    - Not using any ao task (only the ai task) : no error
    - configuring the ai task with only channel from Dev1 : no error 
    - Using "/Dev1/ai/SampleClock" as internal clock for the ai task and "/Devk/ao/SampleClock" for each ao task (k standing for "1" or "2" depending of the ao task we consider) : error
    Thanks a lot.
    Pièces jointes :
    MsgErreur NIDAQmx.JPG ‏38 KB

    doublon
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • MSSTV001 - Delegating tasks using the team viewer iview.

    We are setting up a proxy so that our highest level mangers will not have to do their own compensation planning through MSS.  We found the user exit MSSTV001 to use for this purpose.  Does anyone have experience in using this user exit?
    I am looking for examples of code entered into: EXIT_SAPLHRWPC_TO_REMOTE_001 and EXIT_SAPLHRWPC_TO_REMOTE_002.
    Any other helpful information is appreciated.  I already have a sheet from SAP Online help that gives me a few details on what to do.  It is called:  Delegating tasks using the team viewer iview.
    Points will be rewarded for any helpful answers.
    Thanks,
    Sara

    Hi Gabriel,
    Requirement 1
    Thanks. I did so. Using this I can see the OrgUnit. However, this is the OrgUnit of MSS user. It remains same through out the program. It is unlike pernr which changes as the user clicks on different Employees.
    My exact requirement is as below:
    User will click on Employee Selection drop down box. After that he will select "Employees from Organizational Structure". Here organization structure will be displayed. Now the user will expand Org Structure. I want to know the Org Unit of different Organization as the user will go on expanding the Org Structure using the buttons
    Requirement 2
    User will click on Employee Selection drop down box. After that he will select "Employees from Organizational Unit". Now we can see the Go button. I have to write some code on the button. Where I can find the code for the button. I spent lot of time. I am not able to find out the exact place where the view for the button is located.
    Please help.
    Regards,
    Gary

  • I was updating app and they froze and never finished the update and know I can't delete neither used the app, how can I resolve this?

    I was updating app and they froze and never finished the update and know I can’t delete neither used the app, how can I resolve this?

    Hi Franklin
    Thanks for your email. I already have done that and not resolve. I try in the iTunes to delete the app in the iPhone and then install again but that not resolve.
    Thanks for your help,
    Ricardo O. Nunes

  • [svn:bz-trunk] 21002: Clean up build. xml and remove unnecessary delete task in the jar target.

    Revision: 21002
    Revision: 21002
    Author:   [email protected]
    Date:     2011-03-31 09:47:04 -0700 (Thu, 31 Mar 2011)
    Log Message:
    Clean up build.xml and remove unnecessary delete task in the jar target. 
    Checkin tests passed.
    Modified Paths:
        blazeds/trunk/modules/core/build.xml
        blazeds/trunk/modules/proxy/build.xml
        blazeds/trunk/modules/remoting/build.xml

    Well obviously it is an Ant build.
    It looks to just compile/build a web application into a war so you can deploy it where you want to.
    You don't need to edit it every time you are making a new page. It should work for any generic struts web application laid out in the fashion it expects.
    Cheers,
    evnafets

  • Apple wireless keyboard won't let me delete without using the fn key.

    My apple wireless keyboard won't let me delete in indesign without using the fn key. Is there a key command that I accidentally hit that causes that or something? I've never had this happen before. It isn't happening in any other program, just indesign cs4. Has anyone had this happen and how do I fix it?

    I figured it out. My keyboard shortcut set in indesign was corrupt. I went back to the default set and created a new set and the delete key started working again.

  • How do I delete or remove Hotspotshield completely from Firefox? I already deleted it using the control panel programs & features function.

    I tried to delete Hotspot shield using the control panel function. Now it keeps showing up when ever I am using Firefox. I tried deleting the tool bar for it. But, it keeps coming back. it will show up on different accounts when I change pages. Like when I log onto the Telus account to pay bill.
    So how do I get this removed from my computer completely?

    Hi,
    Please see [http://www.anchorfree.com/support.php this] (the uninstall section towards the bottom).
    [http://hotspotshield.uservoice.com/forums/46095-hotspot-shield-support Support]
    You can also [https://support.mozilla.org/en-US/kb/update-firefox-latest-version update Firefox to the latest] and consider to [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox].
    [https://www.mozilla.org/en-US/firefox/new/ Firefox latest]

  • How can I recover a note that was accidentally deleted while using the app "Notes"?

    IiOS 8.1.3 on iPad 2 (iPad Air)
    using iPad 2. (IPad Air) with iOS 8.1.3. I was using the "Notes" app and inadvertently deleted a note.mhow can I recover it?

    You have to restore from a recent iTunes or iCloud backup.

  • Complete tasks using the outlook integration

    I left a "send email" pending created directly on the CRM, then a user sends an email using the outlook plugin and creates a new completed task with the same subject.
    Is possible to link both task?
    thanks

    Hayden,
    I don't think there are any documentation available for this task. So the answer would probably be no.
    Thanks,
    Gordon

  • Windows live mail keeps uploading deleted emails. using the HP Pavilion Slimline s5623w

    Emails that have been deleted months ago are continuously reloading to my inbox. I have the Norton anti virus running on my desktop and it is indicating that everything is fine. Not quite sure what to do. I haven't installed any new software to my computer.

    Hello queenbre2000,
    To clarify you are using the Windows mail application and not necessarily using Live mail from Microsoft?
    What email accounts are you using within Live Mail? Since the application supports many different email providers knowing your exact provider and how you have it configured is going to help with providing proper steps.
    So questions for you
    1. Clarify that you are using Windows Live Mail as in the application?
    1a. If yes, what email provider are you using within the application?
    1b. If no, what application are you using to get your Live Mail?
    2. Are you configured for POP or IMAP access?
    3. Are you running the latest version of the application that you are using?
    4. Do you have the latest Microsoft Windows Updates?
    5. Don't delete, instead manually move an item from the inbox to the trash by dragging and dropping, does it reappear in the inbox?
    6. If you view your email online through the website is the email showing in the inbox?
    Please post back clarifications to the questions.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Help. Deleted Quicktime using the Trash and I need to get it back!

    Hi,
    Quicktime was not playing .avi files so I though I'd delete it and reinstall it to clear up the problem. So I dragged Quicktime into the trash and emptied it. When I tried to reinstall it I got a message saying that Quicktime cannot be installed on this disk because Quicktime X is already present. I need to get Quicktime back, can anybody help me please?

    Extract the QuickTime X player from your Mac OS X 10.6 DVD and then run the combo updater for your Mac OS X version.
    If you want QuickTime 7, it's here.
    If you can't play a given AVI, install Perian. If you still can't play it, it probably can't be played in Mac OS X.
    (57456)

  • Follow up task without using the action profile

    Hi,
    Is it possible to create the follow up task without using the action profile? If so, please let me know how we can do that?
    as per the requirements, i have to the custom coding that will automatically create follow-on task triggered by status change on the all the transaction type. Please guide me how can we do that.
    Task details (task id, description), I'm reading it from the custom table.
    Thanks for your help.
    Regards,
    Vaibhav

    Thanks Naresh for the response.
    Not sure if I can use the CRMV_EVENT. Even I'm not aware how to use that. Let me tell what i am doing in the logic.
    - implementing the logic in the badi order_save (method - CHECK_BEFORE_SAVE)
    - get the header and item details using the FM CRM_ORDER_READ.
    - get the status of header / item from the output of CRM_ORDER_READ.
    - compare the status with the custom table (having info of hearder type, item type, status, tast id, task description etc)
    - if status is different, create the task using the details from the custom table.
    now i want to write the logic to implement the last step. Do we have any standard FM where I can pass the task ID and it will create the task? Please help.

  • I have tried to add a NEW GMAIL Account into Thunderbird and after i use the automatic configuration finder and Password confirmation, it does not display

    I tried to set up a NEW Gmail account in Thunderbird But it will not display eventhough it confirms that the configuration is correct and that the password is Valid. Please NOTE that i previously was able to set up the email account correctly in Thunderbird but was encountering some errors and i therefore deleted it using the Account Actions menu.
    I have repeated this action probably probably 5 or 6 times and I still cannot see the new email account in Thunderbird. I can only see my other Gmail Account
    Would appreciate someone sharing with me a step by step answer to help me fix this problem as I have no clue

    Sounds like the Google Less Secure Application situation. Go to gmail and read what they have to say about this.
    FYI: Deleting and reinstalling accounts or Thunderbird software is not the best way to solve problems. It usually never solves a thing and can cause more issues as you are seeing. It is best to troubleshoot what you have and fix those issues.

  • I deleted nodes with the web developer and the deletion has become permanent. How to undo?

    I was trying to remove all the "Recommended Pages" etc. garbage on the right-hand side of Facebook and got a little click happy with 'delete nodes' using the Web Dev tools - as cathartic as it was! :)
    Now it seems as though I have broken FB on Firefox (seems to work fine on IE, surprisingly) as pics seem to be missing and the left-hand menu as well - but, of course the stuff I was trying to rid myself of comes back just fine ... sigh.
    I've read that all changes are supposed to be temporary until you restart the browser but this hasn't helped at all and I did try unchecking the 'Use hardware acceleration when available' that I read somewhere else, to no avail.
    Any assistance that can be rendered would be very much appreciated.
    For the record, I've learned my lesson and won't futz around with this anymore! :)

    For a node deletion in the Inspector tool,revert that by reloading the page. If that isn't working for you, you could try Command+Shift+r to reload the page bypassing the cache.
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    HT > Profile Directory: Open Containing Folder
    http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    http://kb.mozillazine.org/Multiple_profile_files_created

  • I can no longer mass delete mail because the pop-up "delete" at the bottom of the screen has disappeared. How do I get that functionality back?

    I somehow lost the ability to mass delete mail using the "edit" and check off function. The "delete" option no longer pops up at the bottom of the screen. Has Apple done away with this option in the latest software update or what?

    look here how to back up:
    http://support.apple.com/kb/HT1766

Maybe you are looking for

  • First Generation ipad stuck on ios 5.1.1. I am not able to update to a newer version because it believes the Ipad is at its most update version.

    Hello all, My mother in law has recently acquired a new ipad and has given me her first generation ipad. Very excited! I have run into an issue though... The ipad is unable to update to the newest version of ios and is stuck on ios 5.1.1. Whether I p

  • Earpods with MacBook Pro

    Used EarPods with MacBook Pro, v. 10.6.8.  Worked fine, but when I disconnected them from the laptop, no sound would emit from the laptop speakers.  Went to System Preferences-Sound-Output, where the only outbput device listed was "Digital Output". A

  • E420R Unable to install Solaris 8, 9 or 10

    Hi everyone, Currently I just got hold of a Sun E420R server from a customer. The machine was able to boot but when I re-install the OS to a newer version Solaris 9 it start to give me problem. The machine is have the following error messages.. Pleas

  • How to & what to install to compile & run servlet programs

    Hi There, I want to know what software is the best suited in Java, for installation, by which i can compile and run my servlet programs. How to set the class path to run the servlet programs? to what file should my class path link?

  • Trial Version ... Getting started ?!

    I've just unstalled SAP NetWeaver 7.02 ABAP Trial Version SAP application server is Green But I can't log into the system I try : http://localhost:8000/sap/bc/gui/sap/its/webgui?sap-client=000 , and get : URL http://89.190.217.186:8000/sap/bc/gui/sap