I downloaded Microsoft's Employee Training Schedule and Materials template and installed it. Everything works as I need it to except for one bug, which seems to be well documented. When you register for a course the amount of filled seats increases by 1. When you unregister, it should decrease by 1 but doesn't.
I followed the workaround http://paulgalvinsoldblog.wordpress.com/2007/10/11/employee-training-schedule-and-materials-template-decrement-bug-in-the-template/ to try to fix it, but it doesn't decrement the seats either. I also tried a slightly different workaround, but still no joy.
Anyone have any ideas?
EDIT: Ok I put a few log messages into the workflow to determine the problem. Here is the workflow as it looks now:
And how the history reports it:
So You can see that
Variable:calc is originally set to 0. And
Courses:Filled Seats doesn't seem to be getting set. So I can only assume this is a problem with the lookup. This lookup for
Courses:Filled Seats looks like:
And the lookup for
Registrations:Course ID looks like:
Is there anything there that people can see that might be causing the problem?