Quantcast
Channel: Microsoft Business Solutions online community
Viewing all 14258 articles
Browse latest View live

Is Notes from subform possible?

$
0
0
Is it possible to get the System-Notes to use the record displayed on the subform as reference? I've tried using the ProviderID, but it gets ignored.

For instance if you are standing in the salesorder, and you want a factbox showing the notes related to the item on the subformline. I know I can code a new page and use that, but I would prefer being able to use the System-Notes as that is what is used everywhere else.

Change Dynamics BC credidentials to SQL Server Authentication fails

$
0
0
I Follow this guide https://docs.microsoft.com/en-us/dynamics-nav/how-to--configure-sql-server-authentication-in-microsoft-dynamics-nav#ConfigNavServer to connect a Dynamics BC instance to an Azure SQL database

running this powershell command: Set-NAVServerConfiguration -DatabaseCredentials $Credentials -ServerInstance $NAVServerName -Force
give this warning:
WARNING: You should encrypt the connection to the database to help protect against network attacks, such as man-in-the-middle attacks.
To encrypt the connection, select the Enable Encryption on SQL Server Connections setting (EnableSqlConnectionEncryption = True) and clear the Enable
Trust of SQL Server Certificate setting (TrustSQLServerCertificate = False).
WARNING: The new settings value will not take effect until you stop and restart the service.

I have set and checked EnableSqlConnectionEncryption = True and TrustSQLServerCertificate = False
I also have runned Import-NAVEncryptionKey

restart of the service don't make any changes.

Manually changing the settings to SQL Server Authentication also reset it back to Windows Authentication.

Do any of you have a suggestion on how to set up af Dynamics BC with a Azure SQL database.

ODataV4 WS giving me: An item with the same key has already been added

$
0
0
When I open any ODataV4 WS link in the browser I'm getting this error:

016x406rn8aj.jpg

Every time I refresh the browser (Chrome, Firefox, Edge...) with each browser it gives the same error.

Inspecting Windows Server logs, every time I refresh in the browser, it appears an error log saying: "An item with the same key has already been added". I only get this error with ODataV4. SOAP and OData work fine and give correct results in the browser.

Curiously, ODataV4 WS worked fine last week, besides, I had a backup NAV instance from 28th January and ODataV4 works. This error only happens in the production instance with especifically ODataV4.

I have already tried removing and re-adding the WS but it keeps giving the error. I don't understand why it's giving that error because I'm not trying to insert to the DB, I'm trying to read data. Right now I don't have the full stack trace but tomorrow I can post it.

Thank you guys

SQL error when trying to start a NAVService

$
0
0
I'm getting a SQL error when I try to start a NAVService. All settings seem to be fine. It looks like it is database related.
The NAV version is: NAV2017, build 10.0.25480). I tried the NAVServices for SQL2014 and SQL2016, but same error.
This is the error I'm getting:

Server instance: SCSPROD
Tenant ID:
<ii>The Cannot access a disposed object.
Object name: 'NavSystemTenant'. instance startup is aborted and the event publisher initialization has been cancelled.
20</ii>

I made sure ports are not being used by other services.
Anyone has an idea?

Thanks,
Roelof

Hi Guys please i need help on a problem i have been trying to fix for 2 days now on NAV 2016

$
0
0
Too many keys fields specified , so "the VAT Amount line " couldnt be retrieved. The number of fields in the primary key is 5
am seeing this error when am posting in the sales invoice page and i cant understand the error msg please your helps will be highly appreciated

Extensions - How to enable newly created extension page to be visible in RTC Client?

$
0
0
Hello,

I've created few "extra" extension pages and now I would like to see them directly inside NAV RTC Client. In Visual Studio Code I've added lines like:

UsageCategory = Administration;
ApplicationArea = All;


I can see my package extensions inside RTC Client but I can't find pages by searching. Any advises? Thanks!

Adding Digital Signature in NAV PDF Report

$
0
0
Dear Sir,

My client currently generates PDF files from NAV/RTC Report. After that they attache a Digital Signature(3rd Party) into it & mail. The Digital Signature is located in a PEN DRIVE provided by a 3rd Party. Only 3rd Party Software can locate/fetch the signature file from the PEN DRIVE.

How can I attache the same file direct from the PEN DRIVE into the PDF Report without any user interaction ?
Kindly guide.

Thanks,
navuser1

Sales Invoice Line Already Exists Error

$
0
0
mc8009pj9f78.jpg when trying to post a sales invoice the error The Sales Invoice Line Already Exists appears. I am assuming the line referenced is the first line on the list. If I check the line it has a shipment line linked to it.

How do I move past this error ? Working with NAV 2013 R2

Thanks

In purchase invoice when i tag gate entry no, my posted purchase receipt date has to come

$
0
0
In purchase invoice when i tag gate entry no, my posted purchase receipt date has to come in document date. How to get the same

Subscription Events not running

$
0
0
We are in the process of implementing a new version of Dynamics NAV 2016 CU1, and during testing are having a few issues with subscriptions. I have a codeunit which has a number of new functions which are subscriptions to events in the standard tables and codeunits. I have noticed that these subscribers are not always being fired, and when I look at the Subscription Events from the debugger, none of my events are listed. Re-compiling the codeunit, and they re-appear.

Has anyone else experienced similar behaviour?

BC does not show Role Center in WebClient

$
0
0
Hi,
I have installed BC on Server2012 and also Web Server.

When I open windows explorer to connect to Dynamics NAV via Web Client, I only get an empty page with the BC symbol in the middle of the page.

In the event log following message occours:

Application 'MASCHINE7WEBROOT/APPHOST/MICROSOFT DYNAMICS 365 BUSINESS CENTRAL WEB CLIENT/DYNAMICSNAV130' started process '4492' successfully and is listening on port '32969'

Do I have to configure anything else in Dynamics NAV or on IIS to get it work?

the navsettings.json seems to be correct.

No clue where to problem is!?

New Sections for New Tech?

$
0
0
When 2009/RTC came out, the "Three Tier" forum was spun up since it was dramatically different from Classic.

Could we please get a new section for Extensions/AL?

Might even be useful to have sections for Dynamics 365, as well as Web/Mobile Client, but those I'm not feeling as strongly about.

I'd be happy to help work through thread history to migrate threads there if that's a factor.

Gst in case of export

$
0
0
Hi.
In navision Indian localisation
In export transaction currently gst entry is gst refund account and other account is igst payable

I want that in export transaction igst payable account should hit and gst amount should be charged to customer

Eg
Currently if my sales value is 100rs
And gst 18%
So currently entry is customer account is debited with 100rs and sales account credit with 100rs and igst credit with 18rs and gst refund dr with 18rs
Bt I want that customer account Dr with 118 rs
And igst credit 18rs
And sales 100rs

Kindly​ help urgent
Thanks

Action completed successfully, but it took longer than the given threshold

$
0
0
22vv7w6z7ail.png

does anyone knows what are the possible things that causes this ?

Problems using recordref,fieldref... JOKER

$
0
0
Hi everyone,

This is my first time using recordrefs and all the related issues, so may be I am asking about somthing obvius. First of all, I'll show a piece of code:
LOCAL RecorrerRutas()
//190212-01
 lGeneralSetup.GET();
 lRecordFilerelation.RESET;
 IF lRecordFilerelation.FINDSET THEN REPEAT
  lRegistroREF.OPEN(lRecordFilerelation."Object ID.");
  lCampoREF := lRegistroREF.FIELD(lRecordFilerelation."Field ID Posting Date");
  lCampoREF.SETFILTER('>%1',CALCDATE('-<lGeneralSetup."Day-to Check">',WORKDATE));
  IF lRegistroREF.FINDSET THEN REPEAT
    lDocNoRef := lRegistroREF.FIELDINDEX(1);
    IF NOT Signed(lDocNoRef.VALUE , lRecordFilerelation."Object ID.") THEN//comprobar firmado
      IF NOT Sent(lDocNoRef.VALUE,lRecordFilerelation."Object ID.") THEN//comprobar enviado a firmar   
        ComprobarRegistros;
  UNTIL lRegistroREF.NEXT =0;
 UNTIL lRecordFilerelation.NEXT =0;

LOCAL Signed(pDocNo : FieldRef;pRecType : Integer) : Boolean
lSentNotReceivedDocs.RESET;
IF lSentNotReceivedDocs.GET(pRecType,pDocNo) THEN
  EXIT(TRUE)
ELSE
  EXIT(FALSE);

LOCAL Sent(pDocNo : FieldRef;pRecType : Integer) : Boolean
lSentReceivedDocs.RESET;
IF lSentReceivedDocs.GET(pRecType,pDocNo) THEN
  EXIT(TRUE)
ELSE
  EXIT(FALSE);

Variables:
lCampoREF FieldRef
lRegistroREF RecordRef
lDocNoRef FieldRef

When I compile I can see this error in the call to "Signed" function:

pastedimage1550738771514v1.png


Probably I am doing something else worng because as I've said, I am new in this issues...

Any other clarification you can ask me, I know that it's quite hard to help without knowing waht it's the aim of the development

Thank you very much

NAV2013 - filtering results for a cue

$
0
0
Hello everyone. This is my first post here so please excuse any errors i may make.

I'm trying to create a cue to show me the number of unloading points (arbitrary name of a place where packages are picked up) having a deactivation date older than or equal to 14 days with regards to the current date. The base table has a field called deactivation date type date which is set automatically with the current date when the bool field 'deactivation' is set to yes. The cue table has a pk-field and the field 'deactivation date'. Unfortunately nothing i can find allows me to filter the cue according to my wishes.

Would someone be so kind as to step me through this?

Best regards

Problem one NAV Instance & Shema Synchronization

$
0
0
NAV 2018 (Build 23019)
I have a problem with a NAV instance where every 1-2 days,
locks NAV service and asks to do Schema Synchronization with Validation, then it does everything normally.
We do not make any changes to the tables etc ....
that instance is used only by PDA-devices
Where I can see what initiate Shema?

general upgrading strategy - opinions?

$
0
0
Hi,

this might be a bit lenghty but I appreciate if you bear with me and share some thoughts.

Current situation:
We are working on a pretty old version of NAV Dynamics. The system info reads:

Microsoft Dynamics NAV 2009 SP1
Version AT 3.60 (6.00.29626)

The way we use it is that we take full advantage of the included accounting modules (G/L, Fixed Assets, Purchases) and a salary module. On top of that we developed a complete and pretty versatile ERP system that covers 100% of our daily business. We started out on 2.60 in 1999 and only upgraded when absolutely necessary. Upgrading so far never was much of a deal since the basic technology never changed. We have been working with the system for a little over 20 years now while constantly improving it. We would continue to do so but the extended support has ended and we need to do something. You might argue that our strategy was not very smart but that's the situation we are in right now and at least it worked for two decades.

The only reasonable thing to do if we continue to use Navision is to move to the newest version possible. Fact is that the classic client and reports as we know it are gone and we need to build the whole thing more or less from ground up. We might be able to use existing table layouts but the whole user interface with all functionalities needs to be created using the (for us) new pages, code needs to be moved to different places and most of all this is the time to clean up the code that has been tinkered with for 20 years.

The big question for me now is how long will we be able to use the new system. With the release of Dynamics 365 Business Central on-premises Microsoft has shortened the extended warranty from 10 to 7 years. This means that the previous version NAV 2018 will actually live longer than the new one (11.1.2028). If I understand the Microsoft strategy correctly we cannot expect to see another version that supports the C/AL code which allows the user to develop his own functionalities. So if we develop a new system based on NAV 2018 and start using it some time next year it is very likely that we will not be able to use it any longer than 7 years before we hit another and of extended support. Chances are that by then there will be no version available to which we can migrate without developing the whole thing from ground up again or at least most parts of it.

As far as I know the new code AL is already available but without having any facts at hand I have been told that this is - for whatever reason - not ready to be used as a platform for a completely self developed ERP system.

We do love the accounting part of Navision, the fact that it's fully included in our ERP system and the powerful and comfortable functionalities it brings. So we are a bit biased when it comes to Navision.

I even wonder what risks we are facing if we are ignoring the end of extended support and just stick with what we have. My stomache tells me it's not the smartest thing to do but I have to admit that I still don't know all the facts. Security updates are a concern and not being compatible with future server platforms.

What are your opinions on this? Is there a severe misconception in my thinking? Am I overlooking something? Is there a way to stick with Navision by putting in the effort to create a new modern version of what we have without hitting a wall again 7 years down the road?

Any opinions are highly appreciated!

Thanks!

Unable to send Post request in Business Central

$
0
0
This is my AL code:

var
Client: HttpClient;
Headers: HttpHeaders;
Content: HttpContent;
Url: Text;
MyContent: Text;
TempBlob: Record TempBlob;
APIResult: Boolean;APIOutput: Text;
AuthText: Text;
begin
Client.DefaultRequestHeaders.Add('Accept', 'application/json');
Content.Clear();
Content.WriteFrom(MyContent);
Headers.Clear();
AuthText := StrSubstNo('username:password');
TempBlob.WriteAsText(AuthText, TextEncoding::Windows);
Headers.Add('Authorization', StrSubstNo('Basic %1', TempBlob.ToBase64String()));
Headers.Add('Content-Type', 'application/json');
Content.GetHeaders(Headers);
if not Client.Post(Url, Content, ResponseMessage) then begin
Error('The call to the web service failed.');
end;
Headers := ResponseMessage.Headers();
ResponseMessage.Content().ReadAs(APIOutput);
Message(APIOutput);
EXIT(ResponseMessage.IsSuccessStatusCode());

At the Headers.Add('Content-Type', 'application/json'); get the following error:
Element 'Headers' is not a member of 'Content'

Think this is caused by the previous line, been unable to find anywhere online where this error has occurred previously. Been struggling with this for days, have tried without the authorization but still get the same error.

Navision 2018 SQL pull

$
0
0
I am seeking some help; not the best at sql by a long shot.
I had some help from a previous Macola ES programer that helped me get the base of our sql query started but is no longer able to help.
Currently, as this query excecutes it pulls the available date as 30 days from todays date. we would actually want that to be the expected receipt date from Nav purchase lines for the earliest date reported. additionally, i'd like to return the qty on that po line.

is this something that anyone on here would be able to help with or point me in the right direction.

how do i go about inserting the date and qty from the purchase lines?



SELECT 'MIBUSO', ix.[Cross-Reference Type No_] AS cus_no, i.[No_] AS item_no, max(ix.[Cross-Reference No_]) AS cus_item_no, (CASE WHEN sum(cast(COALESCE (qoh.qty_on_hand, 0.0)
- COALESCE (qoo.qty_on_salesorder, 0.0) AS decimal(14, 2))) < 10 THEN 0 ELSE sum(cast(COALESCE (qoh.qty_on_hand, 0.0) - COALESCE (qoo.qty_on_salesorder, 0.0) AS decimal(14, 2))) END) AS qty_on_hand,
max(i.[Base Unit of Measure]) AS uom, max(i.[GTIN]) AS upc_cd, (CASE WHEN sum(cast(COALESCE (qoh.qty_on_hand, 0.0) - COALESCE (qoo.qty_on_salesorder, 0.0) AS decimal(14, 2))) >= 10 THEN NULL
ELSE dateadd(d, 30, getdate()) END) AS available_date, '001' AS loc
FROM [MIBUSO$Item] i LEFT OUTER JOIN
(SELECT [Item No_] AS [No_], sum([Remaining Quantity]) AS qty_on_hand
FROM [MIBUSO$Item Ledger Entry]
WHERE [Location Code] = '01'
GROUP BY [Item No_]) qoh ON qoh.[No_] = i.[No_] LEFT OUTER JOIN
(SELECT [No_], sum([Outstanding Quantity]) AS qty_on_salesorder
FROM [MIBUSO$Sales Line]
WHERE [Location Code] = '01'
GROUP BY [No_]) qoo ON qoo.[No_] = i.[No_] INNER JOIN
[MIBUSO$Item Cross Reference] ix ON ix.[Item No_] = i.[No_] AND ix.[Cross-Reference Type] = 1
GROUP BY ix.[Cross-Reference Type No_], i.[No_]

thanks in advance!
Viewing all 14258 articles
Browse latest View live


Latest Images

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