This project is read-only.
1

Closed

Make sure to only use property names that are defined by the type

description

Hi,
When I tried to update catalog, an error occurred:

Why?

An error occurred when trying to save Catalog (ManualBooks)
System.Data.Services.Client.DataServiceRequestException: An error occurred while processing this request. ---> System.Data.Services.Client.DataServiceClientException: <?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code /><m:message xml:lang="en-US">An error occurred while processing this request. The property 'TargetType' does not exist on type 'VirtoCommerce.Foundation.Data.Catalogs.Property'. Make sure to only use property names that are defined by the type.</m:message></m:error>
at System.Data.Services.Client.BatchSaveResult.<HandleBatchResponse>d__6.MoveNext()
--- End of inner exception stack trace ---
at System.Data.Services.Client.BatchSaveResult.HandleBatchResponseInternal(ODataBatchReader batchReader)
at System.Data.Services.Client.BatchSaveResult.HandleBatchResponse()
at System.Data.Services.Client.BaseSaveResult.EndRequest()
at System.Data.Services.Client.DataServiceContext.SaveChanges(SaveChangesOptions options)
at VirtoCommerce.Foundation.Data.DSClientBase.Commit()
at VirtoCommerce.ManagementClient.Core.Infrastructure.ViewModelDetailAndWizardBase1.DoSaveChanges()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at VirtoCommerce.ManagementClient.Core.Infrastructure.ViewModelDetailBase
1.<SaveUI>d__2.MoveNext()
Closed Feb 24, 2015 at 7:18 PM by Woland
Migration issue

comments

egism wrote Nov 10, 2014 at 8:17 AM

Hi,
column 'TargetType' was added to Property just in version 1.12. An old version database could be the reason for the error. There are migration scripts available for keeping the DB current.