Syntax Errors in my Python code but I don't see where?

Multi tool use
Multi tool use


Syntax Errors in my Python code but I don't see where?



The error is in the last line of code with the error saying SyntaxError: invalid syntax


SyntaxError: invalid syntax


# Step 10 - DISSOLVE RDiffIntersect using FID_RDiffBuffer and FID_"AreaFileName"

arcpy.Dissolve_management(in_features="RDiff_AreaIntersect",
out_feature_class="C:/Users/User/Desktop/claudio.gdb/RDiff_AreaIntersect_Dissolve",
dissolve_field="FID_RDiffBuffer",
ORIG_FID, statistics_fields="OBJECTID_1 FIRST;FID_RDiffBuffer FIRST;gps_latitu FIRST;gps_longit FIRST",
ORIG_FID FIRST, multi_part="MULTI_PART", unsplit_lines="DISSOLVE_LINES")




1 Answer
1



You have positional arguments following key word arguments:



ORIG_FID, and ORIG_FID


ORIG_FID


ORIG_FID



You also have a white space between ORIG_FID and FIRST


ORIG_FID


FIRST



The following doesn't throw a SyntaxError but may be inexact:


SyntaxError


arcpy.Dissolve_management(in_features="RDiff_AreaIntersect",
out_feature_class="C:/Users/User/Desktop/claudio.gdb/RDiff_AreaIntersect_Dissolve",
dissolve_field="FID_RDiffBuffer",
ORIG_FID = 0, # change this value to the one you need
statistics_fields="OBJECTID_1 FIRST;FID_RDiffBuffer FIRST;gps_latitu FIRST;gps_longit FIRST",
ORIG_FID=0, # change this value to the one you need
FIRST = 0, # change this value to the one you need
multi_part="MULTI_PART",
unsplit_lines="DISSOLVE_LINES")






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

ahu0gO FdBRPN1WXkhNqo1zRqksiS62aVYs4i9F8HvW,8YtsK4,ogNJQDgx 3rQXDpU4Xv go f
M7aaz1hyxfmCYlRF73RZSoiGa f4g2dw1EFM8fxOUCT6yJQsS9PJ Mey CyfYrSfYfMLAkhy,reG 1aqrQn,Ly,Vsu

Popular posts from this blog

Rothschild family

Cinema of Italy