Skip to content

Commit cf1ece7

Browse files
authored
some changes
1 parent 6f58840 commit cf1ece7

1 file changed

Lines changed: 28 additions & 29 deletions

File tree

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,62 @@
11
---
2-
title: Error code 80040203 Invalid Argument error
2+
title: Error Code 80040203 Invalid Argument
33
description: Provides a solution to an error that occurs when you try to import a solution into Microsoft Dynamics 365.
44
ms.reviewer:
5-
ms.topic: troubleshooting
65
ms.date: 03/31/2021
76
ms.custom: sap:Working with Solutions
87
---
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
109

1110
This article provides a solution to an error that occurs when you try to import a solution into Microsoft Dynamics 365.
1211

13-
_Applies to:_   Microsoft Dynamics 365 Customer Engagement Online
12+
_Applies to:_   Microsoft Dynamics 365
1413
_Original KB number:_   4514229
1514

1615
## Symptoms
1716

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:
1918

20-
> "The import of solution: \<Solution Name> failed.
21-
Error Code 80040203."
19+
> The import of solution: \<Solution Name> failed.
20+
> Error Code 80040203.
2221
2322
> [!NOTE]
2423
> 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:
2524
>
2625
> Name: InvalidArgument
2726
> Hex: 80040203
2827
> Number: -2147220989
29-
> Invalid argument.
28+
> Invalid argument.
3029
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:
3431

3532
> **Type**: Relationship
36-
**Name**: bpf_\<entity>\_\<publisher>\_\<BPF Name>
33+
> **Name**: bpf_\<entity>\_\<publisher>\_\<BPF Name>
3734
38-
Download the Log File that when opened to the Components page will show:
35+
The downloaded log file indicates the following on the **Components** page:
3936

4037
> **ItemType**: Entity Relationship
41-
**Name**: bpf_\<entity>\_\<publisher>\_\<BPF Name>
42-
**ErrorCode**: 0x80040203
43-
**ErrorText**: Attribute Display Name for id: \<GUID>, objectcolumn: DisplayName and labelTypeCode: Attribute not specified
38+
> **Name**: bpf_\<entity>\_\<publisher>\_\<BPF Name>
39+
> **ErrorCode**: 0x80040203
40+
> **ErrorText**: Attribute Display Name for id: \<GUID>, objectcolumn: DisplayName and labelTypeCode: Attribute not specified
41+
42+
## Cause
4443

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).
4645

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.
4847

49-
Microsoft is aware of this issue and is working on a change to remove this relationship after a delete then update.
48+
## Resolution
5049

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.
5251

53-
### Option 1 - Update Solution File
52+
### Option 1 - Update solution file
5453

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.
5655

57-
1. Unzip the solution.
58-
2. Edit the customization.xml.
56+
1. Unzip the solution file.
57+
2. Edit the **customization.xml** file.
5958
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`:
6160

6261
```xml
6362
<EntityRelationship Name="bpf_<entity>_<publisher>_<BPF Name>">
@@ -71,11 +70,11 @@ If you need to import the solution and can't recreate the solution package, then
7170

7271
### Option 2 - Remove the relationship from the source and recreate your solution
7372

74-
It's a long-term resolution and will fix the issue for the next export of the solution.
73+
This option provides a long-term resolution and ensures the issue is fixed for future exports of the solution.
7574

7675
1. Open the source organization.
77-
2. Select **Settings** / **Customizations** / **Customize the System**
78-
3. Select the Entity in the relationship:
76+
2. Select **Settings** > **Customizations** > **Customize the System**.
77+
3. Select the entity in the relationship:
7978

8079
```xml
8180
bpf_<entity>_<publisher>_<BPF Name>
@@ -90,4 +89,4 @@ It's a long-term resolution and will fix the issue for the next export of the so
9089

9190
6. Select and delete the relationship.
9291
7. Publish **All Customizations**.
93-
8. Export the solution and import it into the target.
92+
8. Export the solution and import it into the target environment.

0 commit comments

Comments
 (0)