Category Archives: Dynamics 365

Dynamics: Drawing activity sequence diagram

  For the reasons not clear to myself, I was looking at the js-sequence-diagram library (, and it occurred to me that I might probably use such a diagram to display the sequence of activities on the entity form. And indeed.. here is what I ended up with: If you wanted to try it yourself,… Read More »

Entity ownership type: Business Unit

  What the heck am I talking about? “Business Unit” ownership!? That’s not even a thing: That’s more or less what I replied in the community forums to somebody who was asking about “business unit” ownership. And yet, it does exist, even if it’s not something you can set up for your own custom entities:… Read More »

Invalid User Authorization error

Was trying to enable data encryption in Dynamics and the next thing I knew there was an error message: Invalid User Authorization The user authentication passed to the platform is not valid. It’s a rather vague message to say the least, so a quick google search revealed some links but no definitive answers. Lucky for… Read More »

Failed to Generate Excel: An error occurred

I was trying to export data to an excel spreadsheet earlier today and ran into something that I have not seen before: Failed to Generate Excel An error occurred when Dynamics 365 tried to generate the Excel file. If this problem persists, contact your system administrator. This was happening on a seemingly innocent view which… Read More »

Using GetAttributeValue – same result, different meaning. Depending on the context

  We can use entity[“<attributeName>”], or we can use entity.GetAttributeValue<T>(“<attributeName>”) The second option won’t produce an exception if the attribute is missing – it will return null instead. It will also return null if the value of that attribute is, actually, null. This may look all right, but there is a difference. So when does… Read More »

Dynamics: how process duration is calculated

  When looking at the BPF-enabled entity in Dynamics, we can see process duration there – here is an example: In case you were wondering how the duration (“18 days, 1 hour” in this example) is calculated, here is a diagram: If the process is still active, what will show up in the duration area… Read More »