I was following this tutorial:
Tutorial: Define a new feature layer | Documentation | ArcGIS Developers
And I continue to get an error message that says: "There was an error while adding this item".