I have one feature Layer and two standalone variable (String Type) in my model Builder. Those stand alone variables are being used two inputs to get a name and a number and add them to the name of the output tableI. I can run the model without any issue, but when I convert it to Python, I keep getting the following errors:
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000814: Invalid file type
I set my Parameter as they are in my Model builder, but cannot find out the reason that this issue pups up all the time. I would appreciate if you have any solution for it.
Thanks,
Fery
Please post your python script and the entire error message, which should indicate which line caused the error.
Thank you for the rsponse Darren, I have changed the Python script and it is working now. It seems my standalone variable caused that issue.
A few lines of the offending code might help resolve the issue. It would be possible to check whether the correct type is specified and/or whether you have allowed existing outputs to be over-written etc
Thanks for your response Dan, I tried to rewrite the model and avoid of creating any standalone variable, and it is working now.