Solved! Go to Solution.
Just be sure to check your python code to make sure none of the lines are wrapping on you. Does it say what line the indentation error is on?
There is one input parameter scripted in this sample. infile = arcpy.GetParameterAsText(0). If you need more you can just take a similar appraoch.
The error is for Line 41.
I am not exactly sure what your line 41 would be. i would assume you changed the code as least a little bit so my line 41 is not the same as yours. If you can post your code and state the text of the line that is giving you issues I can see if I can identify the issue. When posting your code make sure it posts with the correct indents and line breaks or it could make it look like you have more problems that aren;t necesarily in your code.
Honestly it is probably just an issue with the indentation due to copying and pasting. I would just go though and make sure everything is indented properly. Using a program like notepad++ will make it easier to spot issues. When I copied my code below into NP++ you can see that line is indented too much as well as 2 other below it. Just delete the white space before that following 3 lines and tab them each over 1 time.
arcpy.Append_management(shpPath, WildFire_Table_Target, "NO_TEST", fieldmappings)
print e.message
arcpy.AddError(e.message)
I attached pyton script. please help me.
# Process: Append arcpy.Append_management(shpPath, WildFire_Table_Target, "NO_TEST", fieldmappings) except Exception as e: print e.message arcpy.AddError(e.message)
The last few statements you have a incorrect. You need to use with the appropriate indentation.# Process: Append arcpy.Append_management(shpPath, WildFire_Table_Target, "NO_TEST", fieldmappings) except Exception as e: print e.message arcpy.AddError(e.message)
Hi
I tested your code, but it return this error:
IndentationError: unindent does not match any outer indentation level (import_zip_91.py, line 40)
What is appropriate indentation?
Please help me more. Is it possible to send me your model or your code?
Regards