Hi
When selecting 'Sales & Marketing>Analysis & Reporting>Budgets'
and then from the Budget form select 'Functions>Import from Excel'
The routine displays messages "Reading Excel worksheet..." followed by "Analyzing data..." and then the error message
"User User ID 'FRED.BLOGS' does not exist."
I am using UK Dynamics NAV 5.0, with SQL Server, and Windows Authentication.
The user is setup in Security>Windows Logins (obviously, as he is able to login successfully and run this routine before getting this error).
Other users when trying to run this routine also get to the same error, but with their own login name in the error message.
Any help will be greatly appreciated.
0
Answers
I usually suggest customer to export the budget first. Then populate the excel file, then import it.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Thanks for replying.
The file is generated by selecting 'Functions>Export to Excel' from the budget form.
Some values are entered against some of the lines, and file saved.
Then after selecting 'Functions>Import from Excel' and browsing to the file, unfortunately get the above error.
It seems to be in report 7131 Import Item Budget from Excel, the underlined line below
ItemBudgetBuf - OnAfterGetRecord()RecNo := RecNo + 1;
.
.
ItemBudgetEntry.VALIDATE("User ID",USERID);
ItemBudgetEntry.INSERT(TRUE);
But this report (version NAVW14.00.03) is unchanged from the previous version of NAV, and so is even more puzzling as to why its giving this issue.
Thanks (in anticipation of) for more of your thoughts.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
ara3n, your suggestion of, Design the table "Item Budget Entry" and make sure the field "User id" property "TestTableRelation" is set to NO, - this property is already set to No, - however the ValidateTableRelation is <Yes>, and this could be set to No and the problem will go away.
Alternatively in R7131 could change the line
ItemBudgetEntry.VALIDATE("User ID",USERID);
to
ItemBudgetEntry."User ID" := USERID;
and the problem will go away.
Leaving the Item Budget Entry table properties as they are ie TestTableRelation is NO, and ValidateTableRelation is <Yes> - why is it then, that I can go into the budget form and enter values happily without any error and the import fails?
Either solution will work.
if you decide with changing ValidateTableRelation to No then add code to onvalidate the following code.
LoginMgt.ValidateUserID("User ID");
I've looked at 2009 sp1, and they have removed the table TableRelation property altogether.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have decided to make the change to the import routine and leave the table as is.
It is still a little surprising that no one has raised this issue on this forum before, considering it is such a commonly used routine.
Also add a note to the report that the modification doesn't need to be upgraded. Since this has been fixed in 2009 sp1
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n