Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
0 Kudos

SLX: Put complete activity in "rollbackable" transaction

Status: New
by Bronze Super Contributor nrice on ‎12-12-2012 01:20 PM

Added a standardid to both activity and history.  Created a Child M:1 relationship on each.


Activity insert/edit works fine.


Complete activity fails because the code attempts to copy the new standardid field instead of the object.  


Sage.Platform.DynamicMethod.DynamicMethodException: An exception occurred executing the dynamic method Activity.Complete. ---> System.IndexOutOfRangeException: Invalid index 29 for this OleDbParameterCollection with Count=29.


I rewrote my code so that I did not need the History relationship.  The problem I noticed while running SLX profiler is that the activity is ultimately deleted before history is inserted with no code to rollback the delete if something fails along the way.  This is very very bad.  This causes dataloss.


Either insert the History record prior to deleting activity or come up with a method to rollback completing activity if something fails. 


We want to hear your cool ideas for enhancing Saleslogix products and services. So add your own ideas or kudo (vote) on the ideas of others here! Watch the most valuable bubble to the top!

I have an idea! How do I get started?

Read our submission guidelines.

Search for your idea. If you don't see it, submit a new one!

Provide feedback on the ideas of others by voting with kudos and adding comments.
For more information about using ideas, read this thread.

Track your ideas and those you like. Once you've posted or kudoed and idea, subscribe to be notified via email of the latest updates to the idea. From within the idea, click "Idea Options" which appears above the idea title and choose, "Subscribe to this idea".

Be sure to check back from time to time to see new ideas and status updates!

Here is a quick list of the recent ideas for speedy browsing!