New Desktop - Cannot Change Workflow State (Cannot Add / Remove Field)

Hi All, reporting a bug (or at least an infuriating difference!) between classic and new desktop, reporting this here as well as through our partner as it this sometimes seems to be a more effective path of reporting bugs that actually make it through to the necessary level of support!

I have a class called "Budget" which has a property "Total Value" - this property is set through a VAF script that does updates to various properties as part of event handlers, in New Desktop, when I try to move the budget to a new workflow state I receive an error:

Access denied.
You are not allowed to add, modify, or remove the property "Total Value".

However, if I revert to classic desktop and use the same workflow state transition the change occurs with no problem at all.

The odd thing is that the behaviour is inconsistent - if I create a new "Budget" and send it through the same state transition it occurs without any issue. I would love to help chase down this bug, as the VAF extension (and state transitions) are critical to us, but I can't see any more valuable error information available through new desktop!

  • Intermittent was a poor choice of words - I meant it does not happen for ALL objects, but for a given object it is fully reproducible. 

    26.1.15632.8 for both client and server.

    Few more details if they help:

    the object has a property “total value” attached to it (it’s a default property). The property has no users set to be able to write to it (not “deny”, but nobody has permission to write). The workflow state transition I’m performing (from “Approved” to “Closed” doesn’t perform any action (neither workflow state has any script to execute). The value is only ever written by an event handler which runs on “BeforeCheckInChanges”.

    Inside the VAF function it will set the “Total Value”, it uses  “startrequirecheckedout” and “endrequirecheckedout” (because the same code runs on multiple triggers). Within new desktop for a given object (ID124 if I need to find it for you!) it will always error, same object in classic desktop doesn’t have any issues.

  • Might you be able to share a small set of code that reproduces the problem with me?  I anticipate your code is probably quite complex, but if you can boil it down to something small that shows the issue then it would make it much easier to get in front of the right people.

    Edit: I see that I used the word intermittent first, not you, so my brain may have jumped to some conclusions when I originally read your message.  Sorry about that.

  • One idea (from a developer here): could you maybe output (to JSON/XML/something) the property states for the working and non-working objects?  Maybe the properties are different somehow that's causing this?

  • Thanks Craig - good plan, I'll make a mod to the workflow code and dump the data out, see what I can find...