Posts

Showing posts with the label workflows

MS CRM 4.0 Worflow Issue

Recently I came across a scenario where it was required that workflow be triggered on change of a read only only field. While testing I found that the workflow wasn't getting fired. I added the code to ForceSubmit the field OnSave of record. Even after that the workflow didnt execute on change of that field. Ultimately, I had to enable that field so that the workflow could trigger on field change. Additional logic (simply a workaround) had to be applied in order to achieve the desired functionality.

Error publishing a workflow with an Email step

Recently I created a test workflow to send an email when a new task is assigned to any MS CRM user. Everything was in place but somehow the workflow just didn't publish and I kept getting the message: "An error occured when the workflow was being created. Try to save the workflow again." This was what was logged in the MS CRM trace logs: "Activity 'SendEmailStep4_policy' validation failed: Property "RuleSetReference" has an invalid value. Rule set is invalid. Rule "main" validation failed. Type System.Globalization.CultureInfo is not marked as authorized in the application configuration file." And here is where I found the resolution: http://social.microsoft.com/Forums/en/crmdevelopment/thread/e0a8b1f3-5bbf-4040-ab5c-2a67df362b5b Add the following entries in the web.config file for Microsoft Dynamics CRM: <!-- * CRM SE 6681 V4: Hotfix needed for CRM Workflows before WF.Net security patch --> <authorizedType Assembly="msc...

Unable to publish workflows

After installing Rollup 7 on my MS CRM server, I could not publish any of the workflows. The error in the trace files read “Type System.Globalization.CultureInfo is not marked as authorized in the application configuration file.” Add the following entries to Microsoft Dynamics CRM web config did the trick to make it work&#61514; <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System" TypeName="Void" Authorized="True"/> <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Reflection" TypeName="AssemblyFileVersionAttribute" Authorized="True"/> <authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Namespace="System.Reflection" TypeName="AssemblyVersionAttribute" Authorized="Tru...