Skip to main content
May 2, 2024
Question

ERROR "can not delete from null"

  • May 2, 2024
  • 3 replies
  • 0 views

i got this error where i used remove()

but i tried remove(null, index) will return null instead of error, so what could cause this error?

    3 replies

    harshk1671
    May 2, 2024

    Hi jiayingc4832,

    What do you think the cause of error when you see error message? [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    harshk1671
    May 2, 2024

    
    remove(array, index)
    
    Removes the value at the given index from the given array, and returns the resulting array.
    
    Returns: List
    
    array (List): The array to modify.
    
    index (Number (Integer)): The index or array of indices at which the value should be removed (must be >= 1).

    As per the function definition it expects an array as first parameter and index of that array as second to remove item on that index. Now if you can share your code where you have used remove function that will be helpful to solve it.

    May 2, 2024

    [mention:2aea1bf0b6954f94815518e79da990c7:e9ed411860ed4f2ba0265705b8793d05]  Can you provide the entire record type expression. seems like there is some error or type mismatch in line 5. please provide the overall expression to understand this.