Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all 10032 articles
Browse latest View live

NAV 2017 Azure deployment

$
0
0
Hi,

today I tried to deploy NAV 2017 on Azure with the provided powershell script, but I have a problem running the script. I always get an error


Set-AzureSubscription : ResourceNotFound: The storage account 'xxxxx' was not found.

first I tried with an existing storage account, then I created a new one but nothing works.

does anyone have an idea what the problem might be?

How hide field in nav 17 based on user role

$
0
0
Hi

I want hide Item unit cost in Item card and Item list pages based on user id. I have a field in user setup table with boolan type.
Will you suggste small code

like currpage.unitcist.visible(false)

Please
warm reagards
Krsi

API Google DotNet

$
0
0
Hello,

I am trying to create a Report Only processing, that calculates the distance between two Local Post Codes ( My Company WhareHouse and Client).
I'm using a variable dotnet getdistance from google to calculate the distance. But i have some problems.
I have more than 30k lines to calculate, and not all gives back distance different from 0.

My table structure is like this:

Customer No|PostCodeOrigin|PostCodeDestination|Distance
where
Customer No|PostCodeOrigin|PostCodeDestination is a key.


the code does something like this

MyTable.RESET;
IF MyTable.FINDSET THEN REPEAT
...
Code to get the Post Codes and other data
.....
Distance:=GetDistance(PostCodeOrigin, CountryOrigin,PostCodeDestination,CountryDestination);
IF Distance= 0 THEN
Distance:=1;// so i can know what calculation failed
Mytable.Modify;
COMMIT;
SLEEP(1000);

Until Mytable.Next=0;

How can i complement the variable distance so that if it gets 0 there can be other way to get distance by other fields of Customer and Location tables.
Then how can i pass the limit of requests . I don't know what is the limit but i guess is very little.
Or is other way of getting distance between to points in NAV?

Really need help on this one :-/



database is too recent error NAV 2017 cumulative update 12

$
0
0
I just installed cumulative update 12. When I attempt to start the service for the demo database I get the error "database on server cannot be opened by this version of Dynamics NAV because the database is too recent". I doubled checked. The service is NAV version 10. The database is version 10. This was all working before I did installed the cumulative update. Suggestions?

How to remove drop-down menus? Go directly to advanced menu

$
0
0
Hi.

Does anyone know if it is possible to remove the drop-down quick menu on the Sales order Page for the Item No and go directly to the advanced menu? (See picture below). Where is this little menu located? What page/table? Thanks.

dropDownMenu.jpg

Export to excel list part page

$
0
0
Can I add option "export to excel" to pages that were defined as list part pages? And how?

Error while posting Purchase Invoice

$
0
0
Hi,

Can anyone help me , I have problem while Posting Purchase Invoice. Other entries are ok.

Please help me, Urgent

Warm Regards'
Krisvt4e40ezaeyw.png

Another NAV2017 cumulative update 12 AU issue

$
0
0
I had to completely uninstall and reinstall the NAV server and client so I could run the Demo database, and everything is updated.

But I cannot then access the company's database. I cannot run it from the NAV Server: I get an error (seen in event viewer) that it must be converted. In the development environment NAV2017CU12, running as administrator, I open the company database, am prompted to convert, I click on yes, then I get an error that I do not have permission to delete from the G/L Entry table. The service account and my account are both db_owners of the company database.

Why is it deleting from the G/L Entry table anyway?

So I cannot run the database until I convert it, and I cannot convert it. Also I get an error when I attempt to import the new version of table objects, that it cannot find the instance, so I cannot import the objects.

Slawek warned me that I would not be able to access my old database with the new client. I still have the NAV2017 software on the drive, so I can access the database with the development environment using that finsql.exe. But it doesn't really help. I cannot find in the upgrade codeunit where it even uses the G/L Entry table.

Thanks for any suggestions.




Posting error with SQL

$
0
0
Dear all,

When I try to post I am getting error related to SQL. When I run DBCC function in SQL, it is showing error table sysobjvalue which tells there are duplicate keys on the table. Now I am unable to access the table.
anyone have idea, please help me
warm regards
Kris

Multiple list page on one table?

$
0
0
Hello developers,
Can I put multiple lookup page because of item type on table(purchase line.No)
Example.lookup item no with service type on purchase order
Another one is lookup item no with inventory type on purchase invoice

Sales Shipment Header

$
0
0
Hi,

I created a table with all possible combinations, based on historic sales, of origin and destination of Post Codes and it's distance in Kms . My point here is to fill up a field in Sales Shipment Line with distance based on the other table.

For example a Shipment of Customer X From A to B in a total of Z Kms.

I created a ProcessingOnly Report to insert in Sales Shipment Line the kms.
My table has this fields :
Code, Customer, PostCode Origin, Post Code Destination, Distance
Where Customer, PostCode Origin, Post Code Destination is a key.

Here is what i tried to do:
Sales Shipment Header - OnAfterGetRecord()

Location.RESET;
Location.SETRANGE(Code,"Sales Shipment Header"."Location Code");
IF Location.FIND('-') THEN
   loc:=Location."Post Code";


   DistanciaEntrega.RESET;
   DistanciaEntrega.SETRANGE(DistanciaEntrega."No.", "Sales Shipment Header"."Sell-to Customer No.");
   DistanciaEntrega.SETRANGE("Cod. Origem",loc);
   DistanciaEntrega.SETRANGE("Cod. Entrega","Sales Shipment Header"."Ship-to Post Code");
   IF DistanciaEntrega.FIND('-') THEN
     SalesShipmentLine.RESET;
     SalesShipmentLine.SETRANGE("Document No.","Sales Shipment Header"."No.");
     SalesShipmentLine.SETRANGE("Sell-to Customer No.","Sales Shipment Header"."Sell-to Customer No.");
     SalesShipmentLine.SETRANGE(Type,SalesShipmentLine.Type::Item);
     SalesShipmentLine.SETFILTER("No.",'<>%1','');
     SalesShipmentLine.SETRANGE("Item Container",FALSE);

     IF SalesShipmentLine.FINDSET THEN REPEAT
      SalesShipmentLine.Distance:=DistanciaEntrega.Distance;
      SalesShipmentLine.MODIFY;
     UNTIL SalesShipmentLine.NEXT=0;

But i Can't get the code from my table with sales shipment header.
What am i doing wrong?

Sum Index Field Technology(SIFT) in Navision

$
0
0
Whats a use of Sum Index Field Technology(SIFT) In Navision?

Ship-to Address Relation to Sales Order

$
0
0
Hi there,

Im trying to get an XML output (working fine) but only got 1 problem.
When an Sales order has an Alternative address i want the phonenumber and Email given in this field to export in my XML.
As far as i can see, de Sales header has ship-to some stuff ... but no email / phone number. When i make a link with the table 222 (ship-to address) i only
can make a link field with customerno and not with Sales Header DocumentNo.

Any body knows what im doing wrong ?
Thnx

Codeunit as WEB Sevice in NAV accesed from non-Microsoft environment

$
0
0
Dear all,

We have to do and present and WebService that it is called on demand from other non-Microsoft Environment, so in that time that codeunit/page has to accept the file content and even the key and value, so does anyone had to do with this.

Any help is very appreciated.

Thanks in advance.

You do not have the following permissions on Table XX: Execute

$
0
0
Hello,

I was creating a few tables, and the last two I can't run. I get the following error when running the table directly from development:
7zpv4tjaafyp.jpg

The table is in the 50000 range (no. is specifically 50011) so that shouldn't be the issue.

The table contains two fields:
  • Option
  • Text

EDIT: I just tried changing the no. to 50005 and now I was able to run it. It doesn't make sense though, the license should cover a much larger range. Anyone got an idea?

Best regards
Marcus

Report to word template, don't see save to Excel

$
0
0
Hello!
I have different word template for each customer. If i want save to excel, but in format the template word. How i can this?

Need to Export / Import approx. 1Million records

$
0
0
Hi All,

I have to export a table data which contains approx. 1 Million records and need to be imported into another table (in other database) in NAV.

Is there any quick way to achieve it apart from creating XML Port.

As rapid start is not working in this case getting below issue:
Microsoft Dynamics NAV
---------------------------

SaveCopyAs method of Workbook class failed
---------------------------
OK
---------------------------

Thanks in advance

What is the best/shortest method of converting XML datetime into NAV datetime?

$
0
0
yyyy-MM-ddThh:mm into NAV datetime please?

Best practices in NAV2016/2017 for reading data from an external SQL database

$
0
0
Hi all,

We have to read (and potentially write) data from an external SQL database. The volume is not super-high (per day, new/modified record counts measured in the 100's at most, and about 6 tables). This data would be "staged" into temporary tables in NAV, then processed via a Codeunit called from a Job Queue Entry to create the "real" tables in NAV.

In pre-2016 days, I would be tempted to write ADO code, so one option is to write ADO.NET code.

I have also been reading about the new linked object "TableType" of "ExternalSQL" and the related commands to connect (e.g. REGISTERTABLECONNECTION and associated commands).

There are a few posts here on MIBUSO that talk about creating views directly in SQL, then using the "old style" linked objects. But there are a number of opinions in the NAV community that I respect that suggest NOT using views or custom stored procedures in a NAV database.

Are there any other techniques that would be considered "Best Practices" in the NAV2016/2017 era? Links to real examples would be appreciated.

Thanks,

Ron

NAV TechDays 2017 conference video

$
0
0
My conference video has just finished uploading, should be online in 15 minutes.
NAV TechDays 2017
Special thanks to Natalie Karolak, David Singleton and Gary Winter for agreeing to take part in the spontaneous interviews.
Viewing all 10032 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>