Excel Export Formula "VLOOKUP"

Lgoo
Member Posts: 45
hello,
i am upgrading a report from 2009 R2 to 2013. This reports opens an excisting excel file with two sheets and creates one new sheet.
On the new sheet i am trying to add a formula like this: =VLOOKUP(A2;Table1!A2:B260;2;0).
But after the report is completed and it opens the file on the Client is crashes with following error:
hresult 0x800a03ec
this function was running fine on 2009 R2...
somebody has an idea?
thanks for help
i am upgrading a report from 2009 R2 to 2013. This reports opens an excisting excel file with two sheets and creates one new sheet.
On the new sheet i am trying to add a formula like this: =VLOOKUP(A2;Table1!A2:B260;2;0).
But after the report is completed and it opens the file on the Client is crashes with following error:
hresult 0x800a03ec
this function was running fine on 2009 R2...
somebody has an idea?
thanks for help

0
Comments
-
Just yesterday I hit the exact same issue on a report using the Excel buffer in NAV 2013 R2, and i'm not using VLOOKUPS. If I open the excel file (by debugging and seeing the location of the temp file, then opening it directly) I get the error:
Excel found undreadable content in 'Book1.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.
When I proceed to open the file, I get the following message regarding repairs that were made:
Removed Records: Formula from /xl/worksheets/sheet.xml part
So...is there a problem with using any formula here? Does anyone have any insights into this one?Rob Hansen
http://www.epimatic.com0 -
I get the same error at opening excel.
which formula are you using?
My Code works fine with the SUM function but not with vlookup
This is my Code:gExcelBuffer.INIT; exlBuffer.VALIDATE("Row No.",pRow); exlBuffer.VALIDATE("Column No.",pColumn); exlBuffer.Bold := pBold; exlBuffer.Italic := pItalic; exlBuffer.Underline := pUnderline; IF pCellType = pCellType::Formula THEN BEGIN exlBuffer.SetFormula(FORMAT('SVERWEIS(C6;A2:B278;2)')); // or 'VLOOKUP(C6;A2:B278;2)' exlBuffer.NumberFormat := 'General'; // This is important for formulars END ELSE BEGIN exlBuffer."Cell Value as Text" := pCellValue; exlBuffer."Cell Type" := pCellType; END; exlBuffer.INSERT(TRUE);
0 -
0x800A03EC (or -2146827284) means NAME_NOT_FOUND: are you using Excel in German language? Just a guess because I saw you are setting the formula with German naming.* Daniele Rebussi * | * Rebu NAV Diary *0
-
I took another look at the report i'm migrating, and it's actually not using formulas. In the previous version we were feeding numeric values into the excel buffer using the Formula field and that worked fine...apparently in NAV 2013 that trips things up. Once I switched to passing the values into the Cell Value as Text field, things work fine.Rob Hansen
http://www.epimatic.com0 -
somebody has an idea?0
-
Hi,
I suggest you try using a comma (,) instead of the semi-colon (;)
So change this=VLOOKUP(A2;Table1!A2:B260;2;0)
Into this=VLOOKUP(A2,Table1!A2:B260,2,0)
I hope this helps you out.
Gerard Robbertsen
http://www.codegeniusstudio.com
https://www.facebook.com/CodeGeniusStudio0
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