REPORT.RUNREQUESTPAGE
weneed
Member Posts: 82
I need to memorize the parameters of some reports to be able to execute them later.
Using these indications I was able to manage the task.
Unfortunately for some reason in some cases it seems that the XML file read from the BLOB field is corrupt.
When this happens the file on the screen shows an incorrect XML syntax and obviously sends the execution of the report in error.
If, for the same report, it saves the data in a test file and reloads it, the error does not occur and the procedure runs correctly.
What can it depend on?
This is corrupt XML:

Using these indications I was able to manage the task.
Unfortunately for some reason in some cases it seems that the XML file read from the BLOB field is corrupt.
When this happens the file on the screen shows an incorrect XML syntax and obviously sends the execution of the report in error.
If, for the same report, it saves the data in a test file and reloads it, the error does not occur and the procedure runs correctly.
What can it depend on?
This is corrupt XML:

0
Answers
-
Hi,
Show your code how you try to save this XML.0 -
Hi,
looks like there is additional stuff appended to the end of your xml. Check the code you use to save te xml to blob, and the code you use to retrieve the xml from the blob.
I don't quite get what you do. Save the file from BLOB (using Codeunit 419) and validate the exported file. If the file is correct, the error is in your reading it. Otherwise I would use more functions from Cu 419 to test the round trip (Import, Export, then compare).weneed wrote:If, for the same report, it saves the data in a test file and reloads it, the error does not occur and the procedure runs correctly.
What can it depend on?
Also check out the functions in table TempBLOB.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 333 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
