The issue was simple (and rather daft), i was trying to set a numeric parameter in the database with a string.
None of us have ever made that kind of mistake :-)