Issue
A value could not be found for the specified configuration parameter.
Environment
LonMaker
NL220
Vista
LNS
Cause
This exception will be thrown if you use the GetDataPoint method to create a data point with the lcaDataSourceOptionsDatabaseOnly (2) option set, and then attempt to read the value of the data point, but the value does not exist in the LNS database.
Resolution
You need to make sure to add your resources to the resource catalog BEFORE importing the XIF to LNS. Once the XIF is imported, adding the resources later will not make them appear. You will need to delete the device template (LonMaker|DeviceTemplates|Delete). Run ldrfcat and add the directory with your resources in it (usually in \LonWorks\Types\User\MfgName\...) Refresh the catalog and re-import the XIF.