Hello, everyone. When I have deployed the source c...
# suitecommerce
x
Hello, everyone. When I have deployed the source code (https://github.com/oracle/netsuite-commerce/tree/master/samples/2020-2/Example-part3), it doesn't work on the website properly. https://developers.suitecommerce.com/develop-your-first-extension.html#part-3-add-a-data-model-and-build-a-connection-from-the-frontend-to-the-backend The only thing I noticed while deploying, the manifest.json file is updated and the following line is removed automatically. "local_folder": "Workspace\\Example", Is there a way to resolve this issue?
s
When it asks you what type of file it is, did you select 'none'?
The local folder is meant to point to, well, the local folder where it lives. So your extension should live in Workspace/Example.
Furthermore, have you deployed SuiteScript 2.0 SSP applications?
x
• yes, I selected "none" • yes, extension is located to "Workspace/Example" • yes, I tried to create SuiteScript 2.0 SSP applications myself and also tried to copy the full source code from https://github.com/oracle/netsuite-commerce/tree/master/samples/2020-2/Example-part3
s
... what do you mean you tried to create the SuiteScript 2.0 SSP applications yourself? I am referring to the SuiteCommerce Advanced 2.0 SSP applications
x
Oh, sorry, I guessed SuiteScript 2.0 scripts placed in "SuiteScript 2.0" folder
Currently, there's only this SSP application based on version 2.x And there's no more SuiteScript 2.0 SSP application
Should I create new SSP Application based on version 2.x?
x
thanks for your document I have checked the "SuiteCommerce SS2" application and it was already deployed SuiteScript 2.0 (SS2) application
s
OK, and you have activated the extension after deploying?
x
Yes, whenever do deploy, activated the extension always
One question, is this happening owing to SuiteScript 2.0 version? If it's built using SuiteScript 1.0, such issue will happen too?
s
Well I don't know what exactly the problem is, so I can't say
x
Such kind of issue is possible to be solved if I contact NetSuite support team?
s
Maybe. I would start by looking at the execution log
x
Could you tell me where to see that execution log?
s
Part 2 doesn't involve any SuiteScript
x
Ok
s
And the execution log can be found by either visiting the SSP application in NetSuite and viewing it on a per-SSP basis, or by going to Customization > Scripting > Script Execution Logs
x
Thanks for your info Also, there's no log history
s
Even if you remove the filter you applied?
x
If I don't select the script, it shows other execution log
s
Right. And do any of those seem relevant to your script failing?
For example, when I force an error to appear it looks like this:
Copy code
2021/4/7 4:51:06 pm	SYSTEM	SuiteCommerce Advanced - Dev 2021.1.0 v2	WEBAPPDEPLOY_SCA_DEV_2021_1_0_2	Steve Goldberg	JS_EXCEPTION	org.mozilla.javascript.EcmaError: ReferenceError: "wefwefwef" is not defined. (/Web Site Hosting Files/Live Hosting Files/SSP Applications/NetSuite Inc. - SCA 2021.1.0/Development2/extensions/ExampleVendor/Example/1.0.8/Modules/UserPreferences/SuiteScript2/Example.UserPreferences.Service.ss#20)
x
Just tried to run the preference attached website url, but there was no error log added https://974296.secure.netsuite.com/c.974296/scs/my_account.ssp#preferences?n=3
message has been deleted
message has been deleted
s
OK, any information in the Network tab or developer console?
x
message has been deleted
s
OK, and does this file exist in the file cabinet at this location?
x
Yes, it's existing
s
That is not the one that is being called
There should be one in the SSP under Web Site Hosting Files
Eg Web Site Hosting Files 
 Live Hosting Files 
 SSP Applications 
 NetSuite Inc. - SCA 2021.1.0 
 Development2 
 extensions 
 ExampleVendor 
 Example 
 1.0.8 
 Modules 
 UserPreferences 
 SuiteScript2
x
If I tracked the directory location correctly, here's that file
Also, I found that script here, I guess the following one is correct path
s
OK, well I don't know. FWIW I think you've missed a setup step or something. The fact it's trying to call https://974296.secure.netsuite.com/c.974296/scs/... is very weird
x
Ok, thank you very much for sparing your time today
c
Hey @Xiaoxin Li , Try deploying the SS2 application for checkout domain as well. I see that, your checkout domain is the default checkout domain which is 975296.secure.netsuite.com, so you need to deploy SS2 application to checkout domain as well.