Breaking news from around the world
Get the Bing + MSN extension
Check out the latest Sales updates!Learn about the key capabilities and features of Dynamics 365 Sales and experience some of the new features.
Download overview guide | Watch Sales video
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I have written a plugin that calculates a discount structure when a product is added to an opportunity.
This works as expected until you add a bundle. At that points an error is thrown with the cryptic code -2146435063.
If I switch the Plugin to asynchronous execution there is no error and the Bundle product adds without a discount structure again as expected. However I want the plugin to execute synchronously so the user doesn't have to reload the page to see the discount.
I suspect the error is related to the way bundle products are added but I don't know what the error is or how to fix it.
Anyone got any ideas here?
That's not a documented error code, so there's nothing useful to go on. It may be that the error is specific to the fields that you update, so you could try removing fields from your update, to narrow down what causes the error.
Also, what stage is the synchronous plugin registered on ? If it's one of the pre-stages, try changing it to the other pre-stage, as there are a few subtle differences between them
Can you share the error log
I fixed it by not doing an update if the opp product if the parentbundleid contained data.
Business Applications communities