This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
05-20-2020 10:53 AM - edited 07-23-2021 09:07 AM
If you observe an error message like
Error: Salesforce Input (1) File "<string>", line 1 os.environ['PATH'] = r"...
please read on to learn how to adjust the environment variables to resolve it. This can happen with any one of several Connector tools, not just the tool mentioned in the example.
Error: Salesforce Input (2): File "<string>", line 1
os.environ['PATH'] = r"C:\Program Files\Alteryx\bin\Miniconda3\Library\bin;C:\Windows\system32;C:\Windows;"C:\Windows\System32\Wbem";C:\Users\llepome\AppData\Local\Microsoft\WindowsApps;;C:\Program Files\Alteryx\bin;C:\Program Files\Alteryx\bin\plugins\;C:\ProgramData\Alteryx\Tools\SalesforceInput_v4.1.0\Lib\site-packages\pypiwin32_system32"
SyntaxError: invalid syntax
This occurs because the Python-based tools read the path Environment Variables from Windows. If there are any path entries with quotes, this can happen because python doesn't expect quotes and doesn't handle them gracefully.