Resources for IT Professionals >
Forums Home
>
BizTalk Server Forums
>
BizTalk Server RFID
>
Tag Simulation in BizTalk Rfid 2009
Tag Simulation in BizTalk Rfid 2009
- Hi,
I want simulate "N" number of custom tags with BizTalk RFID 2009. I'm using the following to code to simulate the tags.
string processName = this.cbProcessList.SelectedItem.ToString();
string logicalDevice = this.cbLogicalDevices.SelectedItem.ToString();
// Generate a set of tag read events,
List<TagReadEvent> tagEvents =
GenerateTagEvents((int)this.numTagCount.Value);
TagListEvent tle = new TagListEvent(tagEvents, "SIMULATED");
processProxy.AddEventToProcessPipeline(processName, tle, logicalDevice);
The code executes fine. There is no exception or error in this code. The process is running in RFID Manager. But I can not see any new tag reads in TagEvents Table.
What was problem in this process?
Please help me in this issue.
Thanks in advance.
Answers
- Hi Mark,
Thank you for your response.
I can send the tags by RFID Manager (Send Tags functionality). It works perfectly.
Also i changed the tagTime to YYYY:MM:DD HH:MM:SS. But still i can not get the tag reads in TagEvents Table from simulation.
Any thoughts please...
Once again thank you.- Marked As Answer byNMohanraja Monday, October 26, 2009 9:36 AM
All Replies
Overall, the basic shape of the code looks fine, but there are a couple of items to confirm -
1. Is the process properly bound with the SqlSink. Confirm this by using the Send Tags functionality in the RFID Manager; Process -> View Tags -> Send Tags, and ensure that individual tag events show up in the TagEvents table.
2. Are the individual TagReadEvent objects being generated properly (that code isn't shown in your snippet above); for example, if the tagTime field for a TagReadEvent is not a valid SQL time value, the event can't be stored in the TagEvents table.- Hi Mark,
Thank you for your response.
I can send the tags by RFID Manager (Send Tags functionality). It works perfectly.
Also i changed the tagTime to YYYY:MM:DD HH:MM:SS. But still i can not get the tag reads in TagEvents Table from simulation.
Any thoughts please...
Once again thank you.- Marked As Answer byNMohanraja Monday, October 26, 2009 9:36 AM
- Anyone help me in this issue.
- Execute your code while the RFID process is running. Go to RFID Manager and click on your process in the left pane. An Overview pane should show up in the right area with the following information: "Process Summary", "Recent Tags Summary" and "Errors Summary". See if you have some errors in the "Errors Summary" area. I am guessing you have something like the following:
"Exception has been thrown by the target of an invocation.-->Cannot insert the value NULL into column 'DeviceName', table 'rfidsink.dbo.TagListEvents'; column does not allow nulls. INSERT fails.
The statement has been terminated."
This happens because you are not setting the device name on the TagListEvent in your code above. In your code, after you create the new TagListEvent tle, do the following:
tle.DeviceName = "<your_device_name>";
Also, make sure you are filling in the device name on the TagReadEvents properly in your GenerateTagEvents() method.
HTH,
Kranthi.
- Now i can get the simulated tags in TagEvents Table. Thank you so much Mr.Kranthi

