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
Bassamb DialloBassamb Diallo 

UserTerritory2View:MALFORMED_QUERY: Enter a filter criterion with one AccountId

Dears members,

I would like to export the whole table UserTerritory2View in .csv but it seems not to be possilbe using data loader or the SF Workbench.

I get the error message: Enter a filter criterion with one AccountId.

Of course you can export one record or specify all record id you want to export.

Has some one faced this issue ?
Is there  way to export all records from the table UserTerritory2View ?

Thanks in advance!

I read this topic which is not helping me.

Lex
ShirishaShirisha (Salesforce Developers) 
Hi Bassamb,

Greetings!

You can check the below documentation on how you can export the territories which doesn't mention to provide the AccountId.

https://help.salesforce.com/articleView?id=000327565&type=1&mode=1

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri