web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

PO Header and Lines Template Error

(1) ShareShare
ReportReport
Posted on by 32
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)
  • Elonna Profile Picture
    32 on at
    PO Header and Lines Template Error
    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.
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    1,326 on at
    PO Header and Lines Template Error
    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
    32 on at
    PO Header and Lines Template Error
    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.
     
  • Elonna Profile Picture
    32 on at
    PO Header and Lines Template Error
    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.
  • André Arnaud de Calavon Profile Picture
    298,031 Super User 2025 Season 2 on at
    PO Header and Lines Template Error
    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?
  • Suggested answer
    CA Neeraj Kumar Profile Picture
    1,326 on at
    PO Header and Lines Template Error
    Hi Elona, 
     
    Please revisit my article to identify if there is any gap you feel..
     
     
    Regards,
    Neeraj Kumar

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 886 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 870 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 697

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans