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

How to correct journal entries made into the wrong period

$
0
0
So, just ran Adjust cost - item entries report, and due to the fact that we didn't have Inventory Periods defined (or closed), we had over 1000 entries that were made in periods that should've been closed.

Now, I need to redo those entries.

I tried creating a Gen Journal with reversing entries, and correct entries in the current period, but I get an error because the dates on the original entry and the other entry have different dates.

Any idea what I should do? How can I correct this?

Thanks a lot,

Val

Has anyone automated Calc Whse Adjustment?

$
0
0
Just wondering if anyone has ever automated Calc Whse Adjustment, such as building it into the Register action on the Whse Item/Phys Invy journal. It's a step that people always forget to do, and folks never understand why it doesn't just happen automatically.

I know we can schedule it to run in the job queue, but in emergencies people forget about the second step, and then can't find their inventory.

Thank you in advance for any ideas,

Liz

NAV 2016 Data Upgrade - Next Counting Period

$
0
0
Hi Everyone,

I have the following problem:

During the NAV 2016 Data Upgrade (from 2013R2), when executing the Data Upgrade function it fails on the following code from the Upgrage Toolkit:

IF NOT (EVALUATE(NextCountingStartDate,COPYSTR(NextCountingPeriod,1,DividerPosition - 1)) AND
EVALUATE(NextCountingEndDate,COPYSTR(NextCountingPeriod,DividerPosition + 2)))
THEN BEGIN
NextCountingStartDate := 0D;
NextCountingEndDate := 0D;
END;

Therefore the values in the new "Next Counting Start Date" and "Next Counting End Date" will stay empty.

NextCountingPeriod = '01/01/14..31/03/14'
DividerPosition = 9

What I have tried so far:

1.
Running without the IF EVALUATE() THEN; statment I could retrive the error message in powershell:

SessionId : 16
CodeunitId : 104025
FunctionName : UpdateItemNextCountingPeriod
CompanyName : Test
StartTime : 03/03/2016 12:08:54
Duration :
State : FailedPendingResume
Error : Function 'UpdateItemNextCountingPeriod' in the upgrade codeunit '104025' in the context of the company 'Test' has failed because of the
following error: 'The value "31/03/14" can't be evaluated into type Date.'.

I have my regional settings set to UK format and the service tier is on the same machine.

2.
I also tried to set the service time settings to "Server Time Zone" but it did not help.
<add key="ServicesDefaultTimeZone" value="UTC" />

3.
I created a simple codeunit to try to replicate the issue

OnRun()
DividerTxt := '..';
NextCountingPeriod := '01/01/14..31/03/14';

DividerPosition := STRPOS(NextCountingPeriod,DividerTxt);
IF DividerPosition = 0 THEN
EXIT;

EVALUATE(NextCountingStartDate,COPYSTR(NextCountingPeriod,1,DividerPosition - 1));
EVALUATE(NextCountingEndDate,COPYSTR(NextCountingPeriod,DividerPosition + 2));

This one runs successfully on the same database and service tier, but doesnt work when running the Data Upgrade.
Anyone had the same experience?

Any advice much appreciated.

Marcell

First NAV 2013 R2 to NAV 2016 upgrade failing : The UPG Item does not exist

$
0
0
Hi,

I am having issues with a NAV 2013 R2 to NAV 2016 upgrade. It is failing with: -

s9zw1ap5moa2.png

It seems that the UPG Item table is empty and UPGItem.Get below is causing the crash: -

iu93xgtpdbho.png

Has anyone come across this before?

Regards
Roddy








Regards
Roddy

NAV 2013 R2- Search for Page or Report

$
0
0
Hi All,

I am using NAV 2013 R2 web client, It's working fine.

I just want to hide search option from web client.

I have changed the Web.config File to hide search option,
changed parameter to false.

<add key="ShowPageSearch" value="false"/>

then restarted NAV service.

But still search option icon showing in the web client.


Please help me on this.

Create all customers as employees

Sub Production or not?

$
0
0
Hi All (general manufacturing discussion)

I would like to raise a discussion on when to split up the production of a product up into sub-productions.

Background: I am in the middle of an implementation at a furniture producing company which is overall a "to-order" producer and the one example is the production of an office table which consists of more than 50 parts. But rather than creating 1 BOM with all 50 components we are debating whether so split it up into sub-productions. For instance, some are arguing that the 4 legs should be a separate item and produced separately.

So I have tried to come up with some general rules which might help guide the decision and I would love for you guys to comment. (If any of you have can refer to a resource online which deals with this question, let me know)

So here are my thoughts so far:
1) If a sub-component is used in many different end products you should create it as a separate item as you can then bulk produce this item on a separate production order.
2) It is easier to communicate to a worker that he has to produce 10 legs if those 10 legs have their own item number/production order.
3) If your customers continuously order small quantities the of end product rather than 1 big order once then this speaks for sub production as you can bulk produce.
4) Sub production allows you to get some of the work done while you are waiting for components arriving from your supplier needed for other parts of the production. Of course you could start producing in the case where the table has 1 big BOM but the worker would have to remember why he stopped the production.

Any comments and advantages/disadvantages are welcomed and appreciated.

Cheers.

Thomas.


SOLVED: Using File Silent File Upload with Webservice

$
0
0
Dear community,

we are working on a Load Test Solution for our System (NAV 2015).

One of our Scenarios requires File Upload.
As we figured out already File uploading is not supported by Loadt Test Suite, so we come around with the following Workaround:

We created a Webservice which will invoke the File Upload.
The Websersice Function calls a SetParameter function in the Report which is doing the Excel File Import and sets all necessary Parameters including SilentFileUpload.

If i call the Webservice Function directly from Client it works as expected but the same call via Webservice stops with the follwoing Error in Visual Studio:
Additional information:
Microsoft Dynamics NAV Business Web Services attempted to issue a client callback to create a DotNet object:
System.IO.File (CodeUnit 419 File Management).

Client callbacks are not supported on Microsoft Dynamics NAV Business Web Services.

I identified the ClientFileHelpder Variable in CU 419 as the Error source as its set to run on Client.

wi95wj5ulfrs.png


I could copy the Function and change the Setting but im quite Sure that this will not help as it fill try to upload the temporary file vom server to NAV later on again where i will be having the same issue.


Where you facing the same issue already and having a solution for a scenario like this or some ideas how to solve this issue?

Thanks for your input,

Alex

For those who are on TechDays - Enjoy it :smile:




NAV2015 Email Quote, Sales order. LDAP server is unavailable

$
0
0
When connected to office Domain, I could email quote and SO.
but when at Home (without connecting to Domain), I received error LDAP server is unavailable.
Full error as follow

A call to Microsoft.Dynamics.NAV.SMTP.MailHelpers.TryGetEmailAddressFrom Active Directory failed with this message: The LDAP server is unavailable.

NAV 2015 PU6 was installed recently.

Has anyone faced this issue?

Is there is any tool to convert txt file to FOB File?

$
0
0
Hi all,

Is there is any tool to covert text files to FOB files ?
I tried searching in Mibuso forum.. i dont get what i'm looking for?
Can any body help me! :-k

NAV upgrade 2009 - 2015/2016

$
0
0
Hello,

We are planning to upgrade NAV. Currently we are on NAV 2009 GB classic client (We are only using classic client and not the RTC).
Now are in the need of upgrading to either 2015 or 2016 (decision still has to be made)

We have heavily customised NAV currently although some of the customised stuff is not been used.

We do understand that there is a massive change between 2009 and 2015 versions especially for us as we are only on classic client.

There is a discussion going on our end about having upgrade NAV or re-implement NAV. As we do not think we want everything to take with us to new NAV so new implementation is also making sense - then we can do the development of functionalities we need in the new version of NAV.

We are thinking about new implementation because at the minute we have a mess of customisations and if we upgrade and take with us all of that then new version will be a mess as well.

What would be the best practice for the above scenario? I presume NAV allows only data upgrade right without upgrading all the objects right?

Thanks,

Imran

xml - HttpRequest

$
0
0
Hi all,
Iam tring to get responce from xmlrequiest with
HttpWebRequest (System.Net.HttpWebRequest.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')


I created xml doc with XML DOM Management and If i send my test xml with soap ui, i will get response,but if i use nav, i will get
500 - Internal server error. It is some posibility to get some bigger desc and not just number of error?

here is wsdl http://interact.teccom-eu.net/openmessaging.asmx?WSDL and test xml generated from nav.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.teccom-eu.net/wsdl">
<SOAP-ENV:Body><ns1:Ping/></SOAP-ENV:Body>
</SOAP-ENV:Envelope>


I think that error must be in requestBuild - here is my -->

HttpWebRequest := HttpWebRequest.Create(ServiceUrl);
HttpWebRequest.Method := 'POST';
HttpWebRequest.KeepAlive := TRUE;
HttpWebRequest.AllowAutoRedirect := TRUE;
HttpWebRequest.UseDefaultCredentials := TRUE;
HttpWebRequest.ContentType := ContentTypeTxt; ///( i set - text/xml;charset=UTF-8)
HttpWebRequest.Host:= 'interact.teccom-eu.net';
HttpWebRequest.Accept:='gzip,deflate';

and raw in soap ui looks like this:

POST http://interact.teccom-eu.net/OpenMessaging/openmessaging.asmx HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://www.teccom-eu.net/wsdl/Ping"
Content-Length: 226
Host: interact.teccom-eu.net
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


I dont know, how test, if NAV send exactly this. Have I set Content- Lenght? IF yes, how can I calc number of chars in bite?

Has anybody got some idea where could be problem?

Dynamics NAV 2015 Update Sales Line by Web service : Line already exists

$
0
0
Hi guys,
I'm building some data synchronization using Dynamics NAV web service. I managed to create Sales Header and Sales Lines, but When I try to update a sales Line I got this message :
The Sales Lines Exists, Identifiation fields and values: Document Type = 'Order', Document No.='P-20-B',Line No.=10 000

from what i understand it seems to be trying to recreate the line instead of doing an update. I'm stuck can you help me?

Here's my test code:
Private Sub UpdateSalesLine()
        Dim _SalesOrder As New wsNAV_SalesHeaderAndLines.wsNAV_SalesHeaderAndLines_Service ' this is the Sales Header Service
        Dim salesOrder As New wsNAV_SalesHeaderAndLines.wsNAV_SalesHeaderAndLines  ' this is the Sales Header card
        _SalesOrder.UseDefaultCredentials = False
        _SalesOrder.Credentials = New System.Net.NetworkCredential("username", "password")

        Try
            salesOrder = _SalesOrder.Read("1", "P-20-B") ' get the Sales Header Card

            Dim salesLines(0) As wsNAV_SalesHeaderAndLines.WS_SalesLine ' Create an empty array

            If Not salesOrder.WS_SalesLine Is Nothing Then
                salesLines = salesOrder.WS_SalesLine
            End If


            If Not _SalesOrder.IsUpdated(salesOrder.Key) Then ' check if object is still the same


                Dim idx As Integer = 0
                Dim blnLineFound As Boolean = False
                While idx < salesLines.Length
                    Dim oLine As wsNAV_SalesHeaderAndLines.WS_SalesLine
                    oLine = DirectCast(salesLines(idx), wsNAV_SalesHeaderAndLines.WS_SalesLine)
                    If oLine.Line_No = 10000 Then
                        blnLineFound = True
                        Exit While
                    End If
                    idx = idx + 1
                End While

                If blnLineFound Then

                    With DirectCast(salesLines(idx), wsNAV_SalesHeaderAndLines.WS_SalesLine) ' set values
                        .Bin_Code = Nothing
                        .Description = "1 - W 24 X 32 x 17 *2"
                        .Description_2 = Nothing

                        .Document_No = "P-20-B"
                        '.Document_Type = wsNAV_SalesHeaderAndLines.Document_Type_1.Order
                        '.Document_TypeSpecified = True
                        .Item_Category_Code = "PF"
                        .Key = Nothing
                        '.Line_No = 10000
                        '.Line_NoSpecified = True

                        .Location_Code = "COATICOOK"
                        .Type = wsNAV_SalesHeaderAndLines.Type.Item
                        .TypeSpecified = True

                        .No = "GCAISSON"
                        .Product_Group_Code = "CABINETS"
                        .Quantity = 1
                        .QuantitySpecified = True


                        .Unit_Price = 10000
                        .Unit_PriceSpecified = True
                        .Variant_Code = Nothing

                    End With
                End If

                _SalesOrder.Update(salesOrder) ' update Sales Header Card

            End If
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub

Custom DLL fire all methods in sequence as soon as it initiate

$
0
0
Hey guys,
We try to make a custom dll with multiple method in it. But as soon as the variable is initiated it fires all the code Inside the DLL then it goes for the NAV code... It's kind of useless this way... Do you know what we did wrong?

Encoding type

$
0
0
I am trying to figure out how I can create a file using UTF8 file type.

I see the following, but I am not sure how to add the TextEncoding.value

[Ok := ] File.CREATE(Name[,TextEncoding.value])



NAV 2013 - Modify Excel Buffer to apply border with OpenXML

$
0
0
Hello,

I try to use Excel Buffer to create an Excel file with format modifications to apply. More specially, to have cells with borders. After many tries and searches, i have modified the function GetCellDecorator and add this lines at the end :

Border := XlWrkShtWriter.DefaultCellDecorator.Border.CloneNode(TRUE);

BorderColor := BorderColor.Color;
BorderColor.Auto:=BooValue.FromBoolean(TRUE);

Border.LeftBorder.Style:=BorderStyle.Thin;
Border.LeftBorder.Color:=BorderColor;

Decorator.Border:=Border;

The variables created are :

Border DocumentFormat.OpenXml.Spreadsheet.Border
BorderColor DocumentFormat.OpenXml.Spreadsheet.Color
BorderStyle DocumentFormat.OpenXml.Spreadsheet.BorderStyleValues
BooValue DocumentFormat.OpenXml.BooleanValue

But, i have this error raising : DocumentFormat.OpenXML.Spreadsheet.LeftBorder.set_style failed with this message. The type of one or more arguments does not match the method's parameter type.

Does someone know what i do wrong?

Thanks

Job journal totals

$
0
0
I have this code in the onopenpage of job journal page 201 which works fine to update changes in job journal.
But I also want it updated live, while the user is doing the changes. I've tried placing this code in onaftergetrecord but it just sets it to 0 and makes it worse. How do I make this work?


Totalcost := 0;
REPEAT
Totalcost := JobJournalLine."Total Cost" + Totalcost;
UNTIL JobJournalLine.NEXT = 0;

NAV 2013 Report Problem same picture on 2 print

$
0
0
Hi everybody,
I have a problem with pictures in my report RTC. On each print of the sales invoice, I display a picture in header. This picture depends of the invoice.
If i print sales invoice one by one, no problem, the good picture appears.
But if i try to print 2 sales invoice (select 2 lines in page "Posted Sales Invoices" and click Print button ), it's the same picture on my 2 sales invoice.

Do you have an idea please ?

Thanks

Error message: Request failed.. Control Addin

$
0
0

I need to know if anyone has had the following problem, I have developed an addin that want to use a dll AForge.Video.dll and AForge.Video.DirectShow.dll, but when using these dll and load the addin on a page It shows me the following error:

ni3urbs5gpbq.png


. "An Error occurred When initializing the Control add-in Error message: Request failed .."

If I remove any code that references these dll addin works correctly.

Any idea what's going on?

2009 R2 Web Services Recommendation for better performance B2C

$
0
0
Hi folks,

I am implementing a B2C scenario and I'm facing severe performance problems, regarding load over the NAV Web Services.

Is there any documentation with recommendations for this scenarios? Or recommendations based on your experiences? A see a lot of possibilities in the customsettings.config file, but don't have 100% sure if it is improving performance, because the performance problems always return.

Thanks in advance.
Viewing all 10032 articles
Browse latest View live