Closed AlexeiPoplutin closed 2 years ago
@AlexeiPoplutin Thanks for raising this issue - I agree that does seem confusing. I will ask someone to replicate the problem and investigate.
I was able to resolve the SQL error issue. Only the
And still can't figure out how the GUID mapping works, I would really appreciate it if you point me to the sample or to the documentation. Tried different combinations and couldn't make it work.
Nice one for solving the SQL error! I'm not sure where you are referring to regarding the "sample in the documentation".
We understand the confusion with the entity status and are discussing the impacts of changing this logic.
GUID mappings work by searching the Source GUID in each record of the selected type and replacing it with the Target GUID. For example, you have a default Contact to act as "Anonymous" (dev: 00000000-0000-0000-0000-000000000001
, prod: 00000000-0000-0000-0000-000000000002
). If you were importing Account records where a Contact/Customer lookup was set to Anonymous (00000000-0000-0000-0000-000000000001
), during the migration it would be replaced with 00000000-0000-0000-0000-000000000002
.
While these are Contact GUIDs, this config sits on the entity where you would find the reference i.e. Accounts.
I hope that's clear ๐
Thanks for the clarification! I was not sure on which entity the mapping should sit. On the lookup (Contact in your sample) or on the entity itself. Now I got it.
By the sample in the documentation I mean to add a screenshot like this one to the existing ones in Readme.md file, to avoid confusion. Maybe I'm not the only one who tried to insert the whole Fetch query, instead of using just a filter piece of it :)
BTW I noticed another minor issue related to the state. If the toggle is set to export only active records, the export fails for Business Unit, because no such field in that entity :)
Thanks again for your help and clarifications!
I'm glad that helped ๐
Looking into the code we have for this logic, you are right - if activeRecordsOnly
then generate some fetch for that, otherwise, if filters are provided, then use that. activeRecordsOnly
applies to all entities and there is no exception logic for this currently.
@AlexeiPoplutin This should now be fixed (in this engine). Please expect an update to the XrmToolbox plugin today. ๐
@tdashworth thanks a lot guys for developing the tool! Did you fix the issue from my last comment that "only active" toggle caused failure for some entities or the initial question that when we have active only toggle On, it ignores custom filters? :) Just curious :) Thanks again.
Both! It will now only apply the active filter when there is no custom filter and the field exists on the entity.
Description I'm trying to export data from several tables and for one of the tables I added a Fetch XML filter. If the flag "OnlyActiveRecords" is set to True, then export process ignores my filter and exports all the active records from all the tables that are described in the schema file. If I set that flag to false, the tool fails when tries to export data for the filtered entity. Log:
Fetch XML is tested in the builder and works fine.
ExportConfig:
Please correct me, if I'm doing something wrong. Thank you.