Skip to main content
Question

I am trying to copy a file and in the copied file I have to search some string and replace that. Replace option is in ms word package and the file is .doc as well, but still I fail to replace text as I get the below as error

  • April 27, 2022
  • 7 replies
  • 436 views

Forum|alt.badge.img+4

An unexpected error occurred.

The supplied data appears to be in the OLE2 Format. You are calling the part of POI that deals with OOXML (Office Open XML) Documents. You need to call a different part of POI to process this data (eg HSSF instead of XSSF)

Please contact system administrator.

7 replies

  • Cadet | Tier 2
  • July 16, 2022

Same Issue with ME anyone who had solved this problem


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • July 16, 2022

Change the format to .docx.. you are allowed to do that​


  • Cadet | Tier 2
  • July 16, 2022

Thanks for replying @Enab Rasool Dar Basmati​ 


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • March 6, 2023

Mine is a .docx but I am still getting this error.  This bot used to work about a year go.  Any other ideas?


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • March 6, 2023

I figured it out.  It was a word doc that was wrapped with MS AIP. 


Forum|alt.badge.img
  • Cadet | Tier 2
  • April 19, 2023

Can anyone give answer for this error?


Forum|alt.badge.img+1
  • Cadet | Tier 2
  • July 21, 2023

opened the original document.doc file and saved as .docx worked for me. after changing the format manually i was able to use replace text in MS word action.