Hi esri community,
I'm trying to upload a locally saved excel file as a feature layer but I keep running into the "Job Failed" error, very similar to a post I saw regarding the same issue here.
This is the code I've written so far:
import arcgis
import os
import datetime as dt
import pandas as pd
from arcgis.gis import GIS
from arcgis.features import GeoAccessor, GeoSeriesAccessor
from numpy.random import rand
gis = GIS()
agol_gis = GIS("organization link","username","password")
# Loading in the Bight data
bight = pd.read_excel(r'C:\Users\GisUser\Desktop\bight18-field-clean.xlsx', sheet_name = "grab", header = 0)
sdf = GeoAccessor.from_xy(bight, 'latitude','longitude')
lyr = sdf.spatial.to_featurelayer('bight18grabtest', gis=agol_gis)
I am currently using VS Code and my environment seems up to date. Is there something I am missing here? Any help on this is greatly appreciated!
Best,
Mina