I would like to create tool that will be generate *.csv with information about feature class (field_name, type). You can find my code:
import arcpy import os arcpy.env.overwriteOutput = True dataset_name = arcpy.GetParameterAsText(0) Report_folder = arcpy.GetParameterAsText(1) fields = arcpy.ListFields() for field in fields: print("{0} is a type of {1} with a length of {2}" .format(field.name, field.type, field.length)) Could you advise?

ListFieldsmissing the dataset parameter, what is your question?fields = arcpy.ListFields(dataset_name)