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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

DIXF ODBC Issue when mapping source to staging - Invalid data type

(1) ShareShare
ReportReport
Posted on by

Hi

I'm trying to adjust an existing custom DIXF entity to map from from an ODBC data source which connects to an SQL Server database

I have followed these steps to set it up: community.dynamics.com/.../ax-2012-import-data-from-an-odbc-through-dixf

The ODBC connection works and I can query the external database successfully using the preview button to return most of the columns

However, when I try to map a column which is of the type datetime in the external database to a column in the Ax staging table which is of the type TransDateTime, I receive a warning "Invalid data type" and the mapping cannot be saved

When I debug this process I can see a method being called DMFSourceXMLToEntityMap.EntityField:Validate and the following check being failed:


select firstonly dmfDataTypeMapping
where dmfDataTypeMapping.Source == sourceFields.FieldType (this is detected as a string, not a datetime)
&& dmfDataTypeMapping.Target == enum2str(types); (this is picked up as UtcDateTime)

if (!dmfDataTypeMapping)
{
ret = checkFailed("@DMF843");
}

I don't see an easy way around this other than just change my staging table field from TransDateTime to string

It's odd because when trying to do something similar in DIXF using a CSV file as the source I don't have any issue

Any ideas if I'm doing something wrong or if using DIXF and ODBC is flaky in Ax 2012 R2 CU7 ?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,904 Super User 2025 Season 2 on at

    Hi DynamicsAXDude,

    The CSV file itself is text, so a string. That is the reason why you don't have the issue with a CSV file. Having the staging field as string should fix your issue. Had you tried it already?

  • DynamicAxDude Profile Picture
    on at

    Hi André

    I hadn't tried it yet because it seemed contrary to the idea of having strongly typed table fields, maybe I'm going overboard by trying to have strongly typed fields on a staging table

    Just tried it an it does work, I don't get an error and the field is appearing in the preview pane now

    Thank you sir

  • DynamicAxDude Profile Picture
    on at

    I like that idea, thank you for that Crispin

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans