When I'm trying to deploy the native Task object to another sandbox, I am getting errors:
- objects/Task.object (Task.CompletedTasks) -- Error: Value too long for field: Name maximum length is:40 (line 193, column 16)
- objects/Task.object (Task.DelegatedTasks) -- Error: Value too long for field: Name maximum length is:40 (line 222, column 16)
- objects/Task.object (Task.RecurringTasks) -- Error: Value too long for field: Name maximum length is:40 (line 286, column 16)
- objects/Task.object (Task.UnscheduledTasks) -- Error: Value too long for field: Name maximum length is:40 (line 334, column 16)
The errors are referring to Task list views that were recently as part of the Summer '19 release. Salesforce added a label to the list view metadata:
<label>ENCODED:{!FilterNames.Task_DelegatedTasks}</label>
This is over 40 characters, so the deployment using the metadata API is throwing an error. Is anyone else having the same issue able to figure out what the problem is? Also, where would be some documentation on ENCODED for ListView labels?
I was able to do a mock deployment by manually editing the label in the metadata. The deployment succeeded
force-app/main/default/objects/Task/listViews
to our .forceignore file. I did submit a ticket with salesforce on this. I'll post back when I get a response