You have specified an unknown variable. XMLPORT

samemery
Member Posts: 60
Hi,
When trying to open up an XMLport in NAV 2009 R2 in design mode I get an error message that says:
You have specified an unknown variable.
XMLPORT
Define the variable under 'Global C/AL symbols'.
Any idea what to do from here since I can't export it as .txt and extract my code?
Thanks
When trying to open up an XMLport in NAV 2009 R2 in design mode I get an error message that says:
You have specified an unknown variable.
XMLPORT
Define the variable under 'Global C/AL symbols'.
Any idea what to do from here since I can't export it as .txt and extract my code?
Thanks
0
Comments
-
From where did you get that XMLPORT?0
-
mohana: this is a custom XMLport.
Belias: Recompiling from the object designer gives the same error.0 -
You have developed it or imported?0
-
I have developed it.0
-
Its very strange :-k
Can you be able to see design screen and compile?
if yes, check where you are getting error..0 -
Hi
I'd this strange error in 2013 - a graduated report from 2009. It was a tease as I couldn't edit the said object in 2013 as I was in the process of an upgrade and the report was working okay in 2009. I exported the said object from 2009 as text and couldn't see any references to XMLPort at all in that text file!
I eventually edited the text file and removed the REQUESTFORM part, imported the object as text mode, compiled - job sorted!
Until next time!
Big D signing off!0 -
Hi
Me again - spoke to soon ](*,) !
Customised report compiles okay in 2013 but when I run Upgrade Report it then says "You have specified an unknown variable. XMLPORT" - Doh :oops: !
Any suggestions mibuso world?Big D signing off!0 -
Hello!Big D wrote:Customised report compiles okay in 2013 but when I run Upgrade Report it then says "You have specified an unknown variable. XMLPORT" - Doh :oops: !
The report upgrade should work. You can then use the Dataset Designer to assign the BLOB fields again.0 -
Hello Guys, I'm getting identical error when I created a custom XML port in 2009 R2. I'm neither able to open the XML port designer nor able to export this object as .txt file. I have also installed the latest patch for this version but no success
What should I do when it is not allowing to open the xml port designer itself ](*,)0 -
Source of the problem located in request form.
3 of my 3 problems with this exact error on the same version was all related to the following:
- In the XMLport Designer one of your rows contain a Source Type "Text" and a corresponding Data Source. This Data Source is then declared as a hidden variable.
- In the request page you have used this variable to modify its value.
This actually works when its run through the RTC, but problem is the relation between the variable usage in XMLport Designer and the request page gives it a BLOB value for unknown reason. This gives the error "You have specified an unknown variable. XMLPORT"
Good new? None, unless you have a backup or running a sophisticated version control tool.
Bad new? You have to start from scratch because there is no way you can access that code.
So the way to do this is to first declare a global variable that you use in the request form. Then though C/AL code you give your variable from XMLport Designer the value from the request form. Its a cleaner way to do the same thing. Also advice to start using a version control tool. Object Manager is worth the time to learn.
Best Regards,
Daniel
Edit: Typos0
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