Showing results for 
Search instead for 
Do you mean 

Mutable Opportunity Error

Bronze Super Contributor
Posts: 1,284
Country: USA

Mutable Opportunity Error

When the user deletes an opportunity field such as “User 1” the Opportunity class throws an error.


Sudo Code:

Dim strUserFieldOne as string = CurrentOpportunity.User1


Error thrown “Invalid column name: USER1 Parameter name: realName”


-                              cOpportunity.User1        {Act.Framework.MutableEntities.MutableEntityMetaDataArgumentException}                Object

+                             Data       {System.Collections.ListDictionaryInternal}          System.Collections.IDictionary

                                HelpLink               Nothing                String

                                InnerException Nothing                System.Exception

                                Message              "Invalid column name: USER1 Parameter name: realName"         String

                                ParamName       "realName"        String

                                Source  "Act.Framework"             String

                                StackTrace          "   at Act.Framework.MutableEntities.MutableEntityMetaData.GetTableColumnFromParts(String tableName, String columnName, Table& table, Column& column, Boolean isReal, Boolean checkIsDisplayed)    at Act.Framework.MutableEntities.MutableEntityMetaData.LookupColumnByName(String fullName, Boolean isReal)    at Act.Framework.Opportunities.Opportunity.OpportunityFieldCollection.get_Item(String name, Boolean isReal)    at Act.Framework.Opportunities.Opportunity.get_User1()"             String

+                             TargetSite           {System.Reflection.RuntimeMethodInfo}            System.Reflection.MethodBase



Could it be a little more eloquent returning null or nothing?


Thanks for watching....


-- Jim Durkin