dbTalk Databases Forums  

how to get more info than 'INVALID FORMAT' error with onpladm onWindows?

comp.databases.informix comp.databases.informix


Discuss how to get more info than 'INVALID FORMAT' error with onpladm onWindows? in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian
 
Posts: n/a

Default how to get more info than 'INVALID FORMAT' error with onpladm onWindows? - 02-10-2010 , 08:49 AM






I have a similar scenario to the one here from awhile ago:

http://groups.google.com/group/comp....8d2320bd7c761c

I have around 160 tables to load, using pipe-delimited text files. We
have an older series of batch files that a previous developer wrote to
load Informix data, but they're not working with the new version of
Informix (11.5) that I installed. I'm running it on a Windows 2003
server.

I've modified the batch file to execute the onpladm commands for one
file, so this batch file looks like this;

onpladm create project dif31US-1-table-Load

onpladm create object -F diffdbagidaxsid.dev
onpladm create object -F diffdbagidaxsid.fmt
onpladm create object -F diffdbagidaxsid.map
onpladm create object -F diffdbagidaxsid.job

When I run this, it successfully creates the project and device array,
but I get an error creating the format. The only error I get is:

Create object DELIMITEDFORMAT diffile1fmt failed!
Invalid format!

The diffdbagidaxsid.fmt file is as follows:

BEGIN OBJECT DELIMITEDFORMAT diffile1fmt

PROJECT dif31US-1-table-Load
CHARACTERSET ASCII
RECORDSTART
RECORDEND
FIELDSTART
FIELDEND
FIELDSEPARATOR |
BEGIN SEQUENCE
FIELDNAME agid
FIELDTYPE Chars
END SEQUENCE
BEGIN SEQUENCE
FIELDNAME axsid
FIELDTYPE Chars
END SEQUENCE

END OBJECT

As you can see, it is only 2 columns. It originally had nothing
following the CHARACTERSET. I've tried it with ASCII, and with the
numeric code for ASCII, and still get the same error.

Is there any way to get a more verbose error message?

Reply With Quote
  #2  
Old   
John Carlson
 
Posts: n/a

Default Re: how to get more info than 'INVALID FORMAT' error with onpladmon Windows? - 02-20-2010 , 06:33 PM






Brian wrote:
Quote:
I have a similar scenario to the one here from awhile ago:

http://groups.google.com/group/comp....8d2320bd7c761c

I have around 160 tables to load, using pipe-delimited text files. We
have an older series of batch files that a previous developer wrote to
load Informix data, but they're not working with the new version of
Informix (11.5) that I installed. I'm running it on a Windows 2003
server.

I've modified the batch file to execute the onpladm commands for one
file, so this batch file looks like this;

onpladm create project dif31US-1-table-Load

onpladm create object -F diffdbagidaxsid.dev
onpladm create object -F diffdbagidaxsid.fmt
onpladm create object -F diffdbagidaxsid.map
onpladm create object -F diffdbagidaxsid.job

When I run this, it successfully creates the project and device array,
but I get an error creating the format. The only error I get is:

Create object DELIMITEDFORMAT diffile1fmt failed!
Invalid format!

The diffdbagidaxsid.fmt file is as follows:

BEGIN OBJECT DELIMITEDFORMAT diffile1fmt

PROJECT dif31US-1-table-Load
CHARACTERSET ASCII
RECORDSTART
RECORDEND
FIELDSTART
FIELDEND
FIELDSEPARATOR |
BEGIN SEQUENCE
FIELDNAME agid
FIELDTYPE Chars
END SEQUENCE
BEGIN SEQUENCE
FIELDNAME axsid
FIELDTYPE Chars
END SEQUENCE

END OBJECT

As you can see, it is only 2 columns. It originally had nothing
following the CHARACTERSET. I've tried it with ASCII, and with the
numeric code for ASCII, and still get the same error.

Is there any way to get a more verbose error message?
File format looks OK

Are there any hidden / weird characters in the file?

JWC

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.