-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG-FEATURE] - Query User , but query Group ... #677
Comments
This case has been marked as 'to-be-closed', since it has no activity for the 3 days. |
Hello, Thank you for getting in touch, and my apologies for the delayed response. In SFDMU, both user and group records are handled using the same query. It's important to keep this in mind for the plugin's normal functionality when crafting a query for the user object. Cheers. |
But I need to query sepecify users instead of all 20K + users... it take much more time to fetch all users.. |
This case has been marked as 'to-be-closed', since it has no activity for the 3 days. |
This case has been closed, since it has no activity for the last 6 days. Feel free to reopen it, if you need more help. |
Hello, I apologize for the inconvenience caused by the accidental closure of the issue. I understand your use case and have identified a solution that will enable you to query the User object independently from the Group object. Consequently, I am reopening this issue to continue addressing it. Best regards. |
Hello, The issue regarding the custom query for the User object has been resolved. You can now set a dedicated query string for the User object, as detailed in our documentation: Handling Record OwnerId. Please ensure that the ExternalId you use is also supported by the Group object, as described in the documentation. Be aware that the 'Alias' field is not supported; therefore, it might still pose a problem. Consider replacing it with 'Name' or another unique field supported by both objects. Regards, |
Hello. I hope the issue has been resolved for you. I'm closing it for now. Please let me know if you have any further questions. Regards. |
Describe the bug
The latest sf cli and sfdmu plugin to migrate data related to OwnerId
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
export.json
Log file
=== Getting and analysing object metadata ...
[10:46:25.28] Fetching metadata of the CAR__c (Source) ...
[10:46:25.628] Fetching metadata of the CAR__c (Target) ...
[10:46:26.64] Fetching metadata of the User (Source) ...
[10:46:29.542] Fetching metadata of the User (Target) ...
[10:46:32.874] Fetching metadata of the Group (Source) ...
=== Preparing data migration job ...
[10:46:33.187] Building the migration strategy ...
Order of objects to query: User; CAR__c
Order of objects to delete: CAR__c; User
Order of objects to update: User; CAR__c
[10:46:33.190] Preparing of the data migration job has been completed.
=== ANALYSING DATA...
[10:46:33.369] {User} The original query string of this object is returning 623 records from the Source org.
[10:46:33.526] {User} The original query string of this object is returning 715 records from the Target org.
[10:46:33.679] {CAR__c} The original query string of this object is returning 2 records from the Source org.
[10:46:33.868] {CAR__c} The original query string of this object is returning 2 records from the Target org.
=== Triggering Add-On events ...
[10:46:33.871] No Add-On modules found to run.
[10:46:33.872] Ready to process the data.
=== Deleting old data from the Target ...
[10:46:33.873] {CAR_Type_Code__c} No records to delete.
[10:46:33.874] {User} No records to delete.
=== Source:
=== Fetching the data (STAGE 1) ...
[10:46:33.878] {User} Fetching the Source data from Org (STAGE 1: all records) ...
Command in progress... done
[10:46:43.892] [ERROR] Error during execution of the command:
Group WHERE (Type = 'Queue') AND (UserType = 'Standard')
^
ERROR at Row:1:Column:50
No such column 'UserType' on entity 'Group'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names..
[10:46:43.899] [ERROR] Execution of the command sfdmu:run has been completed. Exit code 4 (COMMAND_EXECUTION_ERROR).
[10:46:43.900] Total time elapsed: 00h 00m 32s 240ms .
_target.csv file.
When you have an issue with failed rows, attach the dump of the _target.csv file containing the error messages (at least 1-2 relevant full rows).
The text was updated successfully, but these errors were encountered: