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)

AIF Document Services - Date and real datatypes are blank (inbound ports)

(0) ShareShare
ReportReport
Posted on by 257

Hi there

I have created a document service connected to an inbound port for a new table that has the following fields:

- ProjId          (Extends ProjId)
- Worker        (Extends HcmPersonnelNumberId)
- Category     (Extends ProjCategoryId)
- TranTxt        (Extends TransTxt)
- TransDate  (Extends TransDate)
- Hours           (Extends Qty)

I have created a simple Windows Form Application in Visual Studo th that populates all the above fields using my newly created document service. The document service is executing without errors. All fields are populated except for the "Hours" and "TransDate" fields.

There seems to be an issue with the real and date type fields populating into AX from an inbound port. I have spent quite some time trying to figure out what I am doing wong and just cannot seem to figure it out. I just wondered if anyone else has come accross this same issue?

The values used from the Visual Studio application come from cells within a grid. I am populating the HOURS and TRANSDATE fields in the following manner:

timesheetTable.TransDate =

 

Convert.ToDateTime(transDate.Value);

 

timesheetTable.Hours =

 

Convert.ToDecimal(Hours.Value);

 

 

 

*This post is locked for comments

I have the same question (0)
  • Mohamed Amine HAMDAOUI Profile Picture
    540 on at

    Hello Sarah,

    If field is not a string, you have to explicitly declare that the field has been specified. For your example, you may find that the class timeSheetTable have two boolean fields that you have to set to true :

    timeSheetTable.HoursSpecified = true;

    timeSheetTable.TransDate = true;

    Could you give me a feedback if it works for you?

    Best regards,

  • Suggested answer
    Sarah Ryan Profile Picture
    257 on at

    Hi Mohamed

    Thanks so much! This worked perfectly.

    I can't believe it was so simple. I was tearing my hair out yesterday.

  • Sumit Bhagat Profile Picture
    121 on at

    Hi Mohamed,

    I am also searching for this solution from last month.. thank you very much for your support.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    I am facing same issue. Can help me where to change this boolean fields 'true'?

    I have searched but not found any boolean fields.

    Thanks

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