Index: /issm/trunk-jpl/src/c/shared/Enum/Enum.h
===================================================================
--- /issm/trunk-jpl/src/c/shared/Enum/Enum.h	(revision 16366)
+++ /issm/trunk-jpl/src/c/shared/Enum/Enum.h	(revision 16367)
@@ -6,5 +6,5 @@
 const char* EnumToStringx(int enum_in);
 void        EnumToStringx(char** string,int enum_in);
-int         StringToEnumx(const char* string_in);
+int         StringToEnumx(const char* string_in,bool notfounderror=true);
 
 #endif
Index: /issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp	(revision 16366)
+++ /issm/trunk-jpl/src/c/shared/Enum/StringToEnumx.cpp	(revision 16367)
@@ -12,5 +12,5 @@
 #include "../Exceptions/exceptions.h"
 
-int  StringToEnumx(const char* name){
+int  StringToEnumx(const char* name,bool notfounderror){
 
    int  stage=1;
@@ -619,4 +619,7 @@
    }
 	/*If we reach this point, the string provided has not been found*/
-	_error_("Enum " << name << " not found");
+	if(notfounderror)
+		_error_("Enum " << name << " not found");
+	else
+		return -1;
 }
Index: /issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh
===================================================================
--- /issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh	(revision 16366)
+++ /issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh	(revision 16367)
@@ -73,5 +73,5 @@
 #include "../Exceptions/exceptions.h"
 
-int  StringToEnumx(const char* name){
+int  StringToEnumx(const char* name,bool notfounderror){
 
    int  stage=1;
@@ -97,5 +97,8 @@
 cat <<END >> $ISSM_DIR/src/c/shared/Enum/StringToEnumx.cpp
 	/*If we reach this point, the string provided has not been found*/
-	_error_("Enum " << name << " not found");
+	if(notfounderror)
+		_error_("Enum " << name << " not found");
+	else
+		return -1;
 }
 END
