RasterLoc = "C:/Users/Me/Documents/Project/ScriptHydro" VectorLoc = "C:/Users/Me/Documents/progect/ScriptHydro/xArcHydro.gdb" ArcHydroTools.SetTargetLocations("HydroConfig","Layers",RasterLoc,VectorLoc)
Traceback (most recent call last): File "C:\Users\Me\Documents\Project\ScriptMethodPart2.py", line 20, in <module> ArcHydroTools.SetTargetLocations("HydroConfig","Layers",RasterLoc,VectorLoc) File "C:\Program Files (x86)\ESRI\WaterUtils\ArcHydro\bin\ArcHydroTools.py", line 62, in SetTargetLocations raise e ExecuteError: System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at ESRI.APWR.ArcHydroGPTools.AHSetTargetLocations.Execute(IArray paramvalues, ITrackCancel trackcancel, IGPEnvironmentManager envMgr, IGPMessages message) in C:\Builds\HydroSolutions\10.1_ArcHydro\Sources\ArcHydroTools\src\ArcHydroGPTools\AHSetTargetLocations.vb:line 434 Failed to execute (SetTargetLocations).
Is it still looking for "\" in 2017?