Problem with RTC calling report which makes a file

Kisu
Member Posts: 381
I came up with odd problem.
We've made a customisation for one of our customers which basically calls report which lines up some data and exports it to a ascii file.
Problem is that it works on the classic side of Navision but not in RTC.
If its called in RTC client, it starts making the file but says its already open and finishes the file 0KB (0 kilo bytes).
As I noted this works in classic version user has roles for creating,editing and viewing the object and all objects that is included on for the report and also the file path should have all rights for creating the file.
Also both clients and the servers are on same computer.
Is there something that I should add when calling report with action so it wont hold up the file and end it as 0KB?
We've made a customisation for one of our customers which basically calls report which lines up some data and exports it to a ascii file.
Problem is that it works on the classic side of Navision but not in RTC.
If its called in RTC client, it starts making the file but says its already open and finishes the file 0KB (0 kilo bytes).
As I noted this works in classic version user has roles for creating,editing and viewing the object and all objects that is included on for the report and also the file path should have all rights for creating the file.
Also both clients and the servers are on same computer.
Is there something that I should add when calling report with action so it wont hold up the file and end it as 0KB?
K.S.
0
Answers
-
I tried to call it around codeunit and as process and report straight report, it somehow keeps hold the filename and wont let use the file.K.S.0
-
Are you explicitly closing the file? As in using File.CLOSE at the end of the routine.0
-
Yes close function for the file variable is used after all writes in the report. And it works on classic clientK.S.0
-
Is your environment on single machine or client-server?
If client server, your file will be created in Service server.
You have to close the file first and download to client machine,..0 -
mohana_cse06 wrote:Is your environment on single machine or client-server?
If client server, your file will be created in Service server.
You have to close the file first and download to client machine,..
As I said on first post client and servers are on same place. The client connects to the server with rdp connection.K.S.0 -
So nobody else had problems like this before?
when I call create file should I close it before opening and writing on it?
now the function process is like this:
CREATE the file
OPEN the file
WRITE loops
CLOSE
and this way it works on the classic client. Both clients and SQL and Navision server are on same computer.K.S.0 -
I started to think, does RTC client use onTriggers differently that in classic client?
Both of the file exporting reports should be just process only on this.K.S.0 -
In RTC, when you call CREATE, the file is already open, so you need to skip the OPEN part-Mihail- [MCTS]0
-
mihail_kolev wrote:In RTC, when you call CREATE, the file is already open, so you need to skip the OPEN part
mm thanks for the tip, I'm gonna test that right awayK.S.0 -
So far so good, yet still the second report -export does some counting wrongly but I think this problem is quite solved now.
\:D/K.S.0 -
Okay I got both report file exports working.
First one the problem was that I had OPEN after CREATE with the file function.
Second one the problem was with CREATETOTALS, this did now work with RTC client.
Both works fine now \:D/K.S.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