Workflow Domain Object Failed Validation

ken's Avatar

ken

09 Nov, 2010 07:05 PM

When a workflow step of type ‘system’ includes a publish action with an attached publish trigger, we get the following error message during workflow at time of publish (which fails):
“An error occurred: A domain object failed validation”

Note that when using an alternate workflow step of type “transition” (assigned to a user) which includes a publish action and an attached publish trigger, the workflow succeeds without error.

I suspect that the issue here has to do with the fact that the later example above is publishing a page on behalf of the assigned user, whereas the former example publishes without an assigned user, perhaps using a generic admin-level user as referenced here:

http://www.hannonhill.com/kb/Workflow-Trigger/available-workflow-tr...

What do we need to do to eliminate the error and have the workflow procede with the system step triggers?

  1. Support Staff 1 Posted by Tim on 09 Nov, 2010 09:12 PM

    Tim's Avatar

    Hi Ken,

    In your publish trigger, try specifying the current step owner. For example:

     <trigger name="publish">  
        <parameter>  
           <name>authorizing-type</name>  
           <value>current-step-owner</value>  
        </parameter>
    </trigger>

    If that doesn't work for some reason, try replacing 'current-step-owner' with 'system':

    <trigger name="publish">  
        <parameter>  
           <name>authorizing-type</name>  
           <value>system</value>  
        </parameter>
    </trigger>

    If you still have problems let me know.

    Thanks!

  2. 2 Posted by James on 10 Nov, 2010 02:26 PM

    James's Avatar

    Hi Tim,
    I am working with Ken on this and have tried those two suggestions, but am still running into the Domain Object error. Please note that this error also occurs if using an email trigger. I have created a single step workflow as follows (generic e-mail address substituted):

    <step type="system" identifier="notifications" label="Notifications" >
      <actions>
        <action identifier="notifications" label="notify" move="forward" >
          <trigger name="email" >
            <parameter>
              <name>mode</name>
              <value>notify</value>
            </parameter>
            <parameter>
              <name>recipients-email</name>
              <value>a&b.com</value>
            </parameter>
          </trigger>
        </action>
      </actions>
    </step>
    <step type="system" identifier="finish" label="Finished" />

    Since there are no transition steps in this workflow, no interaction is required. As soon as I start the workflow, I am presented with the error in a red bar across the top: "An error occurred during editing: A domain object failed validation"

    Thanks.

  3. Support Staff 3 Posted by Tim on 10 Nov, 2010 03:29 PM

    Tim's Avatar

    Hi James,

    Thanks for that info. I was able to reproduce this locally as well using the steps you supplied above. We'll probably have to debug this to see what's going on. I'll get back to you as soon as I have more info.

  4. Support Staff 4 Posted by Tim on 17 Nov, 2010 05:04 PM

    Tim's Avatar

    Ken, James,

    It looks like this could be a bug. I've created an issue to address the problem here: http://issues.hannonhill.com/browse/CSI-90

    Please be sure to track that item. Let me know if you have any further questions.

    We apologize for the inconvenience.

  5. Tim closed this discussion on 06 Apr, 2011 06:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac