I am trying to write a Notebook/Python script that will:
- select certain records from an SQL Server
- then export to a File GDB Table
- then I run the XY Table To Point tool to create a Feature Class from the File GDB Table
- then complete an Overwrite Web Layer, which is in our ArcGIS Online account
I was able to publish the original web layer and also overwrite it manually via mouse and keyboard in ArcGIS Pro.
My script will complete steps 1-3, but at step 4 I am getting this error:
'dict' object has no attribute '_validateParameters'
Libraries and Modules I have uploaded:

Error can also be seen at the bottom of this screenshot (screenshot is also attached, incase this one is showing up too blurry) of my Notebook:

I have filled in the Name, Summary, and Tags (required items in order to publish or overwrite a web layer) for my map:

When I complete steps 1-3 above in my Notebook, those required items stay in place for the Map:

However, when I complete steps 1-3, the required items in the Feature Class will disappear, not sure if I need those required items in the Feature Class when I do a Share > Publish Web Layer / Overwrite Web Layer:

Does anyone know have an idea of why I am having this issue? Or could help point me in the right direction of Help Documentation?
Thank you