Hi,
The default time out of the app server is also 10 hrs. Query which I am running is : import module namespace REDIRECT = "http://tbc.com/Redirect" at "Redirect.xqy" ; REDIRECT:MaybeRedirectToExpiredMessage() ; import module namespace SAVED_REPORTS = "http://tbc.com/SavedReports" at "ManageSavedReports.xqy" ; SAVED_REPORTS:SaveCheckBoxSelectionsToCurrentReportFile() ; import module namespace USER_CONFIGS = "http://tbc.com/UserConfigs" at "ManageUserConfigs.xqy"; import module namespace DOCUMENTS_LIST = "http://tbc.com/DocsList" at "ManageDocsList.xqy" ; import module namespace SITE_CONFIG = "http://tbc.com/SiteConfig" at "ManageSiteConfig.xqy" ; import module namespace REPORT_SPREADSHEET = "http://tbc.com/ReportSpreadsheet" at "ManageReportSpreadsheet.xqy"; declare variable $FILTERED := xdmp:get-request-field("WithinFiltered") ; xdmp:add-response-header("Content-disposition", concat("attachment; filename=DocumentList", substring(xs:string(current-dateTime()),1,10) ,".xls") ) , (: xdmp:set-response-content-type("text/plain") :) xdmp:set-response-content-type("application/vnd.ms-excel") , xdmp:set-response-encoding("ISO-8859-1") , let $AllHeaders := ( let $CustomFields := SITE_CONFIG:GetAllCustomMetadataFields() for $Field in $CustomFields/Field let $FieldName := data($Field/text()) let $FieldID := data($Field/@ID) return if ( xdmp:get-request-field( $FieldID ) = "yes" ) then $FieldName else ( ) , for $ColumnRecord in REPORT_SPREADSHEET:GetColumnRecord() let $ColumnID := REPORT_SPREADSHEET:GetColumnID($ColumnRecord) let $ColumnHeading := REPORT_SPREADSHEET:GetColumnHeading($ColumnRecord) return if ( xdmp:get-request-field( $ColumnID ) = "yes" ) then $ColumnHeading else ( ) ) return string-join($AllHeaders, "	") , (: let $SearchResultsList := doc(fn:concat("/results/Results_",xdmp:get-current-user(),".xml"))/Results :) let $SearchResultsList := USER_CONFIGS:GetAllResultsEntries_URIs( xdmp:get-current-user() ) for $DOC in DOCUMENTS_LIST:GetAllDocEntries() (: actually, only the documents this user is allowed to see :) return if ( $FILTERED = "no" or ($FILTERED = "yes" and $SearchResultsList = $DOC/ID) or ($FILTERED = "MAG" and $DOC/DocumentType = "MA") or ($FILTERED = "CSA" and $DOC/DocumentType = "CS") or ($FILTERED = "AMD" and $DOC/DocumentType = "AM") or ($FILTERED = "PRB" and $DOC/DocumentType = "PR") ) then let $ID := $DOC/ID/text() let $DOC_NODE := fn:doc($ID) let $AllRow := ( let $CustomFields := SITE_CONFIG:GetAllCustomMetadataFields() for $Field in $CustomFields/Field let $FieldName := data($Field/text()) let $FieldID := data($Field/@ID) return if ( xdmp:get-request-field( $FieldID ) = "yes" ) then concat( """ , DOCUMENTS_LIST:GetDocumentCustomMetadataValue($ID, $FieldID) , """ ) else ( ) , for $ColumnRecord in REPORT_SPREADSHEET:GetColumnRecord() let $ColumnID := REPORT_SPREADSHEET:GetColumnID($ColumnRecord) let $ColumnHeading := REPORT_SPREADSHEET:GetColumnHeading($ColumnRecord) let $XQuery := REPORT_SPREADSHEET:GetColumnXQuery($ColumnRecord) return if ( xdmp:get-request-field( $ColumnID ) = "yes" ) then concat( """, xdmp:value($XQuery), """ ) else ( ) ) return string-join($AllRow, "	") else ( ) Thanks Pragya ________________________________ From: [email protected] <[email protected]> on behalf of [email protected] <[email protected]> Sent: Monday, April 27, 2015 4:05 PM To: [email protected] Subject: Re: [MarkLogic Dev General] XDMP-CANCELED Hi Pragya , Did u check default time limit setting for an application server or Task server. Because this XDMP-Cancelled message will happen either explicit operation performed or a result of a system event l XDMP-EXTIME will trigger the above message . Give some more details .to find out exact root cause . By Raja >>> From: [email protected] [mailto:[email protected]] On Behalf Of Kapoor, Pragya Sent: Monday, April 27, 2015 3:48 PM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] XDMP-CANCELED Hi, I am running an xquery file which is automatically getting cancelled after an hour. In logs, I can see an error for XDMP-CANCELED. The timeout for the app server is 10 hours Why is this happening? Thanks Pragya "This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful." This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. "This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
