Welcome to the Alteryx Knowledge Base

Error: "LookupError: unable to find matching field type value for str in pandas context" when using Alteryx.write() statement
user

Created/Edited - 10/10/2026 by Clara Boo | Alteryx

Issue

Using Alteryx.write() statement in Python tool runs into the following message as seen in the traceback error.

 

Partial excerpt of the detailed error:

 

Error: Python (4): Traceback (most recent call last):
File "C:\Users\USER\AppData\Local\Temp\2\Alteryx\Engine_8712_4b1ee5d4048948678120bfc80be88aa0_\2500f138ec0e72069c80289c16a1f874\workbook.py", line 5, in <module>
    Alteryx.write(df,1)
    ~~~~~~~~~~~~~^^^^^^
....
  File "C:\Program Files\Alteryx\bin\Python\envs\DesignerBaseTools_vEnv\Lib\site-packages\ayx\DatastreamUtils.py", line 656, in parseFieldTypeAndLengthStr
    field_type = self.__fixTypeCase(field_type_uncased, context=context)
  File "C:\Program Files\Alteryx\bin\Python\envs\DesignerBaseTools_vEnv\Lib\site-packages\ayx\DatastreamUtils.py", line 841, in __fixTypeCase
    raise LookupError(
    ...<3 lines>...
    )
LookupError: unable to find matching field type value for str in pandas context

 

 

Environment
  • Alteryx Designer
    • Version >= 2026.1
  • Python Tool

 

NOTE: Python in Alteryx Designer version 2026.1 onwards uses version 3.13.11.

 

Cause

Upgrading pandas version to 3.0.0 and above will cause the error as the ayx package used by Python tool is not compatible with pandas version >= 3.0.0.

 

 

 

Resolution

Please avoid using pandas version 3.0.0. The pandas version that comes with the DesignerBaseTools_vEnv virtual environment is using version 2.3.0. Please reinstall this version to avoid the error.

 

Example - Commands to install the correct version from command prompt:

 

cd c:\program files\alteryx\bin\python\envs\DesignerBaseTools_vEnv\Scripts
activate
pip install pandas==2.3.0 --force-reinstall

 

NOTE: 

  • Command prompt is needed to run in elevated mode (Run as administrator) if Alteryx Designer is an admin version to perform package installation in DesignerBaseTools_vEnv.
  • If you are using custom virtual environment instead of the DesignerBaseTools_vEnv, you will also need to ensure that pandas version 2.3.0 is used instead of any version >= 3.0.0. You will get the same error message if you use pandas version >= 3.0.0.

 

 

Additional Information

Creating a custom virtual environment is available in Designer version 2026.1, please refer to the following Help documentation.

 

Was this article helpful?