rsousa88 / datamigrationtool Goto Github PK
View Code? Open in Web Editor NEWPlugin for XrmToolBox to migrate data between Dataverse instances
License: MIT License
Plugin for XrmToolBox to migrate data between Dataverse instances
License: MIT License
Hi Rui,
Thank you for creating a data export to JSON plugin for XrmToolBox.
When I export from the Case (incident) table, the list of columns/attributes has "Status Reason" (statuscode), but it does not have "Status" (statecode).
My understanding is this is because column "Status" has IsValidForCreate == false.
Could I please ask the reason DataMigrationTool does not export columns that have IsValidForCreate == false?
Considering that IsValidForUpdate == true, the data should be exportable for future update of the record.
If a person wants to import the data into another system, the "Status" column is obviously very important and should be exportable.
I believe the relevant c# code is in DataMigrationControl.cs (see below).
Would it be possible to please remove the line: .Where(att => att.IsValidForCreate != null && att.IsValidForCreate.Value)
Kind Regards,
Thomas
DataMigrationControl.cs:
// filter valid attributes
args.Result = tableData.Metadata.Attributes
.Where(att => att.IsValidForRead != null && att.IsValidForRead.Value)
.Where(att => att.IsValidForCreate != null && att.IsValidForCreate.Value)
.Where(att => att.DisplayName != null && att.DisplayName.UserLocalizedLabel != null && !string.IsNullOrEmpty(att.DisplayName.UserLocalizedLabel.Label))
.Select(att => new Models.Attribute
{
Type = att.AttributeTypeName.Value.EndsWith("Type") ? att.AttributeTypeName.Value.Substring(0, att.AttributeTypeName.Value.LastIndexOf("Type")) : att.AttributeTypeName.Value,
LogicalName = att.LogicalName,
DisplayName = att.DisplayName.UserLocalizedLabel.Label,
Updatable = att.IsValidForUpdate.Value
})
.ToList();
when trying to connect different instances of the same tenant getting error
Error attempting to import a record. Attached input and stack trace.
err-stack.txt
msdyn_workorder-example.json
Unable to Export. "Could not load file or assembly BetterFolderBrowser"
Hi,
In the context of a deployment from DEV-->UAT, I would like to export/import the content of table teamroles .
As I cannot find this table in the list of available tables, does it mean that this export is forbidden ? if so, why ? and would it be possible to add this features ?
Many thanks in advance.
Hi,
When i import a Whole Number field cause error "Incorrect attribute value type System.Int64" because it used Int64 instead Int32 (
JsonConvert will use Int64 to deserialize integer type).
Can you fix this issue?
Thanks & regards!
On my DEV environment, I have a Team being synchronized on an Azure Security Group.
I've exported its data and got a file called team.json.
When I try to import it with no change on my target environment (where it does not yet exists), I'm getting the following error:
ERROR: Type Mismatch: Type of Attribute: Team.azureactivedirectoryobjectid is: System.Guid. However, Type of passed-in value is: System.String;
I'm getting the same behaviour anytime I'm trying to export, then import a Team being synchronized on an Azure Security Group.
Thks for your help. Regards
There is an error when you try to import data values based on decimal type.
I have tried to change "." by "," or using the value between "" but it throws a validation error in the json format file or the data value format, hence I cannot change it.
Could you revise this?
Based on Issue #8, it seems like the previous filtering of the N:N tables is removed.
However, the table is in grey colour (probably because it does not support import) and all the attributes of the table are marked as "Invalid Attributes" and only visible when the "Hide Invalid Attributes" is unchecked.
It is understood that the CUD operations are not supported for those N:N tables as mentioned in Issue #8 but it would be great if the tool would allow importing the exported data by Associate and Disassociate requests.
Currently, only the following error message is present when I attempt to import the data to N:N table.
When importing an exported data set where one of the attributes is a date, the import of that row generates an error.
Row error: "ERROR: Incorrect attribute value type System.String"
key-value pair that, when removed, allows import to succeed (leaving the field below null in target) {
"key": "fakeprefix_dateoflastcontact",
"value": "/Date(1649332800000)/"
}
failing attribute schema definition:
Edited to add: THANK YOU for this great tool. I particularly enjoy the ability to export to json, where reference data can be added to a code repository for safe-keeping. Thanks again!
When importing an exported data set where one of the attributes is a multi-select option set, the import of that row generates an error. In the case below, only one option of the multi-select option set was selected.
Row error: "ERROR: Incorrrect attribute value type System.Object[]"
key-value pair that, when removed, allows import to succeed (leaving the field below null in target)
{
"key": "fakeprefix_fieldname",
"value": [
{
"__type": "OptionSetValue:http:\/\/[schemas.microsoft.com](http://schemas.microsoft.com/)\/xrm\/2011\/Contracts",
"Value": 810050000
}
]
}
failing attribute is a multi-select option set.
Thank you in advance, and thank you once again for this tool.
Hi ,
I am getting below when I am trying to import data using generated JSON.
"Error: The user name is required"
Any idea what must be causing it?
Thanks for this great tool!
Couple of suggestions/feature requests:
Thanks again,
Veljko
Steps to reproduce
Expected Result
Settings for the table are imported.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.