Miss spelled Nisan.WorkItemId. Added global variable for StockType and UserType.