web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

Error "Number sequence is not set" while importing custom composite Return Order entity in D365 SCM

(0) ShareShare
ReportReport
Posted on by 45

Hi all,

We are working on integrating an OMS with Dynamics 365 SCM and are trying to create Return Orders using a custom composite data entity.

Setup:

We have created:

  • Custom header entity: OmsReturnOrderHeaderV1Entity
  • Custom line entity: OmsReturnOrderLineV1Entity
  • Custom composite entity: OmsReturnOrderCompositeV1Entity

These are based on:

  • ReturnOrderHeaderV2Entity
  • ReturnOrderLineV2Entity

We duplicated the standard entities and adjusted staging tables, relations, and composite structure. We have added RowId and ParentRowId in new entities, since the standard entities do not seem to be built for composite usage due to these missing fields.

Current Status:

  • Export using the composite entity works fine ✅

Issue:

During import execution, we get the following error in Execution log:

“Number sequence is not set”

 

The issue exists for XML when ReturnOrderNumber is passed and also without ReturnOrderNumber (set auto-generate in Mapping).

Question:

Has anyone faced a similar issue when duplicating standard entities and creating new composite entity to use in DMF?

Specifically:

  • Is there any additional logic required to trigger number sequence assignment in custom data entities?
  • Are there known limitations or best practices when duplicating entities like ReturnOrderHeaderV2Entity for composite usage?
  • Could this be due to missing standard framework calls during DMF processing?

Any guidance would be greatly appreciated.

Thanks in advance!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    304,072 Super User 2026 Season 1 on at
    Hi Gurveen,
     
    I haven't integrated return orders myself. Have you checked if the number sequence for RMA numbers are configured correctly? Can you manually create a return order in the application without the same error?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 280

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 187 Super User 2026 Season 1

#3
Venkat Profile Picture

Venkat 122

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans