Notă
Accesul la această pagină necesită autorizare. Puteți încerca să vă conectați sau să modificați directoarele.
Accesul la această pagină necesită autorizare. Puteți încerca să modificați directoarele.
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
Original KB number: 4514229
Symptoms
When you try to import a solution into 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.
Additionally, the error dialog might reference the following type of object:
Type: Relationship
Name: bpf_<entity>_<publisher>_<BPF Name>
The downloaded log file indicates the following on the Components page:
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
Cause
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).
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.
Workaround
Option 1 - Update solution file
If you can't re-create the solution package and need to proceed with the import, you can manually remove the problematic relationship from the solution file.
Unzip the solution file.
Edit the customization.xml file.
Search for the relationship mentioned in the error: bpf_<entity>_<publisher>_<BPF Name>.
Delete all XML references to 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 re-create your solution
This option provides a long-term resolution and ensures the issue is fixed for future exports 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 environment.