Policy Code Assignment

Discussions related to custom development with Select.
Post Reply
lucaswautier
Posts: 2
Joined: Tue Nov 29, 2022 4:18 pm

Policy Code Assignment

Post 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 21657 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 21657 times
lucaswautier
Posts: 2
Joined: Tue Nov 29, 2022 4:18 pm

Re: Policy Code Assignment

Post 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 21646 times
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Policy Code Assignment

Post 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. :)
Bob Richards, Senior Software Developer, SoftPro
Post Reply