Updation doesnt work

updation doesnt work with newly added rows (rowids are as same as ids of wt i want to update in the server)…but it adds new rows in the server…why ?

Hi.
Try to turn on logging on server side:

$grid_connector->enable_log("log.txt");

After that try to update existing row one more time.
Log file will be created, attach it here, please.