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 :
Finance | Project Operations, Human Resources, ...
Answered

PO Header and Lines Template Error

(3) ShareShare
ReportReport
Posted on by 49
Hello,
 
I have created an 'Open in Excel' template for PO Header and Lines. It works correctly in that it opens the PO and associated lines, but if data is changed then we try to publish, we get 'row was updated outside of Excel' error. Sometimes we can refresh the data, make the change(s) again, it will publish the second time.
 
We've tried refreshing the data before making the changes the first time, but still get the same error.
 
I am wondering if there is something I missed in creating the template? I did make sure the key fields for the header and lines are included in each section.

 
Thank you for any input.
 
Elonna
Categories:
I have the same question (0)
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    5,135 Super User 2026 Season 1 on at
    Hi Elona, 
     
    Please revisit my article to identify if there is any gap you feel..
     
     
    Regards,
    Neeraj Kumar
  • André Arnaud de Calavon Profile Picture
    305,150 Super User 2026 Season 1 on at
    Hi Elonna,
     
    Can you share the full sync logs? Do you have this error on the header, the lines, or both? How many lines do you have in the template? What is the order for publishing the entities in the the settings?
  • Elonna Profile Picture
    49 on at
    Neeraj,
     
    That is exactly what I did. 
     
    The template option has been loaded and is available. When we have a PO open, we use the template to open that PO. Then changes are made, specifically to the warehouse in our testing, then we publish it and get the error.

    Thank you for your response.
  • Elonna Profile Picture
    49 on at
    Andre, I just went in and tried it again, only one row out of 42 errored this time, but it is the same error. Usually all of lines error, or it will publish the first line then error on all other lines. The errors are occurring in the lines section, not the header. Number of lines vary, could be 30 - 100 approximately. Again, when I open the PO in Excel using the template, the header and lines are correct.
     
     
    I do not see any settings about what order to publish the entities. There is a check box to publish sequentially and it is checked.
     
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    5,135 Super User 2026 Season 1 on at
    Hi Elonna, 
     
    Thanks for the information, i found similar issue in LCS library, please check if this applicable in your scenario as well.
     
    Here i am try to think the root cause in your case.. might be due to changes done at header level and also at line level, header level changes or changes at first line is somehow trying to update other lines which are already changed before publishing. Please let us know your thought around this.
     
    Regards,
    Neeraj Kumar
  • Elonna Profile Picture
    49 on at
    Neeraj,
     
    We are not changing the header at all. Since we are pulling it in when the PO is being viewed, thought it needed to be included.

    We have a similar template for Sales Order Header and Lines and it does not throw this error.
    I have compared the options in both templates (SO and PO) and they are set the same.
  • Verified answer
    Syed Haris Shah Profile Picture
    1,661 Super User 2026 Season 1 on at
    Hi @Elonna,
     
    This error is caused by the concurrency check in D365 F&SCM. When both the PO header and lines are updated in the same publish action, the system often detects background changes and raises the message “Row was updated outside of Excel.”

    You already know the best practice, always refresh the data first, then make changes, and only then publish. This ensures you are working with the latest version of the record.

    For bulk updates, however, I strongly recommend using separate entities for headers and lines instead of combining them in a single template. Keeping them separate minimizes concurrency conflicts and makes publishing more reliable.
     
    If you still wanna use single file for both make sure DataAreaId is included in both header and line and check if it work for you without error. Otherwise using separate entity is best the option.
     
    If you find this answer helpful, please consider verifying the answer. 👍
     
    Regards,
    Syed Haris Shah
  • Elonna Profile Picture
    49 on at
    Thank you, Syed. 
     
    The lines only will work for us.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 802

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 636 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 534

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans