I was working on a requirement few days back. Which involved deleting a bunch of ‘Actvity Records’ and creating history records somewhere else. Sounded simple enough and I thought just half hour and I should be back with my blog :)

But that was not to be :( . I got stuck with the task for next 4 hrs. Reason, whenever I tried to delete the records I used to get the following error:

“You do not have the ability to delete records on this screen or view”

After a little R&D I was able to isolate the root cause of the problem. It was the User Propertes defined on the ‘Action Business Component’ that resulted in that error. But you can face this error if

  • No Delete property is set to true for Applet,Business Component, MVL
  • User Properties are defined on that BC which are resulting in making the record read only

So,  I solved the problem by

  • Creating a copy of ‘Action BC’
  • Removing all the user properties defined
  • Adding that BC in BO
  • Then using that BC in script to delete the records

Hope this helps !!!!!!!!

OkAvarageGoodVery GoodExcellent (1 votes, average: 2 out of 5)
Loading ... Loading ...