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 :
Microsoft Dynamics AX (Archived)

Data Migration - Demand Forecast (ForecastSales table)

(0) ShareShare
ReportReport
Posted on by 400

I'm working on migrating the Forecast Sales table. The only issue (as far as I know) involves the "parent-child" relationship that exists between the records (the child's Expand ID is the Rec ID of the parent).

I already have a custom method for generating the Expand ID, however when I run through the migration process, every Expand ID is 0. It is entirely possible that the code in my method could be wrong, but I've been thinking that I might have to migrate the data in two steps: import "parent" records first and "children" records second.

Has anybody had success with importing ForecastSales in general or with importing in multiple steps?

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Brandon Wiese Profile Picture
    17,788 on at

    Are you importing using X++ or another method that is "within AX"?  If so, the expansion of the parent into children should happen automatically as part of the insert()/update() code on that table.  I think this behavior only occurs when the Active flag is set on the parent.

    If you are importing directly via SQL or another tool, you should know that ForecastSales is not the end of the story.  Records insert into ForecastSales generate records directly into ForecastInvent, which is the foundation for most Master planning forecast analysis.  In other words, a single "inside AX" insert into ForecastSales can result in many records in both ForecastSales and ForecastInvent, but all of it is fully automatic.

    Please elaborate further on your import process.

  • keane.dcunha Profile Picture
    400 on at

    I am using the Data Import/Export Framework tool.

    My issue specifically is this: The records seem to import correctly all the way into the Target table (ForecastSales table), however when I open the table in the AOT, I notice that ExpandID/RecID relationship between the parent/children records is missing.

    Is it possible that I have to import records into the ForecastInvent table as well?

  • keane.dcunha Profile Picture
    400 on at

    To anybody else who also comes across this problem:

    In the end, you do need a custom method to set the Expand ID appropriately. However, Brandon's point about the ForecastInvent table is also important. There is a method initFromForecastSales that populates ForecastInvent automatically when entering data through the AX Client interface into ForecastSales. For whatever reason, the ForecastInvent table was not being updated when importing using the DMF tool. As a result, I had to write a little block of code in my custom method that called that 'init' method.

  • Community Member Profile Picture
    on at

    Hi Keane,

    I'm working on importing the sales forecasts and wanted to check on your approach to the custom method for the DMF process. Did you write something at the table level or DMF classes. 

    Can I please have your direct email if possible. 

    Thanks,

    Ken

  • Community Member Profile Picture
    on at

    Hi Brandon ,

    I am working on importing data into forecast sales by using DIXF, but i'm facing a situation, after importing data it is visible in the table but not in the demand forecast sales Form. can you help me in this regard.

    Thanks in advance,

    Srikanth Adi

  • Guy Terry Profile Picture
    28,970 Moderator on at

    Do you have records in ForecastSales, but you can't see them in the Demand forecasting form?

    The ForecastSales form has an inner join to the InventDim table. On your records, do they have an InventDimId? Does this InventDimId exist in the InventDim table?

    Also note that you should also be getting records in the table ForecastInvent. Are those being created by the import?

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans