Only() don't work in script, try Peek() or LookUp(). First check whether you are getting value in variable?
Is your fiscal_period column, Period_Name and vPeriod variable are in the same format? If not convert vPeriod to fiscal_period format.
If not working can you attach some sample values of fiscal_period
Hope this helps you.