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

Excel Automation with NAS

$
0
0
I have a codeunit that updates an Excel Spreadsheet in order to provide inventory feed to customers. This works fine when I run from a client. Works fine when I run the codeunit on the server. Works fine when I run the codeunit in client on NAS Machine. But when I put the codeunit in the Job Queue it bombs trying to create the Excel Automation object. I have assured that the NAS Service User has Admin rights, but I can't get past this error!!! I have read threads and posts and google articles and tried so many things, but no avail.

It blows up as soon as it hits this code:

CREATE(MSExcel,FALSE,TRUE);

Variable Declaration is as follows.

Name Subtype DataType Length
MSExcel 'Microsoft Excel 16.0 Object Library'.Application Automation

I realize that the false, true is setting it to create on the client, but you can't save and compile if the second option is not TRUE, unless I am missing something simple.

It errors saying that Client Callbacks are not supported.

There are no dialogs being shown. Hasn't gotten to the point of actually doing anything, just trying to create the Object.

HELP!

How to pull attendance data from biometric system to NAV

$
0
0
Hi,how to pull attendance data from biometric system to NAVision?Biometric system has provided me with a DLL file and the biometric system is IP based.I want to pull data from the system every hour.

How to recover Data in Extension in Navision

$
0
0
I have created an extension and publish it. I have also installed the extension. After installing, i have enter few data in the table and then uninstall the extension. After uninstall, I have found that the field which is added to table is not there in table. If I am trying to Install extension back it is not allowing.

Kindly let me know how to restore data back

Additional NAV Instances in azure sql

$
0
0
Hi All,
When i am trying to import Key using below comments i am getting following error message .Please help me

Export-NAVEncryptionKey -ServerInstance LSVDB2017 -KeyPath 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\100\Server\Keys\LSVDB2017.key' -Password (Get-Credential).Password | Import-NAVEncryptionKey -ServerInstance NewInstance2017j2ve8sjtrcmv.png

Note:
The Aim is need to create multiple instance and need to connect with out any issue
Already having one instances with out having any issue .The issue comes when i am trying to create new instances

Regards,
Muthu

Dynamics 2016 on Azure SQL Database service

$
0
0
Hi there,

If anyone have experience with NAV on Azure, please help. The problem is explained bellow:

*We have server which is set on Azure and the database is set on Azure SQL Database service. We need to have two NAV Service instances. One DynamicsNAV100Local, which will be used for development locally on the server, and other one DynamicsNAV100WAN for connection to the service and NAV database from WAN connection.
*Problem is, when I start one of the instance which is logged using SQL user is ok. When I start the second one, I have an error*:

<error>The Microsoft Dynamics NAV Server instance cannot connect to the application database because it is using a different password encryption key than the one currently used on the database</error>

When one of the instances will be started, key from that instance is valid and only this instance is starting, when another instance I try to start, automatically service is going to status Stop Pending >> Stopped with explanation that the encryption key is wrong.

Using specifications to set up the system, to start up the Service instance, it must to use SQL authentication.

Thank you in advice
Best Regards



How to setfilter all global and shotcut dimensions?

$
0
0
Dear Developers,
I want to setfilter all global and shotcut dimensions between purchase line and item budget entry.
Purchase line has 2 global dimensions and Item budget entry has 5 dimensions. Please show me example code.

Thanks,

how to create setup for SMTP mail in navision .the version i am using is NAV 2009R2

$
0
0
please suggest me some solutions ...
any answers would be appreciated ...

Workflow Step Instances Missing Error

$
0
0
The PO Approval Workflow has no Step Instances records. This looks like an issue (deleting them and putting them back) caused the Step Instance records to be deleted that was supposed to be fixed but we are using NAV 2017 cumulative update 11. Has anyone come up with a solution to re-create the workflow step instance records? I would prefer not to re-create the workflow.

Error while Printing "OutOfMemoryException"

$
0
0
When I'm trying to print a lot of invoices from Posted Sales Invoices (143) (+25 aprox)
I get this error:
3t1i46iei00x.png

The report has some pictures and I suppose that the problem was an "OutOfMemoryException" So I decided to remove all the pictures from the report to test if this was the problem. But even with no pictures in the report I get the same error when I try to print +25 invoices.

Where is OnSendPurchaseDocForApproval event?

$
0
0
Hello developers,
I added new document type in Purchase header. and want to approval request with new type. I created new workflow template But there is an error "No approval workflow for this record type is enabled."
I`ve searching a reason of this step by step. What is an OnSendPurchaseDocForApproval integration event?
How can I use new type on workflow?

New line in text constant using STRSUBSTNO

$
0
0
Hi all,

I'm trying to add aditional information to a sales invoice when using "get shipment lines".
The first line is always the "shipment no" and is found in table 111: SalesLine.Description := STRSUBSTNO(Text000,"Document No.");
I would like to add a second line with the customer reference and external doc no.
SalesLine.Description := STRSUBSTNO(Text000,"Document No.","Customer Order Reference","External Document No.")
I tried all possible solutions to insert a new line, but none seem to work in this case. And almost all hits on google refer to RDLC...

Can someone point me in the right direction please?

Can not Get Response from Web Service

$
0
0
7ycnvj0hry7o.png
zmiwfddbowtm.png

I send request to Web service from this code. Why I can not GET response from Web service ? What's wrong ?

OnRun()
CreateXML;
InvokeNavWS;

LOCAL InvokeNavWS()
CLEAR(xmlhttp);
CLEAR(xmldoc);
CLEAR(xmlnode);
CLEAR(xmlnodelist);
CLEAR(xmlattributes);
result := FALSE;
// Create XML Document
xmldoc :=xmldoc.XmlDocument;
xmldoc.Load(FileName);
// Create XMLHTTP and SEND
xmlhttp :=XmlHttpClass.XMLHTTPRequestClass;
xmlhttp.open('POST', 'http://de01-onec05.corp.111111.com/UT_111111-DEV/ws/Navision?wsdl', FALSE,'111111','111');
xmlhttp.setRequestHeader('Content-type', 'text/xml; charset=utf-8');
xmlhttp.setRequestHeader('SOAPAction', 'http://www.111111.com/Navision/package#Navision:CreateOrderToSupplier');
xmlhttp.send(xmldoc.ToString);
ResponseString := xmlhttp.responseText;
xmldoc.LoadXml(ResponseString);
// If status is OK - Get Result XML
IF xmlhttp.status=200 THEN
BEGIN
//xmldoc := xmlhttp.responseXML;
xmlnodelist := xmldoc.GetElementsByTagName('m:return');
Nodes := xmlnodelist.Count;
FOR i := 0 TO Nodes-1 DO BEGIN
xmlnode := xmlnodelist.ItemOf(i);
xmlattributes := xmlnode.Attributes;
xmlnode := xmlattributes.GetNamedItem('Error');
IF NOT ISNULL(xmlnode) THEN
errortxt := xmlnode.InnerText;
xmlnode := xmlattributes.GetNamedItem('Result');
IF NOT ISNULL(xmlnode) THEN
resulttxt := xmlnode.InnerText;
END;
END ELSE
result := TRUE;
xmldoc.Save('C:\Users\111111\Desktop\test50000_resp.xml');
CLEAR(xmlhttp);
CLEAR(xmldoc);
CLEAR(xmlnode);
CLEAR(xmlnodelist);
CLEAR(xmlattributes);

CreateXML()
CLEAR(TempBlob);
CLEAR(XMLStreamOut);
CLEAR(XMLStreamIn);
FileName := 'C:\Users\omegaplus\Desktop\test111111.xml';
ServerFileName := FileMgt.ServerTempFileName('xml');
XMLFile.CREATE(ServerFileName);
XMLFile.CREATEOUTSTREAM(XMLStreamOut);
XMLPORT.EXPORT(XMLPORT::TestSoap,XMLStreamOut);
XMLFile.CLOSE;
FileMgt.DownloadToFile(ServerFileName,FileName);
//MESSAGE('File Exported as: %1.', FileName);

NAV 2017 CU 12 Error

$
0
0
Hi, we upgraded to CU12 over the weekend and now we have issues with our job queues. The error message we see is this:
Server instance: JOBQUEUE_PROD
Category: TaskScheduling
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 00000000-0000-0000-0000-000000000000
EventTime: 11/20/2017 13:44:06
Message <ii>(NullReferenceException): <ii>Object reference not set to an instance of an object.
ExceptionStackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavUser.<>c__DisplayClass92_0.<JoinUserGroupsWith>b__0(IdentityReference g)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Microsoft.Dynamics.Nav.Runtime.NavUser.JoinUserGroupsWith(IdentityReferenceCollection listOfGroups, ContextType typeOfGroups)
at Microsoft.Dynamics.Nav.Runtime.NavUserAuthentication.AuthenticateTaskSchedulerCredential()
at Microsoft.Dynamics.Nav.Runtime.NavUserAuthentication.Authenticate()
at Microsoft.Dynamics.Nav.Runtime.NavUserAuthentication..ctor(NavTenant tenant, NavClientCredentialType authenticationType, UserType userType, Object token, String userName, String authenticationKey, String authorizationCode, IAzureADGraphQuery azureADGraphQuery, Func`1 getWindowsIdentity)
at Microsoft.Dynamics.Nav.Runtime.NavTenant.Microsoft.Dynamics.Nav.Runtime.ITenantSessionHandler.CreateTaskSchedulerSession(Guid userGuid, String userName, TimeZoneInfo timeZone)
at Microsoft.Dynamics.Nav.Runtime.NavTaskScheduler.TaskRunInfo.InternalRun()
CallerStackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavTaskScheduler.TaskRunInfo.InternalRun()
at Microsoft.Dynamics.Nav.Runtime.NavTaskFactory.<>c__DisplayClass1_0.<RunTask>b__0()
at System.Threading.Tasks.Task.Execute()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.ThreadPoolWorkQueue.Dispatch()

</ii></ii>
ProcessId: 26248
Tag: 000003P
ThreadId: 24
CounterInformation:
---
Settings have not been changed. We have one service tier that has the Task Scheduler enabled and it runs under a domain account.
The account is in NAV as a super user. We use windows authentication.

Does any one have a clue what this is?

Thanks
Daniel

Sales Invoice Subform (page 47)

$
0
0
Client asked for defaults to be added when you pick a resource.

in the No. validation method:
{-- code to get pricing info --}
VALIDATE("Unit Price", priceVariable);
{-- end of code to get pricing info (loops and if statements no need to display) --}

VALIDATE("Quantity", 1);

{-- code that was already in the No. Validate method--}
NoOnAfterValidate;
UpdateEditableOnRow;
ShowShortcutDimCode(ShortcutDimCode);
IF xRec."No." <> '' THEN
  RedistributeTotalsOnAfterValidate;


however when I am running the code - it does not update the totals and balances flowfields of the subform until I change the quantity manually in the subform or add a new line. It does not seem to update off the validation.

Thank you ahead of time

Image in email signature

$
0
0
Hi,
We have a customer running NAV 2017. They want to be able to send invoices by email by smtp and be able to put signature text and image in the email. It seems that we are not able to put image in mail body/signature. Is there any workaround?

Intercompany Orders

$
0
0
Can an Intercompany Purchase Order be changed/updated, sent to the IC Partner, and the Sales Order associated to the Purchase Order be updated? Or would the Sales Order have to be manually updated?

Bin and Bin Content Tables

$
0
0
Hi All,

We have a requirement from client wherein we need to create a new company and all setups and masters data needs to be copied from an existing company.
My question is do we need to copy the data of "Bin" and "Bin Content" Table to newly created company? Is Bin and Bin Content tables considered as Masters or Transactional Tables?

Thanks in advance.

Manufacturing Planning: Safety Stock

$
0
0
Hi, I have a recurrent issue while planning with Safety Stock in an item.

The story is an item which is replenished by Production Order, Reorder Policy Lot by Lot. It has a Safety Stock of 10, and Inventory right now is 0.

If I plan this item, I will get an emergency Production order for 10 which is right.

Lets say I execute this action message and I get a Planning Prod. Order for this item.

Now, our man in charge of the factory determines he cannot produce this item until next week, so he changes its Due Date and replans it. The order is now expected to be finished next week (lets suppose its running time is just 1 hour in order to simplify this example).

Now, when I run the planning sheet again, I get a new order to fulfill my Safety Stock, since the initial one has been re-planned for next week.

My question is: Is there any parameter I can use in this item to check if in a future period [this is the date formula parameter i am looking for] is going to be produced so I do not get a new production order?

I have checked dampened period parameter, but it seems not to work (I guess it works only backwards)

Thank you

Global Search lost focus issue (BUG) [nav 2017 web]

$
0
0
We have a new issue, since the update of Opera (v49).

The click on magnifier doesnt focus and we cant type any text in it... impossible to search something.
This issue was existing on Google chrome; firefox was poor in JS performance we plan to choose Opera browser (fast an reliable).

Does anyone has same bug, does anyone has a solution /work out to fix this issue .
zpiv3bvabsal.png
Firefox is ok, internet explorer is ok Edge is ok.
But we are now in production environment so we dont want to change the browser again..
Thank you for help

RDLC Report: Use Page No. in Body?

$
0
0
Hi everyone,

one of our customers wishes to have a shortened header when printing Invoices with multiple pages. The first page has the "normal" big header, with address and everything, but but from the second page onward the header should only show the company logo, Invoice No. and page no.

My first thought was to make both headers in the body and tell the report per page no. which header to show/hide. But I just can't seem to get the info, which page the Report is currently creating into the body! Even using a variable in Visual Studio, trying to fill it in the actual header part of the report and then calling upon it in the body doesn't seem to work, or maybe I'm just doing it completely wrong.

Anyone got an idea?

Ciao,

Lily
Viewing all 10032 articles
Browse latest View live


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