Msg 8631 Internal error: Server stack limit has been reached on SQL Server 2012 from T-SQL script that runs on SQL Server 2008 R2

I have an Script mostly that is generated by SSMS which works with-out issue on SQL Server 2008, but when I attempt to run it on a new fresh install of SQL Server 2012 I get an Msg 8631. Internal error: Server stack limit has been reached. Please look for
potentially deep nesting in your query, and try to simplify it.
The script itself doesn't seem to be all that deep or nested.  The script is large 2600 lines and when I remove the bulk of the 2600 lines, it does run on SQL Server 2012.  I'm just really baffled why something that SQL Server generated with very
few additions/changes AND that WORKS without issue in SQL Server 2008 R2 would suddenly be invalid in SQL Server 2012
I need to know why my script which is working great on our current SQL Server 2008 R2 servers suddenly fails and won't run on an new SQL Server 2012 server.  This script is used to create 'bulk' Replications on a large number of DBs saving a tremendous
amount of our time doing it the manual way.
Below is an 'condensed' version of the script which fails.  I have removed around 2550 lines of specific sp_addarticle statements which are mostly just copy and pasted from what SQL Management Studio 'scripted' for me went I when through the Replication
Wizard and told it to save to script.
declare @dbname varchar(MAX), @SQL nvarchar(MAX)
declare c_dblist cursor for
select name from sys.databases WHERE name like 'dbone[_]%' order by name;
open c_dblist
fetch next from c_dblist into @dbname
while @@fetch_status = 0
begin
print @dbname
SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
use ['+@dbname+']
exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
use ['+@dbname+']
exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
-- Adding the transactional publication
use ['+@dbname+']
exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
'''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
= N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
@immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
-- There are around 2400 lines roughly the same as this only difference is the tablename repeated below this one
use ['+@dbname+']
exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script =
null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509F, @identityrangemanagementoption = N''manual'', @destination_table = N''TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false'', @ins_cmd = N''CALL sp_MSins_dboTABLE_ONE'',
@del_cmd = N''CALL sp_MSdel_dboTABLE_ONE'', @upd_cmd = N''SCALL sp_MSupd_dboTABLE_ONE''
EXEC sp_executesql @SQL
SET @dbname = REPLACE(@dbname, 'dbone_', 'dbtwo_');
print @dbname
SET @SQL = 'DECLARE @dbname NVARCHAR(MAX); SET @dbname = ''' + @dbname + ''';
use ['+@dbname+']
exec sp_replicationdboption @dbname = N'''+@dbname+''', @optname = N''publish'', @value = N''true''
use ['+@dbname+']
exec ['+@dbname+'].sys.sp_addlogreader_agent @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1, @job_name = null
-- Adding the transactional publication
use ['+@dbname+']
exec sp_addpublication @publication = N'''+@dbname+' Replication'', @description = N''Transactional publication of database
'''''+@dbname+''''' from Publisher ''''MSSQLSRV\INSTANCE''''.'', @sync_method = N''concurrent'', @retention = 0, @allow_push = N''true'', @allow_pull = N''true'', @allow_anonymous = N''false'', @enabled_for_internet
= N''false'', @snapshot_in_defaultfolder = N''true'', @compress_snapshot = N''false'', @ftp_port = 21, @allow_subscription_copy = N''false'', @add_to_active_directory = N''false'', @repl_freq = N''continuous'', @status = N''active'', @independent_agent = N''true'',
@immediate_sync = N''true'', @allow_sync_tran = N''false'', @allow_queued_tran = N''false'', @allow_dts = N''false'', @replicate_ddl = 1, @allow_initialize_from_backup = N''true'', @enabled_for_p2p = N''false'', @enabled_for_het_sub = N''false''
exec sp_addpublication_snapshot @publication = N'''+@dbname+' Replication'', @frequency_type = 1, @frequency_interval = 1, @frequency_relative_interval = 1, @frequency_recurrence_factor = 0, @frequency_subday = 8,
@frequency_subday_interval = 1, @active_start_time_of_day = 0, @active_end_time_of_day = 235959, @active_start_date = 0, @active_end_date = 0, @job_login = N''DOMAIN\DBServiceAccount'', @job_password = N''secret'', @publisher_security_mode = 1
-- There are around 140 lines roughly the same as this only difference is the tablename repeated below this one
use ['+@dbname+']
exec sp_addarticle @publication = N'''+@dbname+' Replication'', @article = N''DB_TWO_TABLE_ONE'', @source_owner = N''dbo'', @source_object = N''DB_TWO_TABLE_ONE'', @type = N''logbased'', @description = null, @creation_script
= null, @pre_creation_cmd = N''drop'', @schema_option = 0x000000000803509D, @identityrangemanagementoption = N''manual'', @destination_table = N''DB_TWO_TABLE_ONE'', @destination_owner = N''dbo'', @vertical_partition = N''false''
EXEC sp_executesql @SQL
fetch next from c_dblist into @dbname
end
close c_dblist
deallocate c_dblist
George P Botuwell, Programmer

Hi George,
Thank you for your question. 
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
Thank you for your understanding and support.
If you have any feedback on our support, please click
here.
Allen Li
TechNet Community Support

Similar Messages

  • Capacity limit has been reached

    Hi Team,
    When we run a payment proposal through F110 its internally triggering Function module FI_PAYM_XML_WRITE,
    Through the transfer statement in the function module its placing the data in the designated path of application server
    (The folder is located on windows machine not on Unix machine).
    Some times its successfully placing the file and some time we are getting the SHORT DUMP as “capacity limit has been reached”,
    We already checked with our Basis team, they are telling that folder has  4.8gb more free space, so there should not space issue.
    Please let us know how to correct this.
    Thanks & Regards,
    Phani Kumar

    Hi Glen Anthony,
    I Checked the point with the Basis team, there is no restriction on the file size and we have more than sufficient space to place the fiel.
    Hi Max Bianchi,
    Below is the run time analysis, Please let me know how to correct the error.
    Runtime Errors         DATASET_WRITE_ERROR
    Short text
        Error when writing to the file "/nfs/SAPP/PIN/out/BDDPTA2BNP1467".
    What happened?
        Resource bottleneck
        The current program "SAPLDMEE5" had to be terminated because
        a capacity limit has been reached.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_FILE_IO', was not caught in
        procedure "FI_PAYM_XML_WRITE" "(FUNCTION)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        An error occurred when writing to the file "/nfs/SAPP/PIN/out/BDDPTA2BNP1467".
        Error text: "Missing file or filesystem"
        Error code: 52
    And error is occuring at transfer statement in the std function module
    FI_PAYM_XML_WRITE.
    Thanks,
    Phani Kumar

  • My iphone 4 won't connect to my apple  id account it keeps saying that my account limit has been reached

    my iphone 4 won't connect to my apple  id account it keeps saying that my account limit has been reached

    you can only use your apple id on 10 devices, so if you have signed into devices, and not signed out, that would be your problem

  • How do I resolve the Activation Limit Has Been Reached on FrameMaker 10 message

    I have 30 days to resolve this issue on my laptop, before I guess the software will stop working.  I'm using FrameMaker 10 on my laptop, which had an upgraded hard drive.  The previous hard drive has been destroyed.  When I launched FrameMaker 10 today it indicated the version I have is still active on the previous hard drive.  How do I DE-ACTIVATE that previous version if I no longer have the hard drive?

    Hi,
    You may have to contact Adobe Support using one of the below options and seek assistance for getting the product activated.
         Phone - 800-833 6687 (IVR Options - 2 > 4 > 2)
         Chat -   Click here to contact Customer Care
    For now, I was able to locate your account and have made the required changes. Please try it now and in case you face any issues, please contact support.
    Regards,
    Sharad

  • HT204053 account limit has been reached

    This device is no longer eligible for creating a free account icloud

    In fact the limit is three accounts. You will get this message when you attempt to create a new iCloud account when in the past three accounts have already been created on that particular Mac or device, and there is no way round this. Are you in fact trying to create a new account or sign into an existing one?If the latter you may be mis-typing the ID.
    If you are trying to create a new account you can only do so by creating it on some other Mac or iOS device and then signing into it with the present Mac.

  • Encore DVD Error Message - "End of Stream has been reached"

    I have created a project In Encore 2. it has motion menus, subtitles and sound. When we go to preview the project it gives us this error
    "End of Stream has been reached"
    We have checked our assets and the audio and video are DVD standard.
    We did a check project and it found no errors with the project.
    We are running Windows XP SP2 on a network, 2GB memory, 200GB hard drive Dell OptiPlex Desktop
    Dose anyone know what we should do???

    The End of Stream Message can be solved by removing one or moor unwanted elements from the time line. in my case that was a jpg image that encore didnt liked.
    It is very difficult to find out witch element you need to remove, but that is the only solution.

  • End of Stream has been reached error CS4

    After transcoding the main video file during the build, Encore then prepares "Planning audio for movie" at which case the error "end of stream has been reached" pop up window appears and the burn subsequently fails. There are no errors within the project and I have burned the project successfully onto a DVD with no error in the past. The only changes this time around is a re encoding of the video file (Uncompressed AVI 1920 x 1280 max depth bit), a change in the video thumbnails for the chapter selection pages, and a tweeking of the chapter points. Because the video file is so large, I delete the previous AVI file and export again using the same name to create the approriate links. I have read that the sound compression is the main cause for this error, however, I have not done anything sound related between versions of the DVD. How can I fix this error from occurring?  Thanks in advance.

    Especially with muxed (Audio & Video), there is a slightly different Block Size for each stream, so what appears to match 100% in PrPro can be every so slightly longer (Audio), when Transcoded. That is why I always leave a touch of "silence" in my Audio.
    For my edits, I almost always start with a Dip-to-Black, from an 02 sec. bit of Black Video, and then end with another 02 sec. of Black Video. My Audio always ends, just before the end of that Black Video. This also makes things seem to flow better, between Timelines, as the user sees things Dip-to-Black, and unless they have a stopwatch going, do not know if a moment has elapsed, when the laser moves, and the next Timeline comes up from black. There is never a jolting "black flash."
    Good luck,
    Hunt

  • End of Input has been reached

    hi-
    I have a massive query in my answer producing error message:
    Error Details
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 295120032. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27001] End of input has been reached. Illegal syntax. (HY000)
    This is because I have so many syntax in each columns. Is there anyone experienced this before, is there any setting needed to be set to prevent this error?
    Thanks,
    Will

    Hi-
    Thanks for the replies, Nico, and Joe;
    Joe is correct, I'm using FILTER(<MEASURE> USING <CONDITION>) extensively:
    IFNULL((
         IFNULL(FILTER(Measures.Revenue USING Period."Month"='Dec' AND Period."Year"= CAST(CAST(VALUEOF("CURR_YEAR") AS INTEGER)-1 AS CHAR(4))),0)*
         IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Jan' AND Period."Year"=VALUEOF("CURR_YEAR")),0)-
         IFNULL(FILTER(Measures.Revenue USING Period."Month"='Dec' AND Period."Year"= CAST(CAST(VALUEOF("CURR_YEAR") AS INTEGER)-1 AS CHAR(4))),0)*
         IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Dec'AND Period."Year"= CAST(CAST(VALUEOF("CURR_YEAR") AS INTEGER)-1 AS CHAR(4))),0)
    (IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Jan' AND Period."Year"=VALUEOF("CURR_YEAR")),0)*-1)
    ,0) +
    CASE WHEN 2 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,LEFT('@{pv_period}{Jun-2009}',3))) AS INT)
    THEN
         0
    ELSE
         IFNULL((CASE WHEN 2 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        IFNULL(FILTER(Measures.Revenue USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      ELSE
        IFNULL(FILTER(Measures.Revenue USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END *
      CASE WHEN 2 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        CASE WHEN IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0) = 0 THEN
          IFNULL(FILTER(Measures.FX_2 USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        ELSE
          IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        END
      ELSE
        IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END -
      CASE WHEN 2 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        IFNULL(FILTER(Measures.Revenue USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      ELSE
        IFNULL(FILTER(Measures.Revenue USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END*IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Jan' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      (CASE WHEN 2 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        CASE WHEN IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0) = 0 THEN
          IFNULL(FILTER(Measures.FX_2 USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        ELSE
          IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        END
      ELSE
        IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END*-1)
      ,0)
    END +
    CASE WHEN 3 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,LEFT('@{pv_period}{Jun-2009}',3))) AS INT)
    THEN
         0
    ELSE
         IFNULL((CASE WHEN 3 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        IFNULL(FILTER(Measures.Revenue USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      ELSE
        IFNULL(FILTER(Measures.Revenue USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END *
      CASE WHEN 3 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        CASE WHEN IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0) = 0 THEN
          IFNULL(FILTER(Measures.FX_2 USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        ELSE
          IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        END
      ELSE
        IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END -
      CASE WHEN 3 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        IFNULL(FILTER(Measures.Revenue USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      ELSE
        IFNULL(FILTER(Measures.Revenue USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END*CASE WHEN 2 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        CASE WHEN IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0) = 0 THEN
          IFNULL(FILTER(Measures.FX_2 USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        ELSE
          IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        END
      ELSE
        IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Feb' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END)
      (CASE WHEN 3 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,VALUEOF("CURR_MONTH"))) AS INT)
      THEN
        CASE WHEN IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0) = 0 THEN
          IFNULL(FILTER(Measures.FX_2 USING Period."Month"=VALUEOF("CURR_MONTH") AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        ELSE
          IFNULL(FILTER(Measures.FX_1 USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
        END
      ELSE
        IFNULL(FILTER(Measures.FX_2 USING Period."Month"='Mar' AND Period."Year"=VALUEOF("CURR_YEAR")),0)
      END*-1)
      ,0)
    END(And so goes until CASE WHEN 12 > CAST(EVALUATE('to_char(%1,''MM'')' as CHAR(2),EVALUATE('to_date(%1,''Month'')' as DATE,LEFT('@{pv_period}{Jun-2009}',3))) AS INT), I can't post whole formula due to maximum character per post)
    let's say that above calculation is = <CALCULATION>
    In Answer:
    Column 1: <CALCULATION>
    Column 2: ABS(<CALCULATION>)
    Column 3: SUM(ABS(<CALCULATION>))
    Column 4: RSUM(ABS(<CALCULATION>)/SUM(ABS(<CALCULATION>)))
    This is to achieve Jan through Dec calculations through hardcode for each months.
    At first I thought it was because of the limit of characters OBIEE can handle for each request, because when I was pressing OK upon editing column formula in Column 3 (after I've entered Column 1, and Column2), it pops an error (end of input has been reached)
    though when I delete formula in Column 1, I can sucessfully entered formula in Column 2, and Column 3; Seems it can only handle 2 <CALCULATION>, so I was thought this is like a bug: limit for SQL Issued before in version 10.1.3.3.
    If there is not any setting to control this, and the only solution is to change the approach on query, I'm thinking of using AGO formula to minimize the query.
    If I'm not mistaken, Nico, and Joe, the culprit will be the extensive use of FILTER and CASE WHEN so the SQL generated will be too many to handle?
    Regards,
    Will

  • The maximum number of connections per source ('20') for this connector has been reached by this source IP address

    Receive connector 'Connector Name' rejected an incoming connection from IP address "IP of our load balancer". The maximum number of connections per source ('20') for this connector has been reached by this source IP address.
    I understand that I can up the limit - however, I'm wondering if there is a way to up the limit for ONE specific IP (our load balancer)
    TAG

    It does not look like you can up the limit for a specific IP but you might be able to create a separate receive connector for that IP address (and then change the limit).
    That is just a thought. Others may have more input on why you may or may not want to do that in practice.
    What SMTP traffic would not be coming from the load balancer?
    Is the objective to *not* allow some other (possibly malicious) source from creating excessive connections to the server?
    Otherwise, this is a good discussion about the different parameters that must be considered if you do decide to adjust the values (changing one may not suffice):
    http://letsexchange.blogspot.com/2012/04/receive-connector-rejected-incoming.html
    Nuno Mota's blog (MVP)
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • SQL2012: Internal Error: The operation terminated unsuccessfully. The connection timeout was exceeded. Server: The operation has been cancelled

    When rendering a SSRS native mode report based on a query to SSAS the report with fail with the following error:
    An error has occurred during report processing. (rsProcessingAborted)  Cannot read the next data row for the dataset. (rsErrorReadingNextDataRow).  The connection either timed out or was lost.  Unable to read data from the transport connection:
    An existing connection was forcibly closed by the remote host.
    Putting a trace on the SSAS instance, I get an error:
    Internal error: The operation terminated unsuccessfully.  The connection timeout was exceeded. Server: The operation has been cancelled.
    I've modified the IIS (6) application pool timeouts, the SSRS rsreportserver.config timeouts, and the SSAS timeouts.  Restarted services, rebooted, and still I get this error.
    The report will render if I select a shorter time period (less data, shorter query time).
    Running SQL2012 (11.0.5058.0), SSAS and SSRS on separate servers, same subnet.
    Any help or suggested troubleshooting greatly appreciated.

    Please check the links below.
    http://www.symantec.com/business/support/index?page=content&id=TECH186577
    https://support.microsoft.com/kb/2200755?wa=wsignin1.0
    http://msdn.microsoft.com/en-IN/library/ms155782.aspx
    http://blogs.msdn.com/b/dynamicsaxbi/archive/2013/02/14/how-to-addressing-ssrs-session-timeouts.aspx

  • Trying to print from My Image Garden; get msg "An internal error has occured

    I am running from MX922. Trying to print from My Image Garden; get msg "An internal error has occurred" I have updated from the Canon website, but still  it freezes up.

    Hi tthaas30,
    If you temporarily disable any antivirus or firewall software that is on your computer and then attempt to print again, do you still experience the same issue?
    If this is a time-sensitive matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • "Internal error: An unexpected exception has occurred" error message displayed when browsing a cube.

    “Internal error: An unexpected exception has occurred“ error message displayed when browsing a cube.
    The error behaviour is quite irregular and does not occur for specific condition.
    Will cumulative update 9 for SQL Server 2008 R2 (SP1) installation help to fix the issue which is provided on the below link:
    (http://support.microsoft.com/kb/2152148)
    The current version of SQL Server I am using is as below:
    Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)   Jun 17 2011 00:54:03   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    Thanks in advance for the help!

    Hi Mon,
    The hotfix you said is for Microsoft SQL Server 2008. So it will not work on your scenario since you are using SQL Server 2008 R2.
    Based on the limited information, we cannot give you the exact reason that cause this issue. In order to narrow down this issue, you can apply the latest Service Pack and Cumulative Update as GregGalloway said. Besides, you can troubleshoot this issue by
    using the Windows Event logs and msmdsrv.log.
    You can access Windows Event logs via "Administrative Tools" --> "Event Viewer".  SSAS error messages will appear in the application log.
    The msmdsrv.log file for the SSAS instance that can be found in \log folder of the instance. (C:\Program Files\Microsoft SQL Server\MSAS10.MSSQLSERVER\OLAP\Log)
    Here is a blog about data collection for troubleshooting Analysis Services issues, please see:
    Data collection for troubleshooting Analysis Services issues
    Regards,
    Charlie Liao
    TechNet Community Support

  • The maximum report processing jobs limit configured has been reached -Error

    I have Created a common page that has a CrystalReportViewerControl (name of this page is ShowReport.aspx). The report name and database name that required for the report is being passed in a querystring. The database connection info is being pulled from the web.config file. All of the reports that I am dealing with have dynamic parameters and the Crystal Prompt page is automatically being created by the crystal viewer for these. Everything in my application is working fine except that when I try to access any report for the 76th. time I get the following error "The maximum report processing jobs limit configured by your system administrator has been reached."
    I have already researched this error and am aware that the PrintJobLimit can be modifed to increase this limit or can be set to -1 if we need to allow unlimited connections. However doing this is not an option due to the degradation of server performance.
    The other option that I have tried is to make sure I close and dispose of the report document object on the Page_unload or the page_SavedStateComplete() however on doing so even the session variable that I am using to store the originally created reportdocument is loosing all of the values it requires to display the report. The session variable is still available i.e. it is still of type report document but it has no values for any of the properties like FileName, database etc , basically for all of those properties it show an error "Invalid File Path" when viewed in debug mode.
    I have already tried several approaches but with no luck. Every single time I close the originally created ReportDocument object I loose all the required values in the Session
    I am using Crystal Report XI R2 , .Net 2.0 and ASP.net
    Following is the code: (Any help will be highly appreciated) Thanks:
    Option Strict On
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports System.Data.SqlClient
    Imports System.IO
    Partial Class _ShowReport
    Inherits System.Web.UI.Page
    Private FechReport As ReportDocument
    Dim strSelectedDatabase As String
    Dim strReportsFolderPath As String =
    System.Configuration.ConfigurationManager.AppSettings("ReportsFolderPath").ToString()
    Dim strReportFileName As String
    Dim strReportFullPath As String
    Dim iInsertedLogId As Integer 'This variable is used to store the inserted log id for the executed report.
    Dim strConnString As String = System.Configuration.ConfigurationManager.AppSettings("ConnString").ToString()
    Dim strServerName As String = System.Configuration.ConfigurationManager.AppSettings("CR_ServerName").ToString()
    Dim strUserName As String = System.Configuration.ConfigurationManager.AppSettings("CR_UserName").ToString()
    Dim strPassword As String = System.Configuration.ConfigurationManager.AppSettings("CR_Password").ToString()
    Protected Sub Page_OnSaveStateComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SaveStateComplete
    If IsPostBack Then
    If iInsertedLogId > 0 Then
    UpdateReportLog_ReportServedTime(iInsertedLogId)
    If Not FechReport Is Nothing Then
    FechReport.Close()
    End If
    End If
    End If
    End Sub
    Sub Page_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Unload
    If Not FechReport Is Nothing Then
    'FechReport.Close()
    'FechReport.Dispose()
    'GC.Collect()
    End If
    End Sub
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    Dim sRptFileName As String
    If Request.QueryString("database") "" Then
    strSelectedDatabase = Request.QueryString("database")
    Else
    Response.Write("A Valid Database has not been supplied to this page")
    Response.End()
    End If
    If Request.QueryString("ReportFileName") "" Then
    strReportFileName = Request.QueryString("ReportFileName")
    strReportFullPath = strReportsFolderPath & strReportFileName
    Else
    Response.Write("A Valid Report has not been supplied to this page")
    Response.End()
    End If
    sRptFileName = strReportFullPath
    If Not IsPostBack Then
    FechReport = New ReportDocument
    If Not FechReport Is Nothing Then
    ShowReport(sRptFileName)
    End If
    Else
    If (Session("oReportDocument") Is Nothing) Then
    FechReport = New ReportDocument
    ShowReport(sRptFileName)
    Else
    'FechReport = New ReportDocument
    'FechReport = CType(Session("oReportDocument"), ReportDocument)
    myCrystalReportViewer.ReportSource = Session("oReportDocument")
    'myCrystalReportViewer.ReportSource = FechReport
    End If
    End If
    End Sub
    Public Function ShowReport(ByVal strReportFileName As String) As Boolean
    Dim blNoErrors As Boolean = True
    Dim crDatabase As Database
    Dim crTables As Tables
    Dim crTable As Table
    Dim crTableLogOnInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo
    FechReport.FileName = strReportFileName
    myCrystalReportViewer.ReportSource = FechReport
    crConnectionInfo = New ConnectionInfo()
    With crConnectionInfo
    .ServerName = strServerName
    .DatabaseName = strSelectedDatabase
    .UserID = strUserName
    .Password = strPassword
    End With
    Try
    crDatabase = FechReport.Database
    crTables = crDatabase.Tables
    For Each crTable In crTables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    Catch ex As Exception
    Response.Write(ex.Message & ControlChars.NewLine & ex.InnerException.ToString & ControlChars.NewLine)
    Exit Function
    End Try
    Session("oReportDocument") = FechReport
    'FechReport.Close()
    'FechReport.Dispose()
    'GC.Collect()
    Return blNoErrors
    End Function
    End Class

    I have looked into Caching the report document as well. However, as you mentioned in the post it, it will only be usefull when the DB and the report parameters remain the same which is not the case in our application. We have multiple identical databases and hundreds of reports. Our users have the option of using a combination of any database and any reports, each report having numerous parameters.
    Since one user can only access one report at a time. i do have cleanup code that removes the session variable used to store the reportdocument object in the page that is initially used to call the ShowReport.aspx page.
    I understand now that the CR.net SDK is only good for light reporting only. Unfortunately when we started development based on all of the articles that I gathered, I didn't anticipate running to issues like this. But I guess that's the nature of the business :-).  And hence there are people like you who go out of the way to answer these difficult questions.
    Regards,

  • Internal error  csngen_adjust_time: adjustment limit exceeded ???

    Hallo,
    i have found this entries in our error-log in one of four servers. We use Sun Directory Server 5.2 P4. We use replication to all 4 servers. All Servers are configured as multimaster.
    ERROR<38994> - CSN Generation - conn=-1 op=-1 msgId=-1 - Internal error csngen_adjust_time: adjustment limit exceeded; value - 2845858, limit - 86400
    We use Sun Directory Server 5.2 P4. We use replication to 4 servers. All Servers are multimaster.

    This can be a serious error which can prevent replication from working properly.
    Please make sure all of your machines have synchronized times.
    You may want to restart your servers as well.
    I believe that a bug was fixed in 5.2patch4 regarding excessive CSN time adjustment. You may want to upgrade to this release if not done yet.
    Regards,
    Ludovic

  • Trying to send e-mail and error message " a copy has been placed in your outbox. the sender address was rejected by the server"

    trying to send e-mail and error message " a copy has been placed in your outbox. the sender address was rejected by the server"

    i have the same problem with my 3gs and tried to add my email acc+pass in the outgoing server but it got rejected.
    just bin on the phone(45min) with my carrier support about this issue they are pretty much scratching there head, the settings i should use gets verified with no problems when i add the outgoung server, but still cant send mails.

Maybe you are looking for

  • Issue with JAVA Mail API

    Hi We have a requirement to create a custom e mail. For the same I am trying to use Java Mail API.I am facing an issue with the following code: session session1 = session.getInstance(properties, null); System gives an error Sourced file: inline evalu

  • How to create a playlist with podcasts AND music?

    I created a playlist with both podcasts and music in it. The thing is when I try to shuffle it, only music plays. When I start playing podcasts, none of my music plays. How can I make them both play at the same time and shuffle on the same playlist?

  • Extend wifi range with 2 airport express

    I currently have an airport express on my main floor for wifi, can I add another airport express on 2nd floor to extend the wifi range if both of them are connected to a wired ethernet switch?

  • How do I get "Media" to appear in my Sidebar?

    When I insert pictures, files etc into emails, the finder window very kindly shows "Media" as a drop down in the sidebar. But when I open finder by itself this drop down is not in the sidebar and I can find no way in preferences to choose to show it?

  • What is the standard rate for ordering extra copies of a Photobook?

    I will be shooting a wedding in the coming months, and as a part of their package they are ordering a Photobook, which I will make through iPhoto/Aperture. The couple are looking to order extra copies of this Photobook, and would like to know how muc