The problem is definitely spreading as customers upgrade their Office 365. This weekend a company in Australia encountered the problem when I started reporting it in these threads. Today a company in the UK is getting it. And both of these companies are using our templates that are different than the ones I used in the test cases.
Word VBA function InsertFile is now crashing on all Builds since the 15427.20194 Aug 3

We have a product that assembles custom templates that has been around for about 20 years that operates on a library of about 1 million Word .docx format templates. With users across the world. Its been in use on every version of Word since 2003 (currently only supported on all versions of Office 365 but it also still works on Word 2010). We use the Word VBA function InsertFile to append pages together to create custom documents from the template library.
Recently all of our installations started failing with the InsertFile function returning error 5097 - "Word has encountered a problem". And customers have started reporting the same error.
We traced it down to being introduced in the Aug 3 Build of Word and verified it on multiple computers (both Windows 10 and Windows 11). If we roll back our Word builds through the last 7 builds we found that in every case the June 14, June 29, July 6, July 18 builds of Word work fine. But all 3 builds after that which are Aug 3, Aug 9 and the current Aug 31 fail.
Something appears to have been recently broken by Microsoft in the Aug 3 Build that causes the Word's InsertFile function to fail. This happens on almost all of our Word .docx template we have tested. But when inserting the file via the Word toolbar's Insert > Text From File > browse to the file it works. But it always fails now when calling the InsertFile function via VBA. Again, this is not a new macro or templates. This code has been in use for almost 2 decades and the templates have been in use for for many years. Its only since the recent builds of Word that installations are now failing everywhere.
When we save those templates that are failing to insert as legacy Word 2003-2007 .doc files they do insert without failing. And if we save them in Word 2003-2007 XML or as an OpenDocument .odt file they insert correctly. But if we save them as Word XML .xml or Strict Word XML .xml they also fail. So there is nothing corrupt in the files, it appears to be inserting current format files of various file formats are failing, but saving those failing files as legacy formats they insert correctly.
How do we submit this problem to Microsoft's Office 365 team as a bug report?
I have a test script and test files but I can't attach them to this forum, it won't accept zip or .doc/.docx files
Developer technologies Visual Basic for Applications
4 answers
Sort by: Most helpful
-
-
Heinrich Moser 26 Reputation points
2022-09-14T15:24:32.783+00:00 How do we submit this problem to Microsoft's Office 365 team as a bug report?
The "official" way is to use the File/Feedback option available in the Office 365 desktop applications. You can see all the feedback you submitted via this option in the Microsoft 365 Admin Center under Health/Product feedback.
That having been said, my personal experience in reporting bugs (Access VBA) is that getting the attention of the MVPs is more likely to lead to success. They have channels to the developers that we mere mortals don't.
-
Ian Lauder 21 Reputation points
2022-09-14T15:33:02.027+00:00 Thanks, I posted this in another forum somewhere that got picked up by a couple MVPs who reproduced the problem over the weekend and one sent it up the chain to the Office 365 team.
-
Ian Lauder 21 Reputation points
2022-10-04T21:55:13.747+00:00 Were about another month in and the most recent Office 365 update and Windows updates didn't change anything. We continue to have more and more customers from all over the world experiencing this problem. Some are new customers some are longtime customers who have had their Office 365 recently updated who are now having the problem. All are using different sets of templates as well. The only commonality is that they all have one of the more recent Office 365 builds that is failing.