I don't have a specific problem to troubleshoot here, I just have noticed some things about data types today that I am not sure is intentional or not.
I recently published a hosted layer from ArcPro to ArcOnline and the data type of 'Float' from Pro was translated to 'Single' on ArcGIS Online. The inconsistency is annoying here.
Then I went into a layer to see if I could add a new field with the 'single' data type, and it was not an option in the drop down menu of data types. When adding a new csv hosted feature layer however, it is possible to designate a field as a single type. Again, seems inconsistent.
I am just wondering if these inconsistencies are intentional or if there is a reason for them that I am missing.
ArcGIS field data types—ArcGIS Pro | Documentation
Float—Single-precision (32-bit) floating point numbers
Double—Double-precision (64-bit) floating point numbers
How To: Convert the Field Type in ArcGIS Online (esri.com)
terminology difference or preference perhaps? The useage/preference can vary widely within databases disciplines etc.
Yeah its seems intentional. If you want to add a single data type, you need to use the add definition call in the rest api as it stands. Hopefully that changes in the future as it does not make any sense.