NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
mamatha
Posts: 1
Joined: Tue Oct 21, 2014 5:12 am

NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000

Post by mamatha » Tue Oct 21, 2014 5:20 am

i am trying to read the data using .CSV file .The code working fine with chrome but the same not working for Firefox through the error

"NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref], line 3 (Error code: -1001)" .Please help me to resolve it .

VERSION BUILD=8070701 RECORDER=CR
SET !REPLAYSPEED SLOW
SET !DATASOURCE scenario11.csv
SET !DATASOURCE_COLUMNS 40
SET !LOOP 2
URL GOTO={{!COL3}}Modules/Home/Login.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:UserNameField CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:form1 ATTR=ID:PasswordField CONTENT={{!COL2}}
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ddlDatabase CONTENT=${{!COL4}}
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=ID:LoginButton
chivracq
Posts: 9374
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: NS_ERROR_UNEXPECTED: Component returned failure code: 0x

Post by chivracq » Wed Oct 22, 2014 9:01 am

mamatha wrote:i am trying to read the data using .CSV file .The code working fine with chrome but the same not working for Firefox through the error

"NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref], line 3 (Error code: -1001)" .Please help me to resolve it .

Code: Select all

VERSION BUILD=8070701 RECORDER=CR
SET !REPLAYSPEED SLOW
SET !DATASOURCE scenario11.csv
SET !DATASOURCE_COLUMNS 40
SET !LOOP 2
URL GOTO={{!COL3}}Modules/Home/Login.aspx
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form1 ATTR=ID:UserNameField CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:form1 ATTR=ID:PasswordField CONTENT={{!COL2}}
TAG POS=1 TYPE=SELECT FORM=ID:form1 ATTR=ID:ddlDatabase CONTENT=${{!COL4}}
WAIT SECONDS=2
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:form1 ATTR=ID:LoginButton
CIM...! :mrgreen:
You post in the Firefox Sub-Forum but your Script mentions a CR Version, so your Config is completely unclear...

Search the Forum for the RuntimeError, this Problem has already been addressed several times...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Cybes
Posts: 31
Joined: Tue Oct 06, 2009 12:06 am

Re: NS_ERROR_UNEXPECTED: Component returned failure code: 0x

Post by Cybes » Wed Oct 22, 2014 2:09 pm

It's potentially a by-product of your CSV file if it uses the incorrect encoding format. Make sure it is encoded as UTF-8 with BOM. BOM = Byte Order Mark. Notepad++ (Windows) / TextWrangler and BBEdit (OS X) allows you to do so if it isn't in the right format.

PS. SET !DATASOURCE_COLUMNS is no longer required in iMacros 8.8.2/8.8.5
Post Reply