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

Bank balances

$
0
0
hi! how do you do bank rec on a new implementation

First bank reconciliation

$
0
0
hi guys! client is having their first bank reconciliation tomorrow. My coleague and I are wondering how to do this. They do have some balances in the bank and NAV also has opening balance. But how do we make this work to have the same balance as the one in the statements?

Create file on azure storage in Business Central

$
0
0
I am trying to create a file on azure storage using PUT request, Below is my code and i get the error The value for one of the HTTP headers is not in the correct format.

The Code and the headers formed are:
procedure CreateFileNew(FileName: Text)
var
requestMethod: Text;
request: HttpRequestMessage;
RequestHeader: HttpHeaders;
hhtpres: HttpResponseMessage;
canonicalizedResource: Text;
canonicalizedHeaders: Text;
urlPath: Text;
client: HttpClient;
content: HttpContent;
test: Boolean;
MethodType: Text;
authorizationHeader: Text;
stringToSign: Text;
msVersion: Text;
cha: Char;
contenttype: Text;
contentLength: Integer;
dat: DateTime;
res: Text;
keyss: Text;
dateInRfc1123Format: DateTime;
EncryptionManagement: Codeunit "Encryption Management";
begin
cha := 13;
msVersion := '2015-04-05';//;'02-14-2014';
MethodType := 'CreateFile';
keyss := 'i0PNZ6Ykse7oSSfUzFeA36rQfAvaaJiL9LYbv9UZnol0NRM4sal4s8B3ipkjvfzcsP8/gnI58G6A==';
dateInRfc1123Format := CurrentDateTime;
requestMethod := 'PUT';
urlPath := 'lables/' + 'tre11.csv';
canonicalizedResource := '/bcstorage/lables/tre11.csv';
canonicalizedHeaders := 'x-ms-date:' + Format(dateInRfc1123Format) + Format(cha) + 'x-ms-range:bytes=0-1024' + Format(cha) + 'x-ms-version:' + msVersion
+ Format(cha) + 'x-ms-write:update' + Format(cha);
//canonicalizedHeaders := 'x-ms-content-length:1024' + Format(cha) + 'x-ms-date:' + FORMat(dateInRfc1123Format) + Format(cha) + 'x-ms-type:file' + Format(cha) + 'x-ms-version:' + msVersion;
stringToSign := (requestMethod + Format(cha) + Format(cha) + Format(cha) + Format(cha) + Format(cha)
+ Format(cha) + Format(cha) + Format(cha) +
Format(cha) + Format(cha) + Format(cha) + Format(cha) + canonicalizedHeaders + canonicalizedResource);


authorizationHeader := 'SharedKey bc365storage:' + EncryptionManagement.GenerateBase64KeyedHashAsBase64String(stringToSign, keyss, 2);
Message((authorizationHeader));
request.SetRequestUri('https://bcstorage.file.core.windows.net/lables/tre11.csv');
request.Method := requestMethod;
RequestHeader.Add('x-ms-date', FORMat(dateInRfc1123Format));
RequestHeader.Add('x-ms-version', msVersion);
RequestHeader.Add('Authorization', authorizationHeader);
RequestHeader.Add('Accept-Charset', 'UTF-8');
if MethodType = 'CreateFile' then begin
RequestHeader.Add('x-ms-content-length', '1024');
RequestHeader.Add('x-ms-type', 'file');
end;

client.Put('https://bcstorage.file.core.windows.net/lables/tre11.csv', content, hhtpres);
hhtpres.Content.ReadAs(res);
Message(res);
test := client.Send(request, hhtpres);
end;

BC Service Tier CPU usage

$
0
0
Hi,

is the service tier of BC 14.0.38650.0 on premise only able to use a single core? I know previous versions like NAV 2017 were using multiple cores.

We as a end user have some performance issues and our partner blames the service tier by refering to https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/performance/performance-onprem#scaling, where it says "AL execution is single-threaded until the Business Central 2019 release wave 2".
We are developing in C/AL, and as I understand, in our version AL might only be used for extensions, right? Or is our version already using AL internally and so limiting the service tier to just one core?

Thanks!

Setup OData in NAV2013r2 to connect PowerBI

$
0
0
Hi,

May I ask anyone try to connect Power BI to NAV2013r2 via OData??
I look at the Power BI demo, they are using the OData URL in NAV2016 Web Service. However, in NAV2013r2 web service page, we do not have the OData URL.

I try to put below URL but cannot connect:
http://<Server>:<OData Port>/<DB instance>/OData

It give me below error:
Dynamics NAV: Request failed: The remote server returned an error: (503) Server Unavailable. (Service Unavailable)

Hope someone can guide me.

Thanks.

Displaying Global Dimensions in a Query

$
0
0
I've created a query which includes Shortcut Dimension 1 and Shortcut Dimension 2 in the dataset (it's based on the Purch. Rcpt. Line table).

When I display the query in the client the captions are "Shortcut Dimension 1" and "Shortcut Dimension 2".

If create a page instead, the captions are taken from whatever is specified as shortcut dimensions in GL Setup ("DEPARTMENT" and "CUSTOMER GROUP" in Cronus).

Is this by design? I like the ability in recent versions of Business Central to expose queries as SmartList pages, but users will not accept not having shortcut dimensions captioned correctly. Is there anything I can do?

NAV Client Freezes on click of Apply Entries Button on Payment Journal

$
0
0
One of my NAV User is having this strange issue:
when he clicks on “Apply Entries” on a Payment Journal NAV freezes
and become totally non-responsive. You have to close it from task manager.

This is in NAV 2016.

The Payment Journal had only one line. Deleting it and creating the line did not fix the issue.

If he logins from another computer, this problem does not happen.

So I thought it's may be his NAV client,
So I did a uninstalling and installing of the NAV client,
But that did not fix the issue.

His computer has lots of Memory/CPU/Hard Disk.

Do you have any other idea that I can try?

Thanks

Windows Client Issue with Credential Type UserName

$
0
0
Changed ClientServicesCredentialType to Username.

Web client works, but Windows client would complain:
The ClientServicesCredentialType configuration setting cannot be parsed into a valid NavClientCredentialType

Using NAV 2017.

Any suggestion please. Thanks.

invoice summarizes lines

$
0
0
hi! i post invoice and it sumarizes all lines for 1 gl code.
how can i make it separately

Download Multiple File Failed (Using Stream)

$
0
0
Hi All,
i want to generate file using stream
but if i use repeat , in order to generate multiple files, it will generate the last one only
any advise?

here is my code
procedure GenerateFile()
var
GJL : Record "Gen. Journal Line";
begin 
GJL.Reset;
if GJL.findset then
repeat
    DownloadFile(GJL."Document No.");
until GJL.next = 0;

end;


 procedure DownloadFile(DocNo:Code[20)
    var
        FileExportedName: Text;
        InStream: InStream;
        OutStream: OutStream;
        TempBlob: Codeunit "Temp Blob";
    begin
            FileExportedName := DocNo;
            TempBlob.CreateInStream(InStream);
            DownloadFromStream(InStream, '', '', '', FileExportedName);
    end;

How to setup Odata webservice request for Page 197 (Account Schedule KPI Web service)

$
0
0
I am trying to set up an Odata webservice connection for Account Schedule KPI Web service.This is done by publsihing page 197, so the data can be used with Excel. We are publishing several account schedules, so I want to be able to filter on the account schedule name.
On normal pages it is not a problem to add an filter after the Odata request (?$filter=<field> eq <value>)
On this specifc page the filters are ignored. I suspect that it is because on the code of the page there is the following:

OnOpenPage()
InitSetupData;
FILTERGROUP(2);
SETRANGE(Number,0,NoOfLines - 1);
FILTERGROUP(0);

If I remove the filtergroep and setrange the filter in the Odata request is working, but then the page is not working correctly any more

Does anyone have a suggestion how we can use this page with a filter setting on the field "Account Schedule Name"?

BC365 An Internal Error has occured

$
0
0
Hello Guys.

Im currently working on BC365 and still newbie.

Im trying to publish my worked to a remote server. see error below

1szhs36fnn7x.png

Any idea ?

Thanks and God Bless

Problem to Read Json Stream REST API

$
0
0
Hi Guys,

I'm trying to read a REST API Stream (Json) but something doesn't work.


For example:

i try the same Configuration with Postman and get a json stream, with ca. 2250 KB (Only Body Size)

like this:

rsezesxnf7kg.jpg

IF i use the same Configuration in NAV, and read the Respons, ist look like this.

ll03tdta6c0u.jpg

The Blob Size is exactly the Same (2250 KB).

My Code is this:

dfvroxb495sk.jpg



A call to System.__ComObject.BOF failed with this message: Not enough storage is available to comple

$
0
0
Hi, I am getting this error in 2013 R2. While fetching data from other s/w by using ado connection. I used automation variable. if data is less then everything working perfectly. If anyone faced the same please revert.

TableData Permission Related Issue

$
0
0
Hi All,

While trying to send General Journal Lines (Page 39) for Approval an Enduser is facing the following permission-related issue in BC 14 Environment.

pdbrpkhwu06c.png


To investigate, I have found the following things..

1. Tab 1506 Workflow Table Relation Value has a function called "CreateNew" that is creating the issue.

73lukb8pr1l7.png

3. The EndUser has the Indirect Insert Permission on that table Workflow Table Relation Value (ID 1506)
4. The related Objects have the INSERT Permission in their Object Properties Section.

5s1dr1em2f4q.png


How Do I solve this issue? Is the Direct INSERT Permission only solution?
Kindly reply.

Thanks,
Navuser1

Selling Apps on App Source

$
0
0
Just wondering, if someone can help

My apps are free at the moment on app source
how can I sell my apps so I can charge a monthly fee from customers

I cannot understand microsoft co-sell policy

Thanks for your advise

Client crashes when trying to save a filtered view

$
0
0
Hello
an employee of one of our customers has the following problem: When you start with a specific Role Center and try to save a filtered view, the client crashes with the message that the server has been disconnected.
Other employees can save filtered views in the same Role Center.
I renamed the .zup file.
If another employee logs on to the computer of the said employee, it also works.
Someone an idea for a solution? Is there a limit to the number of possible user customizations? The employee has quite a lot.

Business Central product coupling to CRM in two companies

$
0
0
Hi experts!!


I need to copy a product from company A to company B and at the same time in CRM, I also need to couple them (BC to CRM) in both companies.
I manage to create the product in company B and also in CRM but at the time of making the coupling only in company A and I cannot do it in company B.
This is my code:

CRMID := NewCRMProduct.CreateProduct(vitem);
If CRMID <> '' then
CRMIntegrationRec.CoupleCRMIDToRecordID(CRMID, Item.RecordId);

//change of company, this is the part that doesn't work

pcompany.RESET;
pcompany.SetRange(Name, companyB);
if pcompany.FindFirst then begin
vItemIC.Reset;
vItemIC.CHANGECOMPANY(companyB);
vItemIC.SetRange("No.", Item."No.");
IF vItemIC.findfirst THEN begin
CRMIntegrationRec.Reset();
CRMIntegrationRec.ChangeCompany(companyB);
CRMIntegrationRec.CoupleCRMIDToRecordID(CRMID, vItemIC.RecordId);
END;
end;


it doesn't throw errors, it just doesn't do the coupling at company B.

any ideas?


Thanks in advance

Having trouble moving to AL with an unsual database

$
0
0
So I'm doing work with a client that had previously decided they didn't want anything to do with extensions so someone before me literally removed everything from the Nav App table. Without some form of the base application existing in the database, Application symbols aren't generated no matter what I've tried and I'm not sure how to proceed. I was wondering if anyone else here had seen/dealt with anything similar? I'm relatively new to this NAV but have been doing software development for a long time; so, I apologize if I mess up any terminology or am missing any important information.

Version is BC14.0.43286.0

The server stopped the session (ID: *) because of a stop session request.

$
0
0
Client is facing issue that User's session is stopped automatically by Middle tire.

The scenario is user opens any page via RunModal and then remain inactive for certain time. Before session timeout, if user tries to activate his session then session is closed and below details are logged in event viewer as Information. There is no issue if user remain active and opens the same page via RunModal.

Any suggestion to resolve the issue is appreciated.

Below is event viewer log:

Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSessionTerminatedException
MaxVerbosity: Normal
Message: The server stopped the session (ID: 38593) because of a stop session request.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.SessionAccessLock.ThrowSessionTerminatedException()
at Microsoft.Dynamics.Nav.Runtime.NavSession.ThrowSessionTerminatedExceptionIfStoppingOrDisposed()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.ThrowDisposedException()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.WaitForValue()
at Microsoft.Dynamics.Nav.Types.NavThread.RunExternalAction[T](Func`1 action)
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.<>c__DisplayClass23_0.<FormRunModal>b__0()
at Microsoft.Dynamics.Nav.Runtime.ApplicationObjectRootScope.AddApplicationObjectRootScope[T](NavApplicationObjectBase applicationObject, Func`1 action)
at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.Runtime.NavFormHandle.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.BusinessApplication.Page50612.DrilldownAgining_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page50612.DrilldownAgining(Int32 drillDownAged_P)
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page50612.Over_90_Days_Past_Due_a45_OnDrillDown()
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.SessionAccessLock.ThrowSessionTerminatedException()
at Microsoft.Dynamics.Nav.Runtime.NavSession.ThrowSessionTerminatedExceptionIfStoppingOrDisposed()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.ThrowDisposedException()
at Microsoft.Dynamics.Nav.Service.ResultWaiter`1.WaitForValue()
at Microsoft.Dynamics.Nav.Types.NavThread.RunExternalAction[T](Func`1 action)
at Microsoft.Dynamics.Nav.Service.ServiceCall.GetClientReturnValue(Action invokeCallback)
at Microsoft.Dynamics.Nav.Service.NSClientCallback.<>c__DisplayClass23_0.<FormRunModal>b__0()
at Microsoft.Dynamics.Nav.Runtime.ApplicationObjectRootScope.AddApplicationObjectRootScope[T](NavApplicationObjectBase applicationObject, Func`1 action)
at Microsoft.Dynamics.Nav.Runtime.NavForm.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.Runtime.NavFormHandle.RunModal(NavRecord record, Int32 fieldNo)
at Microsoft.Dynamics.Nav.BusinessApplication.Page50612.DrilldownAgining_Scope.OnRun()
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page50612.DrilldownAgining(Int32 drillDownAged_P)
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Page50612.Over_90_Days_Past_Due_a45_OnDrillDown()
Viewing all 10032 articles
Browse latest View live


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