Skip to Content

Removing items from Array via Script - SAP IDM 8.0

Hi Experts,

Wondering if any has come across the same problem, where I am trying to remove items from an array in my script and I keep getting an RuntimeException - undefined: undefined is not a function.

I have tried using Pop and splice but both throw the above error.

Does anyone know a valid method to remove items from an array that accepted by IDM scripts?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 24, 2020 at 12:30 PM


    I actually had this fight this day. And had the same error.

    What i managed to understand is that you CANNOT use indexOf with arrays in IDM, so you have to use loops (for in my case) to find item you want to remove. Other than that there should be no problems and splice did the job pretty well.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.