Suitescripts written in version 2.0 or below shows this error ‘Syntax error: missing ; before statement’ even when there is ‘;’ present after every single line of code. For example check this client script sample code in suitescript v2.0.(This is a sample code and not used for any specific purpose) /** *@NApiVersion 2.0 *@NScriptType ClientScript… Continue reading How to fix ‘Syntax error: missing ; before statement’ for suitescript documents version 2.0 and below
Tag: SuiteScriptError
VALID_PRD_REQD – Insert Transaction failed: no valid open tax period for date x/xx/xxxx. Please visit Setup->Manage Tax Periods to setup a new tax period.
The above error may get when you try to save a transaction and there is no Tax Period for the same. You may get as below. {“status”:”FAILURE”,”reason”:{“type”:”error.SuiteScriptError”,”name”:”VALID_PRD_REQD”,”message”:”Insert Transaction Failure: No valid, open, tax period for date – 2022-01-03. Please visit Setup > Manage Tax Periods to set up a new tax period.”,”stack”:[“Error\n at RecordInvoker.save … Solution… Continue reading VALID_PRD_REQD – Insert Transaction failed: no valid open tax period for date x/xx/xxxx. Please visit Setup->Manage Tax Periods to setup a new tax period.