I have one sandbox(dev) and one prod environment. I'm trying to move solution from dev to prod but I get an error after the latest CRM update.
I get an error saying I can't change tracking for the opportunity entity since mobile offline is already enabled. It's not possible to change tracking on opportunity in CRM customizations (it's grayed out).
This is the error from the trace log:
>Crm Exception: Message: You can not disable change tracking for opportunity entity since mobile offline is already enabled, ErrorCode: -2147087967
[2017-04-10 12:19:26.196] Process: w3wp |Organization:17293462-d679-465e-9211-11428f4d562a |Thread: 50 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 003d726d-beb8-4fad-95e9-f99de3643876 |ActivityId: 003d726d-beb8-4fad-95e9-f99de3643876 | ErrorInformation.LogError ilOffset = 0x25
>MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: You can not disable change tracking for opportunity entity since mobile offline is already enabled
Error Number: 0x800609A1
Error Message: You can not disable change tracking for opportunity entity since mobile offline is already enabled
Error Details: You can not disable change tracking for opportunity entity since mobile offline is already enabled
Source File: Not available
Line Number: Not available
Request URL:
Stack Trace Info: [CrmException: You can not disable change tracking for opportunity entity since mobile offline is already enabled]
at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
*This post is locked for comments
I fixed this by programmatically changing metadata of entities:
RetrieveEntityRequest accountEntity = new RetrieveEntityRequest
{
EntityFilters = EntityFilters.Entity,
LogicalName = "account"
};
RetrieveEntityResponse accountEntityResp = (RetrieveEntityResponse)_orgService.Execute(accountEntity);
EntityMetadata AccountEntity = accountEntityResp.EntityMetadata;
AccountEntity.CanChangeTrackingBeEnabled = new BooleanManagedProperty(true);
AccountEntity.ChangeTrackingEnabled = true;
UpdateEntityRequest updateAccount = new UpdateEntityRequest
{
Entity = AccountEntity
};
_orgService.Execute(updateAccount);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156