Page 1 of 1

Policy Code Assignment

Posted: Thu Feb 16, 2023 10:25 am
by lucaswautier
I'm trying to set the policy code via the API and am getting the following error:
The specified value violates the SoftPro.ClientModel.Validations.AllowedValuesAttribute constraint
Here is my code:

policy2.png
policy2.png (15.82 KiB) Viewed 22584 times

Do you have any insight as to what I'm doing wrong here? I'm making sure I cross check the policy type, underwriter, and state combo to use the appropriate policy code that should reside in the drop down. The context says this is a string field as well.

policy1.png
policy1.png (202.88 KiB) Viewed 22584 times

Re: Policy Code Assignment

Posted: Thu Feb 16, 2023 12:09 pm
by lucaswautier
This is embarrassing, but apparently our user that entered policy names added a trailing space, leading to the error in assignment.

policyname.png
policyname.png (41.29 KiB) Viewed 22573 times

Re: Policy Code Assignment

Posted: Thu Feb 16, 2023 12:38 pm
by BobRichards
I'm glad you found it. I was about to say I can't replicate your error and to look for leading/trailing spaces. :)