Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

400: Data object not provided error

(0) ShareShare
ReportReport
Posted on by

We are trying to import invoices from CRM to D365 for financials using web services.  When trying to supply the document date, we are receiving the following error:  400: Data object not provided error.

We are passing the data through, and have tried to pass also the posting date.  Overall we need to be able to have the invoices created the same way that they are in CRM.

Any information would be very helpful! thank you!

Categories:
  • Community Member Profile Picture
    on at
    RE: 400: Data object not provided error

    Just want to add some details for Kaydee.

    We created an class named Invoice which has a field called Document_Date. Then we used DataContractJsonSerializer to serialize the class. here is the code:

    var ser = new DataContractJsonSerializer(typeof(Invoice),

                       new DataContractJsonSerializerSettings

                       {

                           DateTimeFormat = new DateTimeFormat("MM/dd/yyyy")

                       }

                   );

    Finally we called the ODataV4 web service to push the invoice in. 

    Without the Documnent_Date field, the response is 201: created. But with this field, we got a 400: Data object not provided.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans