ILookup Row Error - System.MissingMethodException

Discussions related to custom development with Select.
Post Reply
timothymeyer16
Posts: 37
Joined: Mon Jun 14, 2021 9:47 am

ILookup Row Error - System.MissingMethodException

Post by timothymeyer16 »

Good afternoon,

I'm attempting create a new row on a lookup table and I'm seeing an unexpected error.

I've successfully added rows before with the same code in a different application.

The SoftPro.ClientModel is referenced in the project.


(Apologies for the formatting, the buttons were not working. )


Code:
ILookupRow newRow = TableData.marketingSource.NewRow();
TableData.marketingSource.Rows.Add(newRow);
ILookupValue lookupCode = newRow.NewValue(false, row["NewLowestCode"].ToString()); // Generated by system in "UpdateSourceTable"
newRow["LookupCode"] = lookupCode;
lookups.ApplyChanges(TableData.marketingSource);





Error:

System.MissingMethodException: Method not found: 'System.String SoftPro.ClientModel.StringExtensions.SafeIntern(System.String)'.



Server stack trace:

at SoftPro.OrderTracking.Client.Orders.OrderItemAttributeData.OnDeserialized(StreamingContext context)

at ReadOrderItemAttributeDataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )

at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)

at ReadArrayOfOrderItemAttributeDataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )

at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)

at ReadOrderItemTypeDataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )

at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)

at ReadOrderTypeDataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )

at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract dataContract, XmlReaderDelegator reader)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)

at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)

at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)

at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)

at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlDictionaryReader reader, Boolean verifyObjectName)

at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.PartInfo.ReadObject(XmlDictionaryReader reader, XmlObjectSerializer serializer)

at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameterPart(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeParameter(XmlDictionaryReader reader, PartInfo part, Boolean isRequest)

at System.ServiceModel.Dispatcher.DataContractSerializerOperationFormatter.DeserializeBody(XmlDictionaryReader reader, MessageVersion version, String action, MessageDescription messageDescription, Object[] parameters, Boolean isRequest)

at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeBodyContents(Message message, Object[] parameters, Boolean isRequest)

at System.ServiceModel.Dispatcher.OperationFormatter.DeserializeReply(Message message, Object[] parameters)

at System.ServiceModel.Dispatcher.ProxyOperationRuntime.AfterReply(ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)

at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)



Exception rethrown at [0]:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

at SoftPro.OrderTracking.Client.Orders.OrderStoreService.GetOrderType()

at SoftPro.OrderTracking.Client.Orders.OrderStoreServiceClient.GetOrderType()

at SoftPro.OrderTracking.Client.Orders.OrderStore.EnsureOrderTypeData()

at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.GetOrderItemTypes()

at SoftPro.OrderTracking.Client.Metadata.MetadataCache.SoftPro.OrderTracking.Client.Metadata.IMetadataCache.GetOrderEntityTypes()

at SoftPro.OrderTracking.Client.Lookups.Validations.OverlayContextValidationAttribute.<OnValidate>d__1.MoveNext()

at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)

at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)

at SoftPro.ClientModel.DomainObject.GetValidationFailures(Descriptor descriptor, ValidationAction action)

at SoftPro.ClientModel.DomainObject.GetErrors(Descriptor descriptor)

at SoftPro.ClientModel.DomainObject.System.ComponentModel.IDataErrorInfo.get_Error()

at SoftPro.ClientModel.EnumerationExtensions.Validate(IEnumerable`1 objects)

at SoftPro.OrderTracking.Client.Lookups.Lookups.SoftPro.OrderTracking.Client.Lookups.ILookups.ApplyChanges(ILookupTable[] tables)

at SourceManagement.UpdateSourceTable.AddRow.Add(DataRow row) in C:\_Master_\V.13\C#Applications\Form\SourceManagement\SourceManagement\UpdateSourceTables\AddRow.cs:line 136
timothymeyer16
Posts: 37
Joined: Mon Jun 14, 2021 9:47 am

Re: ILookup Row Error - System.MissingMethodException

Post by timothymeyer16 »

Update: Repulling the table before upload solves the problem.

This is solved.
timothymeyer16
Posts: 37
Joined: Mon Jun 14, 2021 9:47 am

Re: ILookup Row Error - System.MissingMethodException

Post by timothymeyer16 »

Please ignore the last comment, the true culprit was a improper SKD version reference
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: ILookup Row Error - System.MissingMethodException

Post by BobRichards »

I'm glad it worked out.
Bob Richards, Senior Software Developer, SoftPro
Post Reply