NS_ERROR_UNEXPECTED: Component return code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] "

Imacros shows this error

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff 
(NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]

Please, help!!!

I run this code:

VERSION BUILD=8601111 RECORDER=FX

TAB T=1

SET !DATASOURCE livefile.csv

SET !LOOP 2

SET !DATASOURCE_COLUMNS 2

SET !DATASOURCE_LINE {{!LOOP}}

URL GOTO= "xyz.com"

TAG POS=1 TYPE=INPUT:TEXT ATTR=Name:name CONTENT={{!COL1}}

TAG POS=3 TYPE=BUTTON ATTR=STYLE:

WAIT SECONDS=5

TAG POS=1 TYPE=A ATTR=TXT:Edit

WAIT SECONDS=5

TAG POS=1 TYPE=TEXTAREA FORM=ID:product_edit_form ATTR=ID:description CONTENT=

TAG POS=1 TYPE=TEXTAREA FORM=ID:product_edit_form ATTR=ID:description CONTENT={{!COL2}}

TAG POS=1 TYPE=DIV ATTR=Class:content-header

TAG POS=5 TYPE=BUTTON ATTR=STYLE:

WAIT SECONDS=5
+3
source share
6 answers

I encountered the same problem when working with previously running imacros macro files. I noticed that if I record a new macro, it works fine. The difference between the old macro and the newly recorded macro is that the new macro file is a UTF8 file with a byte prefix.

Augmenting @Thomas'answer: ANSI UTF8 - (BOM). UTF8 0xEF, 0xBB, 0xBF (. ).

, . PSPad Program Settings/Program Part 2 .

+2

. , , ANSI UTF8, ...

+1

.csv( ) Notepad ++, UFT-8.

In my case, the csv file was generated by Excel, and it was encoded using ANSI.

+1
source

same thing here. In my case, the csv file was generated by Excel, and it was encoded using ANSI. Just open in notepad and save as UTF8

+1
source

Since I was not lucky with the UTF encoding, I decided to solve this approach:

  • Record your sample macro (Record tab)
  • Open # current.iim
  • Change as desired
  • Save as this_is_my_custom_macro.iim
  • Run this_is_my_custom_macro.iim
0
source

All Articles