Tuesday, 14 February 2017

MapGuide Logfile - two warnings and what they mean


MapGuide log file contains the following warnings:

<2017-02-14T08:54:36> 4712 Ajax Viewer 10.99.66.2 Administrator
 Warning: An exception occurred in FDO component.
        Beim Abrufen eines Eigenschaftenwerts stimmte der Eigenschaftentyp nicht überein. 
 StackTrace:
  - MgStylizationUtil.ExceptionTrap() line 813 file StylizationEngine.cpp
  
the error message translates roughly as 
  "property value and property typ do not match"
  
The message was caused by the following filter definition:  

W_ID_TYPE  = 1 AND  (   W_ID_TYPE_IP  NULL    OR   NOT  W_ID_TYPE_IP  IN ( '1') )

W_ID_TYPE_IP is numeric but the value is given as string.  
  
 The second one:
  
<2017-02-14T12:19:44> 3444 10.99.66.65 Anonymous
 Warning: An exception occurred in FDO component.
        Die Kennung 'w_id_type' wurde nicht erkannt. 
 StackTrace:
  - MgStylizationUtil.ExceptionTrap() line 813 file StylizationEngine.cpp  
  
the error message translates roughly as 
  "property 'w_id_type' not found."

The message was caused by the following filter definition:  

w_id_type  IN ( 11)   AND NOT  ID_SITE_TYPE  IN (2007)

Property names as case-sensitive. The feature class does not contain 'w_id_type' but 'W_ID_TYPE'.


Unfortunately for both warnings no further information is given to where exactly the issues occur. I stumbled across the cause of the first warning by looking for the cause of the second warning. The second warning tells you exactly what the problem is - unfortunately I only realized that after I had spent several hours looking for it. 'w_id_type' is an attribute we use in many feature classes and 71 layers reference the attribute in filter expressions. It was somehow obvious that there is a problem in one of the layers but not in all of them as the warning did not appear all the time. Took me quite some time to figure out what was going on - despite the warning being clear about it.

AIMS 2017





  
  

No comments:

Post a Comment