.IIF import of invoices error
Personal Finance Forum Index Personal Finance
Talk about personal finance: tax, stocks, retirement, funds, and financial software.
Investing Blog
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web pftalk.com
.IIF import of invoices error

 
Post new topic   Reply to topic    Personal Finance Forum Index -> QuickBooks Software
Author Message
Bouncee
Guest





Posted: Sun Nov 13, 2005 1:01 am    Post subject: .IIF import of invoices error Reply with quote

Hi all

I am having a problem importing invoice transactions into QB 2002 Pro
(UK) from .IIF file.
For each transaction I get message "Error on line n: Can't record
invalid transaction",
where n is the 'ENDTRNS' line.
The error message isn't much use - doesn't pinpoint where the error is!
(How can Intuit get away with this?!)
Tried changing values - no dice.
File is tab-delimited, basically same as sample from web site.
One transaction is (tabs in obvious places):
!TRNS TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM
!SPL TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM INVITEM
!ENDTRNS
TRNS INVOICE 10/28/2005 Accounts Receivable Bialystock and
Bloom 290 55b
SPL INVOICE 10/28/2005 Flights/Travel -290 Flights
ENDTRNS
Any help gratefully received - o/wise have to continue entering
manually.
I've checked customers and accounts already set up in QB.
I can e-mail file if necessary.
BTW, file is produced by Access database process.
TIA
Martin Ball

Back to top
Roger Spencelayh
Guest





Posted: Sun Nov 13, 2005 4:27 pm    Post subject: Re: .IIF import of invoices error Reply with quote

Quote:
I am having a problem importing invoice transactions into QB 2002 Pro
(UK) from .IIF file.
For each transaction I get message "Error on line n: Can't record
invalid transaction",
where n is the 'ENDTRNS' line.


Hi Martin.

You have my sympathies. I went through the process of trying to do the
same on QB 2005 for a client, and came to the conclusion that the help
files are at best misleading, at worst downright wrong.

Anyway, to your problem.

Quote:
!TRNS TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM
!SPL TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM INVITEM
!ENDTRNS
TRNS INVOICE 10/28/2005 Accounts Receivable Bialystock and
Bloom 290 55b
SPL INVOICE 10/28/2005 Flights/Travel -290 Flights
ENDTRNS


Assuming that the format is the same for 2002 as 2005, you're missing
the transaction ID between the SPL and INVOICE fields. They need to be
just line numbers, so you data should look like:

!TRNS TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM
!SPL TRANSID TRNSTYPE DATE ACCNT NAME AMOUNT DOCNUM INVITEM
!ENDTRNS
TRNS INVOICE 10/28/2005 Accounts Receivable Bialystock and
Bloom 290 55b
SPL 1 INVOICE 10/28/2005 Flights/Travel -290 Flights
ENDTRNS

(!SPL and SPL lines changed)

Hope that helps.

Oh, one other thing, because I can't see from the message content, each
line should end with a single tab character. And never save it from
Excel as it ruins the format. If it's any help, below are the header
lines I created in the Access VBA code. It uses the FileSystemObject
text stream to build the file. (Watch for line wrap)

Set tstIIF = fso.OpenTextFile(strIIFFileFullName, ForAppending,
True, _
TristateFalse)
strLine = "!TRNS" & vbTab & "TRNSTYPE" & vbTab & "DATE" & vbTab
& _
"ACCNT" & vbTab & "NAME" & vbTab & "AMOUNT" & vbTab & _
"DOCNUM" & vbTab & "MEMO" & vbTab & "CLEAR" & vbTab & _
"TOPRINT" & vbTab & "ADDR1" & vbTab & "ADDR2" & vbTab & _
"ADDR3" & vbTab & "ADDR4" & vbTab & "ADDR5" & vbTab & _
"DUEDATE" & vbTab & "PAID" & vbTab & "SHIPDATE" & vbTab
tstIIF.WriteLine strLine
strLine = "!SPL" & vbTab & "SPLID" & vbTab & "TRNSTYPE" & vbTab
& _
"DATE" & vbTab & "ACCNT" & vbTab & "NAME" & vbTab & _
"AMOUNT" & vbTab & "DOCNUM" & vbTab & "PRICE" & vbTab & _
"QNTY" & vbTab & "INVITEM" & vbTab
tstIIF.WriteLine strLine
strLine = "!ENDTRNS" & vbTab
tstIIF.WriteLine strLine

--
Roger
Back to top
Bouncee
Guest





Posted: Sun Nov 13, 2005 11:48 pm    Post subject: Re: .IIF import of invoices error Reply with quote

Thanks for info, Roger.

I think SPLID is red herring - 2002 help doesn't say necessary.

What may well be problem is that there is no tab at end of any lines.

I'll try tab at end of !ENDTRNS and ENDTRNS.
Curiously though, no.of tabs at end of lines in web site sample (using
Notepad):
NONE for TRNS and SPL,
SEVENTEEN (!) for ENDTRNS.

Regards,
Martin Ball

Back to top
 
Post new topic   Reply to topic    Personal Finance Forum Index -> QuickBooks Software All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Ford dealer - Credit Repair - Bad Credit Auto Loans - Auto loans bad credit


AddThis Feed Button
New Topics Powered by phpBB