function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LinThawLinThaw 

ANT Deploy Error on Custom object and Queue

Hi,

When I am trying to deploy custom object and queue,
I got the following error.

This View Unique Name already exists or has been previously used. Please choose a different name.

When I remove list view from xml file, the error was clear.

If there is another way to solve this error please let me share.
Because I want to retrieve and deploy by automation.

Thank in advance
Regards,
LinThaw
sunil mali 11sunil mali 11
This is happening becasue of FSL has been enabled in your org. Whenever you try to update the list view with scope "Assigned to me" using ANT that error is thrown. Its a known bug and we need to follow some workaround till its fixed.

You need to follow the below workaround to prevent this:
- Manually change the list view
- If you're gonna deploy by automation, then make sure that the filter uses "All Service Appointments" instead of “Assigned to me” scope.

Try this.

Thanks.
LinThawLinThaw
Thanks sunil,

I also found following issue, it maybe related to my problem.
But it is concerning with filter setting. I have no filter setting.

https://success.salesforce.com/issues_view?id=a1p3A000000EAiMQAW&title=this-view-unique-name-already-exists-error-when-trying-to-modify-a-list-view-in-org-having-fsl-package-via-metadata-api

Regards,
LinThaw