When creating an XML object definition for your Suitescript deployment I noticed the schedule for the deployment was different to what I had coded.

Here’s a snippet of the XML object definition for a script where I wanted the script to run monthly, on the first day of the month at midnight:

1
2
3
4
5
6
7
8
9
<status>SCHEDULED</status>  
<recurrence>  
    <monthly>  
        <startdate>2024-12-02</startdate>  
        <starttime>00:00:00Z</starttime>  
        <dayofmonth>1</dayofmonth>  
        <everyxmonths>1</everyxmonths>  
    </monthly>  
</recurrence>

As you see it has all the necessary definitions.

However, upon uploading this script into Netsuite I noticed that it ended up changing the time - perhaps based on the server settings of our Netsuite instance (Sydney).

Instead of seeing the schedule as defined in the code, the resulting deployment record for the script showed:

  • Day 2 of every 1 month(s)
  • Start Date 2/12/2024
  • Start Time 11:00am

This means the difference between the start time of the script and the actual start time on my deployment is a difference of 35 hours!

Not sure what setting I’ve got incorrect here, but something’s not right.