Elemant.Name give warning in dyanmo revit 2023

Hi

I have a script for cheking slop of pipe acording to system type and size .
the script works in revit 2022.
however in revit 2023 the nood of “Elemant.Name” give a warning : Asked to convert non-convertible types" and the script is not working.
it is crating a list of the system but i tthink the code is not geting the informion it needes.
I am adding the code below:

Load the necessary libraries

import clr
clr.AddReference(‘ProtoGeometry’)

The inputs to this node will be stored as a list in the IN variables.

ST = IN[0]
SI = IN[1]
SL = IN[2]

Tolerances for slope values

tolerance_sl_2 = 0.90
tolerance_sl_1 = 0.90

Initialize an empty list to store results for each pipe

results =

Function to check slope with tolerance

def check_slope(target, actual, tolerance):
try:
actual_float = float(actual)
return abs(float(target) - actual_float) <= tolerance
except ValueError:
return False

Iterate through each pipe and check conditions

for i in range(len(ST)):
condition_met = False

if ((ST[i] == "PL_Sewerage") and (SI[i] == "50") and check_slope(2.0, SL[i], tolerance_sl_2)):
    condition_met = True
    
elif ((ST[i] == "PL_Sewerage") and (SI[i] == "63") and check_slope(2.0, SL[i], tolerance_sl_2)):
    condition_met = True
    
elif ((ST[i] == "PL_Sewerage") and (SI[i] == "75") and check_slope(2.0, SL[i], tolerance_sl_2)):
    condition_met = True

elif ((ST[i] == "PL_Sewerage") and (SI[i] == "110") and check_slope(2.0, SL[i], tolerance_sl_2)):
    condition_met = True

elif ((ST[i] == "PL_Sewerage") and (SI[i] == "160") and check_slope(1.0, SL[i], tolerance_sl_1)):
    condition_met = True

elif ((ST[i] == "PL_Rain Water Drain") and (SI[i] == "50") and check_slope(2.0, SL[i], tolerance_sl_2)):
    condition_met = True

elif ((ST[i] == "PL_Rain Water Drain") and (SI[i] == "110") and check_slope(2.0, SL[i], tolerance_sl_2)):
    condition_met = True

elif ((ST[i] == "PL_Rain Water Drain") and (SI[i] == "160") and check_slope(1.0, SL[i], tolerance_sl_1)):
    condition_met = True

elif ((ST[i] == "PL_Ac Drain") and (SI[i] == "32") and check_slope(1.0, SL[i], tolerance_sl_1)):
    condition_met = True

elif ((ST[i] == "PL_Ac Drain") and (SI[i] == "40") and check_slope(1.0, SL[i], tolerance_sl_1)):
    condition_met = True

elif ((ST[i] == "PL_Balcony Drain") and (SI[i] == "75") and check_slope(1.0, SL[i], tolerance_sl_1)):
    condition_met = True

results.append(condition_met)

Assign your output to the OUT variable.

OUT = results

Hi @Nurit8SZ5E you are sure you dont have any undefined system type ?

yes thank you i did have same pipe undefined