Payment Journal
Snoopyc
Member Posts: 45
Hi expert, I have a question and I need your advice. In the payment Journal, after we fillled in the first row, and ready to move on, we had an error "Dimension Can't be found". We haven't set up any demension in our current system. Thank you!
0
Comments
-
I want to give you experts more details about this error. In the blank payment journal, the first field is Posting date, which is today's date, Right after I select any of them from the document type, I will have this error when I move the tab all the way to the the last field of the first row withour entering any data.
Please adivse! Thank you!0 -
Hello! A strange error to be sure! Can you send a screen dump please?
Neil0 -
Can you please check if there's any Default Dimension record with Dimension Code blank?* Daniele Rebussi * | * Rebu NAV Diary *0
-
Where can I find the default dimension? What I see is several Shortcut Dimenion code and they are blank. What value should be assigned to? Thank you!0
-
From Chart of Accounts -> Related information -> Account -> Dimensions -> Dimensions-Single, then remove the acocunt no. filter and check for any record with Dimension Code blank.
You said you didn't set up any dimension in your system: so, in General ledger setup, all fields in "Dimension" tab are empty? In this case it's correct to see blank Shortcut Dimension Code on documents and journal lines.* Daniele Rebussi * | * Rebu NAV Diary *0 -
Thank you experts! I checked and we don't have any value in the dimension. But the error won't go. Now we have the same problem in the cash receipt journal. We cannot do anything. Dimension is the requirement. Do we really need to set up the dimension? Is there any way to resolve this without setting up the dimension? Thank you!0
-
I cannot repro the scenario in my latest version. Which version do you run?
Could you please try to turn on the debugger and see exactly where it fails?Bardur Knudsen
Microsoft - Dynamics NAV0 -
Thank you! Turn on the debugger in the development envionement or from RTC?0
-
Snoopyc wrote:Thank you! Turn on the debugger in the development envionement or from RTC?
From RTC (if you are running NAV 2013) -> Setup/Setup IT/General -> Sessions -> On your session Press "Debug" and insert line in payment journal.* Daniele Rebussi * | * Rebu NAV Diary *0 -
Thank you for your quick response, expert! I followed your instructions. I can see the mouse insert is active in the Code screen, but I cannot type anything in the code window.0
-
Hi expert, I ran debugging again this time.
ValidateShortcutDimValues(FieldNumber : Integer;VAR ShortcutDimCode : Code;VAR DimSetID : Integer)
ValidateDimValueCode(FieldNumber,ShortcutDimCode);
DimVal."Dimension Code" := GLSetupShortcutDimCode[FieldNumber];
IF ShortcutDimCode <> '' THEN
DimVal.GET(DimVal."Dimension Code",ShortcutDimCode);
IF NOT CheckDim(DimVal."Dimension Code") THEN
ERROR(GetDimErr);
IF NOT CheckDimValue(DimVal."Dimension Code",ShortcutDimCode) THEN
ERROR(GetDimErr);
GetDimensionSet(TempDimSetEntry,DimSetID);
IF TempDimSetEntry.GET(TempDimSetEntry."Dimension Set ID",DimVal."Dimension Code") THEN
IF TempDimSetEntry."Dimension Value Code" <> ShortcutDimCode THEN
TempDimSetEntry.DELETE;
IF ShortcutDimCode <> '' THEN BEGIN
TempDimSetEntry."Dimension Code" := DimVal."Dimension Code";
TempDimSetEntry."Dimension Value Code" := DimVal.Code;
TempDimSetEntry."Dimension Value ID" := DimVal."Dimension Value ID";
IF TempDimSetEntry.INSERT THEN;
END;
The arrow stops on ERROR(GetDimErr)0 -
Hi expert, how to fix it? Thank you!0
-
Hi, first of all I think there is some custom code in the function posted, since I'm not able to find the red marked lines in both NAV 2013 and 2013 R2:ValidateDimValueCode(FieldNumber,ShortcutDimCode);
DimVal."Dimension Code" := GLSetupShortcutDimCode[FieldNumber];
IF ShortcutDimCode <> '' THEN
DimVal.GET(DimVal."Dimension Code",ShortcutDimCode);
IF NOT CheckDim(DimVal."Dimension Code") THEN
ERROR(GetDimErr);
IF NOT CheckDimValue(DimVal."Dimension Code",ShortcutDimCode) THEN
ERROR(GetDimErr);
GetDimensionSet(TempDimSetEntry,DimSetID);
IF TempDimSetEntry.GET(TempDimSetEntry."Dimension Set ID",DimVal."Dimension Code") THEN
If you didn't setup any dimension in General Ledger Setup, DimVal."Dimension Code" will be empty and function CheckDim will fail. In my opinion you should add the marked code as follow to make it work:ValidateDimValueCode(FieldNumber,ShortcutDimCode);
DimVal."Dimension Code" := GLSetupShortcutDimCode[FieldNumber];
IF ShortcutDimCode <> '' THEN
DimVal.GET(DimVal."Dimension Code",ShortcutDimCode);
IF ShortcutDimCode <> '' THEN
IF NOT CheckDim(DimVal."Dimension Code") THEN
ERROR(GetDimErr);
IF ShortcutDimCode <> '' THEN
IF NOT CheckDimValue(DimVal."Dimension Code",ShortcutDimCode) THEN
ERROR(GetDimErr);
GetDimensionSet(TempDimSetEntry,DimSetID);
IF TempDimSetEntry.GET(TempDimSetEntry."Dimension Set ID",DimVal."Dimension Code") THEN* Daniele Rebussi * | * Rebu NAV Diary *0 -
Thank you!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
