Focal Point
[SOLVED] Error in inserting rows

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/8027008516

January 24, 2012, 10:03 AM
Chiranjeevi
[SOLVED] Error in inserting rows
Hi All,

I want to insert rows using procedure.
I have created the procedure using below mentioned code.

-STARTLOAD
MODIFY FILE PURCHASED_WATER_TMP
FREEFORM PURCHASED_DATE/YYMD
FREEFORM PURCHASED_WATER/P33.4
FREEFORM USER_NAME/A10
FREEFORM GROUP_ID/A10
FREEFORM CREATED_DATE/A50
DATA
2012-02-09,43.56,'user','group',&DATEYYMD &TOD
END
-RUN

I am getting error as

(FOC1400) SQLCODE IS -1 (HEX: FFFFFFFF)
: Microsoft SQL Server Native Client 10.0: [] Null accessors are not supported by this provider.
(FOC1740) EXECUTE ERROR : PURCHASED_WATER_TMP
0 TRANSACTIONS: TOTAL = 1 ACCEPTED= 1 REJECTED= 0
SEGMENTS: INPUT = 0 UPDATED = 0 DELETED = 0

Please suggest me where I am wrong.

Thanks,
Chiranjeevi A.

This message has been edited. Last edited by: Kerry,


Webfocus 7702, Windows server 2008
January 24, 2012, 11:50 AM
njsden
quote:
Null accessors are not supported by this provider.


I don't use MODIFY myself so I cannot really give you any hints about the syntax you're using so I'll assume it is fine.

However, the error message you're getting comes directly from your database (MS SQL) so apparently there is a NOT NULL field in your table you're not sending a value for and the DB is complaining about that.

If you show us what the table structure is plus the contents of its related synonym (masterfile) that will allow us to better spot what may be wrong.

Please don't forget to enclose your code and table structure in "code tags" (check the </> button in the message's toolbar).



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
January 24, 2012, 01:00 PM
Tom Flynn
May want to open the Manual:

-STARTLOAD
MODIFY FILE PURCHASED_WATER_TMP
FREEFORM PURCHASED_DATE/YYMD
FREEFORM PURCHASED_WATER/P33.4
FREEFORM USER_NAME/A10
FREEFORM GROUP_ID/A10
FREEFORM CREATED_DATE/A50
MATCH KEY_COLUMN
ON MATCH UPDATE *
-* OR Unique Columns in the Segment
ON NOMATCH INCLUDE

DATA
2012-02-09,43.56,'user','group',&DATEYYMD &TOD, $
END
-RUN


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
January 24, 2012, 03:40 PM
Waz
quote:
May want to open the Manual


Agreed.

Letting MODIFY finish the code may be easy, but its far better to control how you are going to process the data.

You want to insert data, but what you have may update data as well, as it will check for existing keys. Do you want this to happen ?, should you handle existing keys ?.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 25, 2012, 07:40 AM
Chiranjeevi
Hi njsden,Tom,Waz

As of now I am working only on inserting data which is working fine.

Thanks for your suggestions.

Regards,
Chiranjeevi A.


Webfocus 7702, Windows server 2008