{"id":114,"date":"2011-02-04T07:07:00","date_gmt":"2011-02-04T01:37:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=114"},"modified":"2011-02-04T07:07:00","modified_gmt":"2011-02-04T01:37:00","slug":"issue-with-pulishing-workflow-that-use-custom-workflow-assembly","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2011\/02\/issue-with-pulishing-workflow-that-use-custom-workflow-assembly\/","title":{"rendered":"Issue with Pulishing Workflow that use Custom Workflow Assembly"},"content":{"rendered":"<p>While there can be many other reasons for this, recently we came across a situation where a simple workflow assembly designed by us could not be used in a Workflow. If we added the reference to this workflow assembly in the Workflow, it wouldn\u2019t publish. We would receive the following message &#8220;An error occured when the workflow was being created. Try to save the worflow again&#8221;. Refer to the image below.<br \/>\n<a href=\"http:\/\/2.bp.blogspot.com\/_pMlyDuF-ngc\/TUumC6MdlfI\/AAAAAAAAApo\/Vu12s0yN9ZI\/s1600\/1b.png\"><img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/_pMlyDuF-ngc\/TUumC6MdlfI\/AAAAAAAAApo\/Vu12s0yN9ZI\/s400\/1b.png\" alt=\"\" border=\"0\" \/><\/a><br \/>\nThere was no further information to be found in the event log for this.<br \/>\nUpon further review of the code, it was noticed that the Namespace and Class name was the same.<br \/>\n<a href=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/TUumGurjfPI\/AAAAAAAAApw\/PhaGb0Sp13w\/s1600\/2b.png\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/_pMlyDuF-ngc\/TUumGurjfPI\/AAAAAAAAApw\/PhaGb0Sp13w\/s400\/2b.png\" alt=\"\" border=\"0\" \/><\/a><br \/>\nUpon changing the namespace to something other than TestWorkflow the workflow designer accepted the workflow assembly and published it too.<br \/>\nJust wondering if this were an issue, it should not have allowed us to register the assembly in the first place. It would have been a better indicator of something being wrong with the class declarations.<br \/>\nFor anyone else who face the same problem\u2026 it might help to check the class name.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While there can be many other reasons for this, recently we came across a situation where a simple workflow assembly designed by us could not be used in a Workflow. If we added the reference to this workflow assembly in the Workflow, it wouldn\u2019t publish. We would receive the following message &#8220;An error occured when\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2011\/02\/issue-with-pulishing-workflow-that-use-custom-workflow-assembly\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[67],"tags":[402],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-workflows","tag-crm-dynamics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}