WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
115 stars 54 forks source link

Import config data issue #175

Closed lar-mar closed 4 years ago

lar-mar commented 4 years ago

Hi @WaelHamze,

I'm struggling with an issue when importing configuration migration data.

I defined a schema with certain entities and fields using the configuration migration utility. The schema is valid based on the tool.

I set up a dedicated pipeline for this scenario using your build tasks: image

` name: Azure Pipelines demands: powershell

Your build pipeline references an undefined variable named ‘builddomain’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

Your build pipeline references an undefined variable named ‘dynConnectionString’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

Your build pipeline references an undefined variable named ‘hotfixdomain’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

Your build pipeline references an undefined variable named ‘dynConnectionString’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab. See https://go.microsoft.com/fwlink/?linkid=865972

steps:

Issue: The configuration migration data contain an entity "Country" with some migration data I want to transfer to other environments. When using the pipeline no records are created or updated for this entity. I tried your most current task version .12 as well as the one before .9. Does not work. All other entities which are part of the config data work fine.

I used the pipeline artifact "configurationdata.zip" and imported the data via configuration migration utility (version 4.0.0.12) and the entity "Country" was updated properly. configurationdata.zip

Attached are both logfiles and it seems there is anything different when using the "Import Configuration Migration Data" build task than using the configuration utility directly. ImportDataDetailLog - ConfigMigTool.log ImportDataDetailLog - Pipeline.log

Do you have an idea?

lar-mar commented 4 years ago

@WaelHamze I did some further analysis and could determine the "Batch Mode" as root cause. As soon as I disabled the batch mode all data were imported as expected. What I'm still struglling with is that many entities are imported fine with enabled batch mode.

For now I disable the batch mode in my pipelines and accept the worse performance.

WaelHamze commented 4 years ago

@lar-mar thanks for sharing. Good to know. I think the batch more is probably something to do with the SDK itself. I'll let you know if I manage to use it successfully.