Why my WorkForce Business Rule is not validating with the message the function ‘HspMessage’ cannot be found?
I wanted to share something very simple and hopefully save you some time next time you implement Workforce Planning: when you initialize Workforce Planning, you will add Business Rules, Forms, Tasks Lists, and members to your Planning Application.
After you deploy your Workforce Application, you will want to apply your customizations and make sure all rules validate.
For example, the rule ‘Add TBH Hourly’ won’t validate with this message: The function ‘@HspMessage’ cannot be found.
This is because your Custom Definition Functions are not deployed. This happens often when you have an EPMA application because you cannot deploy CDF directly from EPMA.
To fix it, open the Planning Application, go to Administration / Application / Refresh Database
Then select Update custom-defined functions and click Refresh
During the refresh process you will notice that Planning will ‘Register custom-defined Functions’.
This will push CDFs to the Application and your rule will validate and work as designed. We will talk about CDFs later in this blog are they can be extremely powerful.