Error in CU Notification Entry Dispatcher in Job Queue due to WordReportManager.MergeWordDocument?
notificnav
Member Posts: 4
I'm getting the following error when I try to run Notification Entry Dispatcher (Codeunit 1509) in the Job Queue:
It appears to be a problem with a string linking to the company's web client being sent to MergeWordDocument.
I've read that issues could arise from non-standard characters being used in a company's name. This company's name has non-standard characters such as ó in it, as well as a period, and the company name is used in the Document_Url string.
Has anyone been able to identify and fix this error?
Microsoft Dynamics NAV --------------------------- A call to Microsoft.Dynamics.Nav.DocumentReport.WordReportManager.MergeWordDocument failed with this message: The following URL in the Document_Url field is not valid: http://[server]:[port]/[server instance]/WebClient?company=[company name]&page=[page]&bookmark=[bookmark] --------------------------- OK ---------------------------
It appears to be a problem with a string linking to the company's web client being sent to MergeWordDocument.
I've read that issues could arise from non-standard characters being used in a company's name. This company's name has non-standard characters such as ó in it, as well as a period, and the company name is used in the Document_Url string.
Has anyone been able to identify and fix this error?
0
Best Answer
-
The only solution I could think of was to rename the company or comment the code out.
We weren't using the web client and couldn't rename the company, so I commented that one line of code out for now.
Maybe some sort of string replacement would work, if mapping the characters to valid input is possible.0
Answers
-
BTW, if anyone has had the following error:
The length of the string is 321, but it must be less than or equal to 250 characters. Value: A call to Microsoft.Dynamics.Nav.DocumentReport.WordReportManager.MergeWordDocument failed with this message: The following URL in the Document_Url field is not valid
The fix is to go to Codeunit 1509 and change the occurrences of GETLASTERRORTEXT to COPYSTR(GETLASTERRORTEXT,1,249). ☺ This doesn't fix the underlying error, but it logs it in the error log instead of stopping the job queue entry.0 -
Hello,
Have you solve your problem ?
I have had the same error.
Thks,0 -
The only solution I could think of was to rename the company or comment the code out.
We weren't using the web client and couldn't rename the company, so I commented that one line of code out for now.
Maybe some sort of string replacement would work, if mapping the characters to valid input is possible.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions