I again notice that a script does not get updated ...
# sdf
b
I again notice that a script does not get updated when it has been uploaded via SDF. It executes the old code. I must manually edit the script via an edit in NetSuite to get a SuiteLet executing the new code. Does anyone experience the same recurring issue? I’m using the SuiteCloud plug-in 2020.2.0 with WebStorm 2020.3.1. This suddenly happened, the last 6 hours or so it all went just fine.
m
my history won't let me go back that far πŸ˜… what's the explanation?
b
take away that this has been happening for 4 months
i can tell you this problem is much older than that, though i think it became more common somewhat recently
m
ooh hm. out of curiosity, do you know what makes it difficult to solve?
b
the guess is that they dont know how to reproduce it
πŸ‘ 1
d
at least in my experience, if it happens on a Netsuite account, it'll keep happening for at least the next day or so ... then if you're lucky it'll be fine for a little while, before returning
there are some accounts I've never seen it happen with though
b
It started happening last year when I was still using the NetSuite Tools plug-in from @creece. The Pre SDF era. πŸ˜› After logging an issue it took a week or so for NetSuite to supposedly β€˜fix’ it. So to me it is not a plug-in issue since now I am using the SuiteCloud plug-in from NetSuite and it is still happening. This issue happened in two of our test drive accounts.
Today it seems to be working again.
r
I stopped commenting about this issue, but I still do experience it very often on different accounts. Moreover, I have experienced a new scenario lately. Just FYI, I am using the last version of Webstorm and the last version of the NetSuite plugin. I am using SDF, and I updated the file cabinet by means of the UI options you have in NS plugin in webstorm. 1. So, the typical one, which many people have notice as well - files are correctly uploaded and updated on NetSuite side, which can be check by opening the script file in the script record, yet somehow is running the old version of the script. Best way to notice this is by putting logs in the code. Solution for 1 - Go to the script record, click on edit the file and save it, and that normally triggers the "refresh" of the cache. 2. I have done a change in Webstorm in the script, and then I deploy the project into X account. Deployment was a success. However, nothing has changed on NetSuite side. Yet the project was successfully deployed. Sometimes you check the logs and the file was not updated in the NetSuite account. My guess is either SDF somehow fails to detect that there is a difference between the file in my PC and the file in the NS file cabinet, or that somehow Webstorm does not fully commit the file to the filesystem or something weird like that (Normally the file gets saved as you type) Solution for 2 - try again, and check the logs to make sure the file was updated, it should be reflected in the logs Also, as and advice in general, what I am doing at the moment to not lose my mind is pretty much every time I do a change I deploy two times the project, and I also put small differences in the logs just to make sure the "last" version is running. PD: I guess I probably should open a case with Support, but I have been avoiding that), since I believe some people said that despite a fix that was applied they were still experiencing that, plus I guess the fix that was applied to their accounts should be now applied in all the accounts (maybe I am completely wrong on this one) Any ideas or suggestions are welcome
πŸ‘ 3
m
Thanks for this detailed message. I am also still noticing this issue today and it’s the same for my colleagues. I like your idea of tweaking the log notes to make sure your script has the change. I would love to hear why NS is not able to fix this.
b
obviously they cache the script files
its possible they cache the script across multiple servers, and are bad at updating those local caches
c
It happened to me once yesterday manually uploading. Re-uploading seemed to fix it but it def didn't take the first time.
b
and today it happend again