If you have that many valid values you need to check against, I would do this with a workflow.
- Put your 60K+ valid values in a separate SP List (let's call it Values in this example).
- Create a workflow on the list your requesters use.
- Create a workflow variable (let's call it Lookup in this example).
What you will want to do, is check the requester's value against the values in the Values List you created in Step 1. To do this, use the Set Workflow Variable Action. For the variable, we will use Lookup (from my example above).
Now, for the value it gets only slightly tricky. Set it up like this:
Field Data to Retrieve
- Data Source: Values
- Field from source: (the column where your valid values are)
- Return field as: (appropriate data type... probably String)
Find the List Item
Field: (again, the column where your valid values are)
Value: (the field that you are validating in this list)
The result of this will be that if the value the Requester is providing is valid, there will be a value in the workflow variable. If the value the Requester is providing is NOT valid, the variable will not contain any data. Once you have that, you can check if the variable holds data or not. If it does not, then you can remove the value from the item (using the Action "Set field in current item"), and notify the Requester that they provided a non-valid value, and that it was removed.
The only real barrier I can see to this is if you absolutely need to prevent the Requester from saving the item, as workflows only run when an item is saved (or they can also be set to be manually started). You can set it to run when the item is first created (on first save), and when an item is changed (second save and so on).
Please let me know if I can offer any additional info.
get
ting the values from another SP list by a REST query) you could validate the primary field of your list.