Ask our Experts
Didn't find what you are looking for? Ask our experts!
Share Your Feedback – Help Us Improve Search on Community! Please take a few minutes to participate in our Search Feedback Survey. Your insights will help us deliver the results you need faster and more accurately. Click here to take the survey
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Search in
Link copied. Please paste this link to share this article on your social media post.
On the portal, I created a Processor Value.

I am using this method to access this value, as suggested in the developer documentation.
var pv = this.FindOrCreateProcessorValue("LastPollDate");
I also tried this:
var pv = this.FindOrCreateProcessorValue("LastPollDate", "", "", DataPointValueType.DateTime);
When I run the code locally in debug mode, I am seeing "{"Object reference not set to an instance of an object."}" error.
Does it not work in debug mode or do I have to associate ProcessorValues to a processor to access them from code?
Link copied. Please paste this link to share this article on your social media post.
You should certainly be able fully test your Processor from a Unit Test fixture in debug mode. This would include accessing the ProcessorValues data store. The exception you are seeing is most likely due to the Unit Test fixture not being properly configured.
The steps you need to perform/verify in order to ensure success in doing this are covered in the "Testing an Extension" section of the SmartConnector Developers Guide.
Were all of those steps properly completed?
Link copied. Please paste this link to share this article on your social media post.
I am using Resharper for testing.
Is it because the processor is unable to connect to the database?
Link copied. Please paste this link to share this article on your social media post.
It doesn't matter if you're using ReSharper or not, the steps are the same.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.