Problem in writing a text in MSMQ with client Dynamics NAV 5

rscabbia
Member Posts: 3
I need to write a text in MSMQ from Dynamics NAV.
Exactly same code with client 4.SP1 works, with client 5.00 doesn't work.
Or, better, the first time it works, the second time I get a write error while writing the text, and, after that, two times it works and the third time I get the write error.
Same code in client 4 works every time.
Can some one help me?
Exactly same code with client 4.SP1 works, with client 5.00 doesn't work.
Or, better, the first time it works, the second time I get a write error while writing the text, and, after that, two times it works and the third time I get the write error.
Same code in client 4 works every time.
Can some one help me?
0
Comments
-
Could you give the exact error message you are getting?
This will help to solve the issue.
Thank you,
KYDutchieFostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.0 -
It is a generic "Writing error", in italian "errore di scrittura".
I tried this workaround and it works but it is very inefficient:
I create the MSMQ variables in NAV, I write the message, and I CLEAR them, so every time I need to write a message in the queue, I need to re-create the variables.
In version 4 SP1 I needed not to do such rreationa and clearing of the variables, on the contrary, I managed all these variables with a singleinstance codeunit, and I created the queue variables in codeunit 1 in "Loginstart" routine. After that I could write as many message as I wanted.
In version 5 I tried this same structure, and it doesn't work. I tried with a not singleinstance codeunit and it doesn't work. The only way is to CLEAR variables, in order to be in every case in the "first time" case.
But WHY ?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions