The error "Incorrect syntax near ')'." in association with SmartObjects appears after upgrading to K2 Five.
After checking the SmartObject, duplicate service method links were found.
This has been identified as a bug to be addressed in an upcoming version of the product.
As a workaround, please remove the duplicate service method links in the SmartObject.