I understand I am using:
(input_destinations_csv) is a pandas dataframe
sdf_destinations = pd.DataFrame.spatial.from_xy(input_destinations_csv, 'Longitude', 'Latitude')
# Convert to Feature Class
sdf_destinations.spatial.to_featureclass(location=destinations_fc, overwrite=True)
I do the same for the origins. And then am running:
arcpy.LargeNetworkAnalysisTools.SolveLargeODCostMatrix(
Origins = sdf_origins,
Destinations = sdf_destinations,
Network_Data_Source = network_dataset,
Travel_Mode = "Driving Time",
Time_Units = "Minutes",
Distance_Units = "Miles",
Max_Inputs_Per_Chunk = 1000,
Max_Processes = 4,
Output_Updated_Origins = current_dir + '\Output_Origins',
Output_Updated_Destinations = current_dir + '\Output_Destinations',
Output_Format = 'Feature class',
Output_OD_Lines_Feature_Class = current_dir + '\Ouput_OD_Lines',
Cutoff = 240
)
But am getting an error that I am not currently able to interpret.
ExecuteError: ERROR 000582: Error occurred during execution.