ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » PYMQI - Reason 2010: FAILED: MQRC_DATA_LENGTH_ERROR

Post new topic  Reply to topic
 PYMQI - Reason 2010: FAILED: MQRC_DATA_LENGTH_ERROR « View previous topic :: View next topic » 
Author Message
ghoshly
PostPosted: Wed Nov 29, 2023 11:40 am    Post subject: PYMQI - Reason 2010: FAILED: MQRC_DATA_LENGTH_ERROR Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

Hello,

I am trying a simple code where the python code is reading a file as a whole and dumping the content as a single message.

When I try with a text file of 61 MB it gives the error - Reason 2010: FAILED: MQRC_DATA_LENGTH_ERROR and its expected.

I changed MAXMSGL of the Queue Manager, Server Connection channel and the Local queue to 100MB and restarted the Queue Manager. Still I am getting the same error. What am I missing here, and which log file should show any further details of the error?
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Nov 29, 2023 1:25 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

https://www.ibm.com/docs/en/ibm-mq/9.3?topic=codes-2010-07da-rc2010-mqrc-data-length-error

I think that you will need to set max message length on the CLNTCONN channel definition (MQCD structure) that the python MQ API dynamically creates. The default is 4MB.

Try using connect_with_options, and specify cd.MaxMsgLength.
Example on this forum - http://www.mqseries.net/phpBB2/viewtopic.php?p=438999
_________________
Glenn
Back to top
View user's profile Send private message
ghoshly
PostPosted: Thu Nov 30, 2023 12:17 pm    Post subject: Resolved Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

Thanks for the guidance and pointer, able to connect with options and MaxMsgLength.
Back to top
View user's profile Send private message
marshray48
PostPosted: Sun Dec 24, 2023 12:42 pm    Post subject: Re: Resolved Reply with quote

Newbie

Joined: 24 Dec 2023
Posts: 3

ghoshly wrote:
Thanks for the guidance and pointer, able to connect with options and MaxMsgLength.

Is it possible to alter the limit?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Dec 24, 2023 4:02 pm    Post subject: Re: Resolved Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

marshray48 wrote:
ghoshly wrote:
Thanks for the guidance and pointer, able to connect with options and MaxMsgLength.

Is it possible to alter the limit?

What limit?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
hughson
PostPosted: Thu Dec 28, 2023 2:22 am    Post subject: Re: Resolved Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1916
Location: Bay of Plenty, New Zealand

marshray48 wrote:
ghoshly wrote:
Thanks for the guidance and pointer, able to connect with options and MaxMsgLength.

Is it possible to alter the limit?

Yes, you can alter MaxMsgLength. Earlier posts in this thread include mention of all the different places that you might have to change. To reiterate: SVRCONN, CLNTCONN, QLOCAL, and QMGR.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » PYMQI - Reason 2010: FAILED: MQRC_DATA_LENGTH_ERROR
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.