Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: datawindow update error number 20001

$
0
0

all info as below:

 

PB: 11.5.1

ASE: 12.5.4

this error come out from PB app when call dw.Update()

 

 

dbms = 'SYC Adaptive Server Enterprise'

dbparm = ''Release='12.5', OJSyntax='PB', UTF8=1, DateTimeAllowed='Yes', Host='howks301', AppName='PH.OE.kzhou''

autcommit = true

 

 

If make no change on the datawindow, run dw.update() will have no error.

 

 

I made change by pb code like:

 

 

dw.SetItem(i,"mycol", value)

 

 

then run dw.update(), will get above error. Item 0019 is the column value.

 

 

The table primiary key is col1, col2.

SQL for this DW is something like:

select * from mytab where col1 = :arg

 

 

0019 value for col2. part of the key.

 

the entire message is:

Number 20001 Item 0019 is not used. Please make initial adjustment first.

No changes made to database.

Update mytab Set mycol = 'new value' where col2 ='0019' and col1 = 'arg value' and mycol = 'old value'


Viewing all articles
Browse latest Browse all 7329

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>