Error "Could not cast from User to User."

I have in my Record Types two fields, Created By and Modified By.  Both of those data types are set to user.

  They are also linked to the Appian User.

I have a Process Model kicked off by a Portal.  I would like to get the initiator of the process to be saved into one of these two fields.  I have used:

  1. pp!initiator - From the Process Properties
  2. pv!processUser - This is a process variable of User type that I created by saving the pp!initiator to pv!processUser
  3. touser(pp!initiator)
  4. touser{pv!processUser)
  5. "PMSO_ServiceAccount) - the text value of the portal User Name for Service Account.  I verified that the User Name does indeed exist and is the account that runs the portal.
  6. touser("PMSO_ServiceAccount")

In all of these cases, I got the process error (Could not cast from User to User. Details: CastInvalid) (Data Outputs)!!!  This works in all other areas of the application, just not in the process model kicked off by the Portal.

  Discussion posts and replies are publicly visible

Parents Reply Children