If you have decided to migrate your data using the default Configuration Packages functionality and a rapidstart zip file, this article explains the steps for preparing the data transfer using the rapidstart zip file.
Before you start
You need a zip program that supports two formats:
-
To unpack the exported file in rapidstart format.
-
To create a file for importing in gzip archive format.
If necessary, get a zip program that supports these file formats, e.g. 7-Zip.
Export data from edoc archivelink for Dynamics 365 BC version 3 or earlier
You must first create a new configuration package in Dynamics 365 Business Central so that you can export the edoc archivelink table and the data content.
Here's how
-
Open your Dynamics 365 Business Central environment and search for the keyword Configuration Packages.
-
Click on the Configuration Packages entry to open the overview.
-
Click on New under Configuration Packages to create a new package.
-
Enter a unique and meaningful name in the General section under Code. Example: edocarchivelink (best practice: enter names for code without spaces).
-
Enter a meaningful name in the General section under Package name. Example: Data migration edoc archivelink.
-
Activate Exclude Config. Tables.
-
Go to the Tables section and enter the following table ID 89009.
-
Click on the number in the No. of Fields Included field to call up the View - Config. Package Fields overview.
-
Deactivate all fields in all records under Include Field with the exception of the following fields:
-
Field ID 1, field name No.
-
Field ID 2, field name Document Code
-
Field ID 3, field name Repository Code
-
Field ID 5, field name Primary Table
-
Field ID 6, field name Primary Key
-
Field ID 7, field name Status
-
Field ID 19, field name ECM Document Id
-
Field ID 20, field name Barcode
-
Field ID 40, field name Page ID
-
-
Open the Export package entry to export the data package and save it locally.
-
After exporting, delete the configuration package from the overview to obtain a unique entry for the import.
Once you have uninstalled the data from version 3 or earlier, edit and convert the data in the next step.
Replace table IDs in the exported "rapidstart" file
Once you have exported the data from version 3 or earlier, unzip the exported file and replace the table IDs with the table IDs from version 4.
Use your zip program to create an archive file in gzip format.
Here's how
-
Unpack the exported rapidstart zip file on your local disk.
-
Open the unzipped file with an editor, e.g. Notepad++ and replace the following values with using search and replace:
-
<TableID>89009</TableID> is replaced by <TableID>72290869</TableID>.
-
<ECMDocumentStore> is replaced by <EdocECMDocumentEntry>.
-
</ECMDocumentStore> is replaced by </EdocECMDocumentEntry>.
-
-
Save the file.
-
Use a zip program (e.g. 7-Zip) to create an archive file in gzip format.
-
Change the file extension of the new archive file from gz to rapidstart.
In the next step, import the rapidstart archive file as a configuration package into edoc archivelink version 4.
Import the prepared package into edoc archivelink version 4
To be able to use your configuration package in version 4, install the app file for edoc D365 BC archivelink and then import the prepared rapidstart file.
Install the edoc archivelink for Dynamics 365 BC version 4 app.
Here's how
-
Install the edoc archivelink for Dynamics 365 BC version 4 app.
-
Search for the keyword Configuration Packages.
-
Click Import package in the menu and select the prepared rapidstart file.
-
Click on the imported package in the overview to check the contents.
-
Click on Apply package.
The configuration has been applied.
If errors are displayed for the table, you must exclude all fields in the table from the check using the No. of Fields to Validate.
Here's how
-
Click on the number in the No. of Fields to Validate column for the incorrect record.
-
Click on Edit list in the menu.
-
Deactivate all entries in the Validate field column.
-
Repeat the steps for importing the configuration package (prepared rapidstart file).