laptop and a wrench

Bug

Error creating spatial view on existing database view that was created using an aggregate function on a column containing null values. ORA-24347: Warning of a NULL column in an aggregate function

Last Published: July 19, 2017 ArcSDE/Enterprise Geodatabase
Bug ID Number NIM085629
SubmittedOctober 12, 2012
Last ModifiedApril 2, 2025
Applies toArcSDE/Enterprise Geodatabase
Version found10.1
StatusWill Not Be Addressed

Additional Information

Not in the plan to address this issue in the command line tool. Please consider the functionality of registering a view with the geodatabase added at ArcGIS 10.5.

Workaround

Using a conversion function such as NVL or DECODE on the field that is used for the SUM in creating the original tabular view referenced works fine. Also an obvious workaround of ensuring that there are no null values within the field that is used within the aggregate function.SQL> CREATE OR REPLACE FORCE VIEW SDE.VIEWnvl (ID, NONNULLE) AS SELECT MIN (id) AS id, SUM (NVL(nonnulle,0)) AS nonnulle FROM SDE.TEST;View created.<a href="file:c:/arcgis/ArcSDE/commands/bin" target="_blank">c:\arcgis\ArcSDE\commands\bin</a>>sdetable -o create_view -u sde -p sde -i sde:oracle11g:tenpointone -T nvlsecondview -t "viewnvl v,monde_stgeometry fc" -c v.nonnulle,<a href="http://v.id" target="_blank">v.id</a>,fc.shape -w fc.objectid=<a href="http://v.id" target="_blank">v.id</a>ArcSDE 10.1 for Oracle11g Build 679 Thu Apr 5 11:43:21 2012Attribute Administration Utility-----------------------------------------------------Successfully created view nvlsecondview.

Steps to Reproduce

Bug ID: NIM085629

Software:

  • ArcSDE/Enterprise Geodatabase

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options