I have a very simple NetSuite scrip that sets the value of the externalid when the record is saved. I have done testing on the SB account and it is working as expected. Copying the same configuration into the production account and the script is not executing. I've even added some dialog boxes to see if I can see any activity but there is none. The script is deployed, released and has "all roles" as the audience.
Any ideas what I can do to get the script to work?
Thanks.
Is your sandbox a very recent copy of Production? Does it have all the same scripts deployed as there is in production? You may want to look at the scripted record list for User Event Scripts in both environments, make sure they are the same.
You could also post your code here for us to look at it.
Related
I created a function and I am trying to deploy it from VS Code by clicking the Deploy to Function App.... The Deployment runs successfully based on the output log - Deployment successful but then when I go to the portal, the function is not listed under Functions.
What shall I do and what is the problem here?
When I debug in VS Code, I get this: No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
Unfortunatly I would not know if those steps don't work for uploading. The deployment finishes, and every single time it becomes visible in my portal. Uh, maybe there is a slight difference. The app service itself is pre-created via terraform. Just the uploading of the code I do via VSC.
As far as deletion goes:
Open the resource group, in the list lookup the App Service. Select the checkbox in front of it. Delete in the top nav bar of that pane.
Trying to delete it any other way will indeed give you the "Not found" error.
I've had the same 'issue', in my case it turns out that the issue was a bad entry in the requirements.txt
I had an incorrect line with 'io' and when it was present despite the deployment appearing to complete successfully in VS code, the function was not updated if it was previously deployed or not deployed if it wasn't resulting in the same 'no results' in the functions list.
Having other requirements such as 'numpy' or 'scipy' worked just fine.
It's an old thread but maybe it'll be helpful to whoever gets here in the future.
Even as of now, some changes I make in VS Code seem to take time to be immediately visible on the portal. I had a similar issue with resources, i.e. creating a resource from VS Code wouldn't make it immediately visible on Azure Portal. You can always go to Functions on the portal and click Refresh. Also try going to Advanced Tools, then Kudu and checking if your function can be found there.
One word of advice: if you publish your functions from VS Code, then work on that resource only from VS Code. You will find it reiterated all over Azure Functions docs that:
Publishing to an existing function app overwrites the content of that
app in Azure.
I deployed a user event script, which applies to Purchase Orders, with event "edit".
My script ran the first time I edited a purchase order, but thereafter it no longer ran. I recreated the entire script and deployment, but it is still not running.
I checked the list of scripts applied to purchase orders and my script is there. The script is deployed and released, with event type set to 'edit'.
Might this have something to do with usage limits? There was an error during the first execution of the script, where I did not supply a needed parameter, perhaps this caused an issue?
Any help will be greatly appreciated, thank you.
Did you select an audience when you released the script? If there is no audience selected, the script won't execute. Happened to me a couple of times.
Is it possible that suitescript 2 is not enable ?
I have the most simple script, that show an alert but it doesn't popup
Possible ?
Thanks
P.s. i'm willing to pay for thid
I assume you enabled SuiteScript options in Check Setup > Company > Setup Tasks > Enable Features > SuiteCloud.
Make sure you deployed your script accordingly . Make sure there are no error in script execution log.
To make sure suitescript is working fine in Netsuite , you can write a simple suitelet and test it in script debugger. ( Customization > Scripting > Script Debugger).
The only thing I can see would be if you do not have SuiteScript enabled on your instance. Check Setup > Company > Setup Tasks > Enable Features > SuiteCloud, and ensure that the SuiteScript options are enabled.
Aside from that, post some of your code, and/or any errors that you are seeing in the script execution log or the page that you are running the code on.
Finally I found the problem but I don't have a solution yet. I called netsuite and they said it's a known defect but I don't think so. I'm sure we are not the first one in the history.
We need to add a script to the customer record.
We found out that SalesForce added an Users Event Script.
I'm writing a Client Script, thus the conclusion from Netsuite is that you can't have a User Even Scrip and a Client Script, thus the reason it's not working.
Again I still CAN'T believe it
Any help is appreciated
I "think" I found the problem. The event script is written in SS1 and what I'm doing is SS2.
I have moved my code back to SS1 and it's working.
I know it makes no sense but it's working
I am having this very weird problem which I don't understand how it happened. I have created this my own app and I added a lot of intents in it. But when I need to test this app under the simulator, I can't seem to set the Test status to active. It says that my app must have at least one action to test. I am really confused because I do have a lot of actions. Is there something that I am missing here?
Then I check the FactsApp sample which Google provided. The Test Status of that app seems to be switchable. I tried to check the settings of that app but I didn't find anything that I missed to set.
Please help. Thanks!
I have managed to solved the problem by myself. It seems to happen that I created an agent in API AI console that consist of a project ID that does that match any of my current projects.
I don't know how I did that. But because I was experimenting with the projects and agents. I somehow created projects of the same name but did not link it properly with the agent that I created.
You can check the project ID of your agent under the settings of that agent. Just click on the small gear located at the left side of your agent name.
So when you create an agent, make sure that its project ID is the same as the project ID of the correct project.
You have to have at least one intent which handles the GOOGLE_ASSISTANT_WELCOME event.
See the docs: https://developers.google.com/actions/apiai/define-actions
I've installed Gmail Meter script in Google Documents and launched it. It demanded many permissions and access to many google account elements. Script works quite slowly and meanwhile I decided to take back those permissions because they were too wide. An hour later I got mail notification about error, script cannot work without permissions.
I tried to turn off this working script but didn't find the way so I deleted (permanently) the file in which I installed the script. Since then I get every day 3 error notifications. I can turn off them (there is a link in a mail) but I'm more interested in terminating the script? What should I do?
Indeed the triggers should be terminated once the spreadsheet has been moved to trash. This is a known issue:
Issue 143: Spreadsheets with time triggered scripts should no longer trigger when spreadsheet is deleted
You can star this issue and turn the triggers off via the link in the email.
You can access all your script projects by opening the script editor and selecting Resources > All your triggers. Find the triggers you want to delete and click the 'x' icon next to them.
You should delete the triggers ...