You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Provides a solution to an error that occurs when you try to import a solution into Microsoft Dynamics 365.
4
4
ms.reviewer:
5
-
ms.topic: troubleshooting
6
5
ms.date: 03/31/2021
7
6
ms.custom: sap:Working with Solutions
8
7
---
9
-
# Error code 80040203 (Invalid Argument) error occurs when you try to import a solution into Microsoft Dynamics 365
8
+
# Error code 80040203 (Invalid Argument) error when importing a solution into Dynamics 365
10
9
11
10
This article provides a solution to an error that occurs when you try to import a solution into Microsoft Dynamics 365.
12
11
13
-
_Applies to:_ Microsoft Dynamics 365 Customer Engagement Online
12
+
_Applies to:_ Microsoft Dynamics 365
14
13
_Original KB number:_ 4514229
15
14
16
15
## Symptoms
17
16
18
-
When you try to import a solution in Dynamics 365, you receive the following error message:
17
+
When you try to [import a solution](/powerapps/maker/data-platform/import-update-export-solutions) into Dynamics 365, you receive the following error message:
19
18
20
-
> "The import of solution: \<Solution Name> failed.
21
-
Error Code 80040203."
19
+
> The import of solution: \<Solution Name> failed.
20
+
> Error Code 80040203.
22
21
23
22
> [!NOTE]
24
23
> This error code is documented in [Web service error codes](/powerapps/developer/common-data-service/org-service/web-service-error-codes) with the following information:
25
24
>
26
25
> Name: InvalidArgument
27
26
> Hex: 80040203
28
27
> Number: -2147220989
29
-
> Invalid argument.
28
+
> Invalid argument.
30
29
31
-
## Cause
32
-
33
-
This error can be caused for several reasons. If your error dialog references the following type of object, review the rest of this article for a potential solution:
30
+
Additionally, the error dialog may reference the following type of object:
> **ErrorText**: Attribute Display Name for id: \<GUID>, objectcolumn: DisplayName and labelTypeCode: Attribute not specified
41
+
42
+
## Cause
44
43
45
-
The Name of the Entity Relationship will be the concatenation of an Entity and a Business Process Flow (BPF). The Entity was previously removed from a BPF stage and replaced with a different Entity, and then the BPF was updated while still activated. The entity has been removed from the BPF but the relationship still exists in the schema. So it's exported with the solution from the source. This relationship is causing the error to be displayed.
44
+
The error occurs because the schema retains an entity relationship that should be removed after the entity is deleted from the [Business Process Flow (BPF)](/power-automate/business-process-flows-overview).
46
45
47
-
## Resolution
46
+
The referenced **Entity Relationship** name is a concatenation of an entity and a BPF. This issue occurs when an entity is removed from a BPF stage and replaced with a different entity, followed by an update to the BPF while it's still activated. Although the entity is removed from the BPF, the relationship persists in the schema and is exported with the solution from the source. This lingering relationship causes the error during import.
48
47
49
-
Microsoft is aware of this issue and is working on a change to remove this relationship after a delete then update.
48
+
## Resolution
50
49
51
-
There are two workarounds for this issue:
50
+
Microsoft is aware of this issue and is working on a fix to automatically remove the relationship after a delete and update. In the meantime, the following workarounds can be used to resolve the issue.
52
51
53
-
### Option 1 - Update Solution File
52
+
### Option 1 - Update solution file
54
53
55
-
If you need to import the solution and can't recreate the solution package, then remove the relationship from the solution.
54
+
If you can't recreate the solution package and need to proceed with the import, you can manually remove the problematic relationship from the solution file.
56
55
57
-
1. Unzip the solution.
58
-
2. Edit the customization.xml.
56
+
1. Unzip the solution file.
57
+
2. Edit the **customization.xml** file.
59
58
3. Search for the relationship mentioned in the error: bpf_\<entity>\_\<publisher>\_\<BPF Name>
60
-
4. Delete all the XML for the EntityRelationship:
59
+
4. Delete all XML references to the `EntityRelationship`:
0 commit comments