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 :
Small and medium business | Business Central, N...
Answered

Salesperson dimension error on posting sales return error when posted invoice does not have a salesperson

(0) ShareShare
ReportReport
Posted on by 51

In BC17, I have the following situation:

  • Sales order was posted without a salesperson code, and therefore without a salesperson dimension;
  • A sales return order is created *with* a salesperson code;
  • Sales invoice lines are retrieved and populated on the sales return order.

The problem is that in this case, BC populates the salesperson code on the sales return order line from the header, but *does not* populate the relevant salesperson dimension on the lines (so we have a salesperson dimension on the header, but not on the lines).  This logically results in a salesperson dimension error when posting.

This is caused by the salesperson having a dimension requirement of "Same Code".  This does pose an issue, however, if the sales invoice was posted by a different salesperson than the sales return order and, in my view, it shouldn't.

In the "old" Copy Document, you had the option to either copy the header along with the lines or to recalculate the lines after transfer, either of which would ensure data consistency.  This idea seems to be missing here.


I have the same question (0)
  • PConijn Profile Picture
    51 on at

    I cannot seem to edit my original question, so I'll post the update here.  I reran the test with the following criteria:

    - Posted a sales order with salesperson PS which included the salesperson dimension PS;

    - Created a sales return order with the salesperson MD, leading to the dimension MD in the sales return order header;

    - Imported the lines from the posted sales invoice.

    Now, if you try to post, Cronus errors since MD has the dimension requirement of Same Code.  If you remove that, however, it will post with the salesperson *code* of MD and the salesperson *dimension* of PS and that seems a bit odd to me.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    You are correct in your testing and flow. You have a Sales Order Header that you are using Salesperson PS for, which will populate on the Posted Invoice. On the Sales Return Order, you manually entered the Header and entered MD for Salesperson. However, Copy Document will pull in the Lines, not header, for the Items and a Salesperson Code of PS. Here is a screenshot of my example:

    pastedimage1621449631847v1.png

    If you created the Return Order, leaving PS Salesperson Code, then Copy Document, you can then go to the Salesperson Code field, enter MD and this will appear:

    pastedimage1621449739540v2.png

    Click YES and the Header and Lines will sync.

    Hope this helps.

    Thanks,

    Steve

  • Verified answer
    PConijn Profile Picture
    51 on at

    Thanks for your reply, Steven. You are correct, and there are several work-arounds to get this right.

    Indeed. Copy Document will enable you to either take over the header from the posted document or recalculate the lines, thus updating the dimensions to those of the sales return order header.  

    The Select Lines to Reverse functionality, however, does not offer this option.  It cannot sync the header, since you can import lines from multiple posted documents, and it does not recalculate the lines or update the line dimensions.  In Cronus, the salespeople have a dimension value setting of "Same Code", which will cause an error when you try to post, since the salesperson dimension in the item journal line will be different from the salesperson code in that journal line.

    If you do not have your salesperson dimensions set to Same Code, then you can have a value entry with salesperson MD and salesperson dimension PS.  

    The more we have thought about it, the more we have concluded that there is no "right" answer for this one, but that there are plenty of work-arounds that the customer can tailor.

    Thank you again for your suggestion.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans