SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error during DatabaseRetrieve from large table

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error during DatabaseRetrieve from large table
Author Message
tkovinska



Joined: 09 Dec 2009
Posts: 2
Country: Ukraine

Post Error during DatabaseRetrieve from large table Reply with quote
I receive an error "An error occurred while executing 24x7 script:Line73:."

DatabaseRetrieve(message,rows)

The message is "exec stopedProcedure ..."
The call for this SP correctly returned data. Data's selected from temp table created in this SP.
But the temp table is large: there is “Warning …” during creating SP:Warning: Row size (2152 bytes) could exceed row size limit, which is 1962 bytes.

There are a lot of columns in the temp table: col_name varchar(255) null
If I narrow one column that there is no warning during create SP.

DatabaseRetrieve(message,rows) - works without errors.
Wed Dec 09, 2009 12:29 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
Well, as you said, there is a database side error. Therefore it needs to be fixed on the database side. Please ensure your stored procedure can run without errors.

For more info, please try this
http://www.google.com/search?hl=en&safe=off&rls=com.microsoft%3Aen-us&q=Row+size+could+exceed+row+size+limit%2C+which+is+1962+bytes
Wed Dec 09, 2009 1:30 pm View user's profile Send private message
tkovinska



Joined: 09 Dec 2009
Posts: 2
Country: Ukraine

Post Reply with quote
Thanks for advice.

[quote]The call for this SP correctly returned data.[/quote]

So SP call from message "exec stopedProcedure ..." return data if I execute it.
There is [b]no error on the database[/b].

There is following log during exec SP

------------------------ Execute ------------------------
Warning: Row size (2152 bytes) could exceed row size limit, which is 1962 bytes.
return status = 0
(1 rows affected)
------------------------- Done --------------------------
Thu Dec 10, 2009 3:14 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
Returned data is not an indication of error-less and warning-less processing. The warning message coming from the database precisely explains the issue "Row size (2152 bytes) could exceed row size limit, which is 1962 bytes." - again, this is your Sybase server talking, not 24x7.

If you really don't care about this warning and don't want it to trigger a job error, you have several options, for example

Code:
OnErrorResumeNext
DatabaseRetrieve(message,rows)
OnErrorStop



I still recommend to handle this error on db side, in your stored procedure - write the code in such a way that the warning is not generated. I speculate that this warning is raised when you populated temp table within the procedure, not when you retrieve data from that table.

Here is a copy and paste from Sybase manual

Error:
Msg 1708, Level 16, State 1:Warning: Row size could exceed row size limit,
which is %d bytes.

Action
If Error 511 is being caused by a table containing rows with more than the maximum row size, divide the table into two or more tables so that no row length is more than the allowable number of characters.
Thu Dec 10, 2009 9:25 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.