Skip to content
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

No warning/error if data file can't be found #58

Open
vishnushukla opened this issue Jul 22, 2021 · 3 comments
Open

No warning/error if data file can't be found #58

vishnushukla opened this issue Jul 22, 2021 · 3 comments

Comments

@vishnushukla
Copy link

I was trying to import JSON files using the Dynamics 365: Data Importer Release task. My file name was starting with the prefix "ExtractedData". It was neither importing file nor giving an error message/warning. Below is the log of import task

image

When I tried to import the same file with ExtractedData prefix using CDS data migrater import xrm toolbox it worked. Later, I changed the filename prefix to "ExportedData" and it worked from "Dynamics 365: Data Importer Release task". We should handle this and give an appropriate error message/ warning like No file found something like that.

@tdashworth
Copy link
Contributor

Thanks for raising this @vishnushukla. I feel this issue is best placed in the engine itself rather than the ADO release task which is just an interface to it. I'll transfer the issue.

@tdashworth tdashworth transferred this issue from Capgemini/azure-devops-extension-xrm-release Jul 22, 2021
@tdashworth tdashworth changed the title Issue on Dynamics 365: Data Importer Release task No warning/error if data file can't be found Jul 22, 2021
@tdashworth
Copy link
Contributor

@vishnushukla Can you provide a zip of the config files and data you were using? Please try to keep the same file structure and also provide a full log from ADO.

I have been looking at the code and it should have logged out a message if there was no file.

Many thanks

@tdashworth
Copy link
Contributor

Ah! Since there are no files it doesn't log anything because string.empty is returned.

https://www.github.com/Capgemini/xrm-datamigration/tree/master/src%2FCapgemini.Xrm.DataMigration.FileStore%2FDataStore%2FDataFileStoreReader.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants