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 :
Business Central forum

Cannot Create Invoice: "Create Invoice in Dynamics 365 for Sales" Button

(0) ShareShare
ReportReport
Posted on by

I have Financials integrated with Sales aka CRM. My goal is to have an invoice that exists in Financials to be created into CRM. This can usually be done with the out-of-the-box button called "Create Invoice in Dynamics 365 for Sales"

So far,

- Sales orders are syncing from CRM to Financials with no problem. 

- I can create an invoice in Financials from the sales order with no problem.

- When I try to press the button "Create Invoice in Dynamics 365 for Sales", I get an error saying "Cannot find record to be updated".

Since all the other integrations are working (such as products/items, sales orders, customers) I can conclude that it is not a permissions error. I believe that there is something going wrong during the creation of the invoice in CRM and as a result, when Financials tries to update that invoice, it errors out because it does not exist. 

Any suggestions?

-----------------------------------------------------------------------------------------------------

A Microsoft rep told me that it might have to do with my Invoice entity in CRM because it is a customized entity. She was telling me that certain fields have to exist in a certain order. Is this true? And if so, how can I find this order? 

How can I even find the original default invoice entity prior to my customizations? 

Categories:
  • ikoletic Profile Picture
    2,202 on at

    Hi Brian

    Can you provide us with exact error message as it appears in Synchronization log of POSTEDSALESINV-INV Job Queue Entry (Log details) for devs diagnose.

    Thanks

  • Community Member Profile Picture
    on at

    An error occurred when communicating with Microsoft Dynamics CRM. Detailed description: Cannot find record to be updated.

    Screen-Shot-2017_2D00_12_2D00_05-at-7.55.15-AM.png

  • Suggested answer
    ikoletic Profile Picture
    2,202 on at

    Hi Brian

    Ran this by developers and this seems to be an issue on CRM side. Most frequently such error appears when workflow associated to invoice in CRM can't be executed properly. Keep in mind that only D365 Sales integration is supported. We know for a fact that for e.g. adding Project Service Automation app on CRM changes business logic in CRM significantly and can make even data synchronization fail.

    Finding how invoice entity looked like before customizations on CRM side is a question for CRM forum.

  • Community Member Profile Picture
    on at

    Solved! I had a workflow that executed whenever a new invoice was created and that was creating an error! Once I deactivated that particular workflow the "Create Invoice in Dynamics 365 for Sales" button started working and the invoice was created in CRM.

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans