Error code 80040203 (Invalid Argument) error occurs when you try to import a solution into Microsoft Dynamics 365
This article provides a solution to an error that occurs when you try to import a solution into Microsoft Dynamics 365.
Applies to: Microsoft Dynamics 365 Customer Engagement Online
Original KB number: 4514229
Symptoms
When you try to import a solution in Dynamics 365, you receive the following error message:
"The import of solution: <Solution Name> failed.
Error Code 80040203."
Note
This error code is documented in Web service error codes with the following information:
Name: InvalidArgument
Hex: 80040203
Number: -2147220989
Invalid argument.
Cause
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:
Type: Relationship
Name: bpf_<entity>_<publisher>_<BPF Name>
Download the Log File that when opened to the Components page will show:
ItemType: Entity Relationship
Name: bpf_<entity>_<publisher>_<BPF Name>
ErrorCode: 0x80040203
ErrorText: Attribute Display Name for id: <GUID>, objectcolumn: DisplayName and labelTypeCode: Attribute not specified
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.
Resolution
Microsoft is aware of this issue and is working on a change to remove this relationship after a delete then update.
There are two workarounds for this issue:
Option 1 - Update Solution File
If you need to import the solution and can't recreate the solution package, then remove the relationship from the solution.
Unzip the solution.
Edit the customization.xml.
Search for the relationship mentioned in the error: bpf_<entity>_<publisher>_<BPF Name>
Delete all the XML for the EntityRelationship:
<EntityRelationship Name="bpf_<entity>_<publisher>_<BPF Name>"> ... </EntityRelationship>
Save the file.
Zip the entire directory.
Import the solution again.
Option 2 - Remove the relationship from the source and recreate your solution
It's a long-term resolution and will fix the issue for the next export of the solution.
Open the source organization.
Select Settings / Customizations / Customize the System
Select the Entity in the relationship:
bpf_<entity>_<publisher>_<BPF Name>
Expand 1:N Relationships.
Locate the relationship:
bpf_<entity>_<publisher>_<BPF Name>
Select and delete the relationship.
Publish All Customizations.
Export the solution and import it into the target.
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור