Writing a SharePoint list to delta file format and I get this error- list index out of range. I have included all the required columns to be fetched from sharepoint and check the datatype when writing it using StructType.
df_columns = t.StructType([ t.StructField("column1", t.StringType(), True), t.StructField("column2", t.StringType(), True), t.StructField("column3", t.StringType(), True) ]) 
This is the sharepoint list settings page. column1,column2,column 3 are the required fields with datatype as shown. There's the default title column, but I'm not using that, and neither is it required.
Earlier I got the URL forbidden error, once I put in the current set of credentials, it moved to this error.
Why am I still getting this error?