Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Release Product variants C#

(0) ShareShare
ReportReport
Posted on by 5

Hi. Please help with realeasing product variants in C#

I have used example of creating and realeasing product, product variant from:

 //https://nuxulu.com/ax2012/integration/2016/12/27/CRUD-Items,-products,-products-master-dimension,-variants-using-AIF-in-Dynamics-AX-2012-R3.html

I have error: 

The element 'InventDimCombination' in namespace 'schemas.microsoft.com/.../InventDimCombination' has incomplete content. List of possible elements expected: 'RecId, RecVersion, RetailVariantId' in namespace 'http://schemas.microsoft.com/dynamics/2008/01/documents/InventDimCombination'.

What i havent done or why this error occurs..? 

Steps I have done:

1. Create ProductMaster

2. Create ProductMasterDimension

3. Create DistinctProductVariant

4. Release Product

5. Release ProductVariants - "ERROR"

Table InventDimCombination does not have any records, so the variant suggestion on realeasing products is empty and also realeased variant form is empty:

2020_2D00_08_2D00_31-12_5F00_37_5F00_49_2D002A20_Microsoft-Dynamics-AX_2C20_-_2D00_-_0E202A20_AS-FAVOR_2C20_-_5B000E202A20_SQL2008_2C202A205F00_-_0E202A20_Session-ID_2C20_-_2D00_-_0E202A20_10_2C202C205D000E20_-_2D00_-_0E20_.png

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Release Product variants C#

    You can remove the Enabled and "Mandatory" checkbox for Retail variant and activate the Inbound port .

    Please try entering data again and check if it works.

  • rivo Profile Picture
    5 on at
    RE: Release Product variants C#

    Thank You very much!! I have looked every where for understandig where the promlem was. 

    For my case i didnt sent parameter as "RetailVariant". 
    Below are the data policies.

    pastedimage1598872602398v1.png

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Release Product variants C#

    Hi,

    Could you please do the following? -

    1. Deactivate the inbound port you created.

    2. Go into Service contract customizations.

    3. Check customize documents and click on data policies.

    4. In the "Document data policies form, check the InventDimCombination fields and check if the checkbox "Required" is marked against them.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans