7 Replies Latest reply on Oct 23, 2018 7:53 AM by Jamie Rodger

    Velocity Script Editor is Broken Junk

    Jamie Rodger

      Just ranting, but more often than not the "Script Token" editor is just hot trash. Sometimes the object column does not appear. Other times only the Standard Object Icon appears but no drop down is available. Sometimes everything shows up and I select the fields I want to load then click save but lo, should I return to the script, not one of the fields I previously selected are still checked. Worse, sometimes I make code changes and they don't save. And yeah, I am saving them in the window and then again on the token after the window closes - not forgetting that step.

       

      Look at this beauty:

      Screen Shot 2018-07-31 at 3.20.07 PM.png

      Anyone else having trouble with this editor lately??? I asked MKTO Support but got a generic "we don't support velocity script" response.

        • Re: Velocity Script Editor is Broken Junk
          Sanford Whiteman

          All true. Not much to be done until it's made part of the UI overhaul.

          • Re: Velocity Script Editor is Broken Junk
            Dan Stevens.

            Yep - we experience all of this.  When asking support about the empty right pane, their response was it was my ISP - in that I have to give it more time for the data to come down from Marketo.  I just need to give it time.  Well, that was not the issue.  You can keep the editor screen open for hours and it will never populate.  The only solution I've found is to keep opening/closing and finally the fields render.

            • Re: Velocity Script Editor is Broken Junk
              Chris Wilcox

              I've found a couple things can help with this:

               

              1. Non-populating right pane - CTRL+SHIFT+R to hard refresh your Marketo window. I've found this can resolve the issue (as well as endless spinning in the navigation pane throughout the rest of Marketo)
              2. When you open up a token, there's a 3-5 second delay when the script window appears, and when the right pane "refreshes." In my experience, if you start to edit the code in the main window before that refresh happens, you'll end up with dropped integrations, unsaved code changes, etc. If you wait the 3-5 seconds once the pane opens until you start making updates, I've never once encountered that issue.  It's only when I dive right into making changes too quickly.
              3. All of this has lead me to work mostly offline with my scripts. I use Notepad++ with a custom Velocity syntax highlight that Courtney Grimes put together. It mimics the look of the velocity script editors

               

              We definitely all experience these problems, but mostly I've found slowing down at the start, hard refreshes when needed, and working offline for major edits to be my personal preferred workflow.

               

              Best of luck!

              2 of 2 people found this helpful
              • Re: Velocity Script Editor is Broken Junk
                Mark Price

                +1 for the editor not showing the field tree.

                 

                I've noticed the same issue as well as another user in this thread:

                Email Script Editor not showing Standard Object tree

                • Re: Velocity Script Editor is Broken Junk
                  Sanford Whiteman

                  Kind of surprised y'all are still running VTL only in Marketo (even if authoring offline)! 

                   

                  Recommend building your own runtime environment, which... ***spoiler alert***... is how I get big VTL projects done.

                   

                  Nevertheless, you always need to verify your code in Marketo itself after testing locally, since it has some head-spinning differences from a vanilla install.

                   

                  P.S. IntelliJ IDEA has built-in support (in fact uses VTL internally) and its VCS integration is seamless. Pays for itself.