Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all 2425 articles
Browse latest View live

Migrating existing configuration to new server

$
0
0
Hi all,
I'm responsible for migrating an old 5.0 database from an old Windows 2003 server to a more current Windows 2012R2 server. I will not be upgrading the database, just moving everything that is existing from one server to the other. Is there a checklist around somewhere that I can use to guide this migration?

cheers,

Table Trigger to use after OnModify?

$
0
0
Hi,

I'm pretty new to the NAV Development so excuse me if I'm asking too obvious questions :smile:

I need to call .NET methods that are directly querying the NAV Data Base and doing external tax calculation for the Sales Order. The call need to be done on every modification to the Order or modification to the Order Sales Lines details.
At first I called the method from the OnModify trigger of the Sales Header and Sales Line Tables but unfortunately I have found out that the changes are still not stored in the Data Base so I can't do the calculations on the changed data.
So my question is: Is there any trigger of event that is triggered after OnModify when the data is already stored in the Data Base?

Thanks

Preview Changes made to records

$
0
0
Hi,
I am still relatively new to the Navision World. I want to modify a certain set of records in c/al. I managed to write the code, but I am still a little unsure, if my code REALY does the things I would like to. Is there a way to see my changes, before I commit them to the database?
I am sadly still working on NAV2009R2.

RecRef in Report

$
0
0
Hi,
I use RecRef type to show date on report (navision 2016). The code is:

OnPreReport()
RecRefe.OPEN(50000);
FieldRef:=RecRefe.FIELD(4);
IF RecRefe.FINDFIRST THEN
REPEAT
EmployeeNo:=FieldRef.VALUE;
UNTIL RecRefeR.NEXT=0;

When I show EmployeeNo on report I only get the last value, but I need list of all employees. How to solve this?

Best regards

SID for a user who has no Navision Login

$
0
0
Hi everybody,

for automatically creating user logins in several NAV 2009 CC databases I need the SID for the user, which I get from table 2000000050 "Windows Object". But this takes one or two minutes per user due to our large and possibly faulty Active Directory. Is there a faster way to get the SID for a user that has no login in Navision?
I don't mind connecting to Active Directory Services or whatever is needed, as I'm already reading the AD Groups of the user.

Thank you!

How to change remaining quantity on component line on Finished Production Order?

$
0
0
Dear All,

I have finished production order (with remaining quantity > 0 ). Now, I want to change Item Unit of Measure but system gives error that "You cannot modify Item unit of measure xx for Item xxxx because non-zero remaining quantity with xx exists in Prod. Order Component".

I understand that it is not possible to reverse status of Finished Production Order. Is there any way to modify remaining quantity to zero on component line in Finished Production order ? Is it safe to change same from back-end table ?

Bank payment Voucher Error

$
0
0
Hello Every One,

I have created one new bank account and also linked it with chart of Account. But when I am making payment entry in bank payment voucher I am facing this error
"Account No. 003 is not defined as bank account for the Voucher Sub Type Bank Payment Book and Document No.BP000264."

Navision Dynamic 2013-

Please consultant.

Regards,
Rax

How to do Nav 2009 R2 - Mobile Integration

$
0
0
Hi, I am trying to Integrate Mobile app with Nav 2009 R2 using webservices. I tried the below link
https://msdn.microsoft.com/en-us/library/dd297065.aspx.
But I could not find the Microsoft Dynamics Mobile - Server Components download. Can anyone let me know where this download available? or any other methods to integrate Nav 2009 R2 with Mobile Application.

Thanks in advance.



Retail item Card Field Restriction

$
0
0
Dear Experts.


We are using NAV 5 SP1 with LS Retail.
There is a new field created Arabic Desc (50020) in table 27 (Item Table) . We have 2 users A and B and both doing the item creations on the form 10000807 (Retail Item Card).

User A has access to all fields and can modify, delete, create in Item card.

Whereas, user B has similar rights but he should be restricted to modify anything only on the field Arabic Desc(50020) as mentioned earlier.

Only user A has rights to modify on the field Arabic Desc (50020).

I've a very basic knowledge of codes

If i am not wrong ,i believe it can be catered by using boolean field in the User Setup Table (91).

But not sure where and what to code.

Please suggest if there is a better way to approach.

Please let me for any further clarification.

Regards,
Fahad

Sales Return Order Issue

$
0
0
Hello Every One,

One of our customer has returned the material sold to them 2 months ago. We are receiving it back in current month, so for the same I Post one Sales return order in Nav-2013. after which I am facing following errors. Please Advise

1. As per sure steps It should hit RG 23 A I & RG 23 A II but in my case there is no entry posted by system in these tables instead sales return is posted in DSA at the same time system is also posting excise duty receivable account with the values of Excise in the Invoice. The entries relating to VAT and Customers are posted correctly.
2. While posting sales return order and sales credit memo we had selected sales return type as blank

As the entry is getting posted in DSA we ll not be able to get the credit of Excise due to this wrong posting.

Kindly Advise what is the reason for this type of posting. Is there any setup issue or manual error.

NASSQL.exe Pegging CPU

$
0
0
We are running a VT100 for CK71 scanners. But few times per week, out scanners start having massive connection issues.

When this happens:

Event viewer is flooded with:
- "The terminal with ID xxx did not receive a reply from the CSS within 69000 milliseconds."
- "There was a problem replying to internal key xxx. A reply could not be received for terminal xxx. Terminal will be resetted. Thread: xxx"

Also:
- The nassql.exe process is also pegging out the CPU. Well, just the one thread of the cpu it uses.
- You cannot stop/restart the NAS service. You have to kill the nassql.exe process
- Sometimes this fixes it right away, other times the issue comes back in a few minutes.

We are running:
- NAV 2009 (NAV 6.0) on Server 2008 R2 (64bit) with SQL 2008 R2
- NAS is on a different Windows server 2008 R2 (64bit)

I am not sure if the CSS errors are the cause of the nassql.exe process wigging out, or if the nassql.exe wigging out is causing the CSS errors.

Does anyone have an opinion of what the issue might be?

microsoft.dynamics.nav.openxml.spreadsheet.workbookreader.open

$
0
0
I'm trying to import and xlsx file in Import. estruct. fabric. (50011) and when I click in the AssistEdit to open my file xlsx I select and then return me this error.

microsoft.dynamics.nav.openxml.spreadsheet.workbookreader.open
The sheet is damage. 'The attribute 'horizontalDpi' has invalid value '0'. The MinInclusive constraid failed. The value must be greater tan or equeal to 1...




I put the debugger and return me the error in the BufferedReader.open

If i copy the data from the original xlsx to a new xlsx I dont have the error.

Thanks.

vendor summary aging

$
0
0
Hello,
I have a problem in vendor summary aging report. It is not filtering on the dimensions.
I have tried to add this code:

Vendor - OnAfterGetRecord()
PrintLine := FALSE;
LineTotalCustBalance := 0;
Vendor.COPYFILTER("Currency Filter",DtldVendLedgEntry."Currency Code");
//MOD01 start
Vendor.COPYFILTER("Global Dimension 1 Filter",DtldVendLedgEntry.''Initial Entry Global Dim. 1");
Vendor.COPYFILTER("Global Dimension 2 Filter",DtldVendLedgEntry.''Initial Entry Global Dim. 2");

//MOD01 ENd
FOR i := 1 TO 5 DO BEGIN
...

It is still not filtering on the proper values.

Please any advise?
Thanks

Getting an error like while restoring NAV 2009 fbk Backup

$
0
0
Hi All ,

This is my first question . I am getting below error while restoring Nav 2009 backup (.fbk) .
"
Microsoft Dynamics NAV Classic
The Table Specific Infocode table contains a value in a Code field that cannot be used with Microsoft Dynamics NAV Classic:Field:
Primary Key Value: 99001462€LL01ð19€FRGFTREDEE " .
Database using is SQL 2014 .
Can anyone help me on this please ?

Create a RapidStart file with two or more packages within

$
0
0
Hello,
Does anyone know how to create a RapidStart file with several packages within? I've seen an example of such a file but I am not able to replicate it.

The file when applied, it creates several packages with several tables on each.

ISEMPTY Return two different results

$
0
0
Hi, I'm experiencing a strange behaivour.

In one case the ReservEntryExist returns TRUE (NOT FALSE) and another FALSE (NOT TRUE). So I analized what's in NewReservEntry record with the debugger and magically, in TRUE and FALSE cases NewReservEntry has the same value.

How is possible to return two different values with the same values in the Record?


IF ReservEntryExist THEN
TESTFIELD("Job No.",'');



ReservEntryExist() : Boolean
ReservePurchLine.FilterReservFor(NewReservEntry,Rec);
NewReservEntry.SETRANGE("Reservation Status",NewReservEntry."Reservation Status"::Reservation,
NewReservEntry."Reservation Status"::Tracking);

EXIT(NOT NewReservEntry.ISEMPTY);

Can you help on 64 bit encoding please?

$
0
0
Hi,

I am working on some integration with the irish revenue service which makes use of digital certificates. I have to create a certificate by opening a p12 file. In order to open the P12 file, the following steps are followed to create a password. It is step 3 that is causing the problem: -

To calculate the hashed password, follow these steps:
1. First get the bytes of the original password, assuming a "Latin-1" encoding. For the password "Baltimore1," these bytes are: 66 97 108 116 105 109 111 114 101 49 44 (i.e. the value of "B" is 66, "a" is 97, etc).

2. Then get the MD5 hash of these bytes. MD5 is a standard, public algorithm. Once again, for the password "Baltimore1," these bytes work out as: 223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94

>>>> This is all good :), I get the Bytes in 2 above, the MD5 hashing works out fine, the next part causes me problems <<<<<<

3. Finally, create the new password by Base64-encoding the bytes from the previous step. For example, the password, "Baltimore1," this is “3+6hGD55J49zpzOj9efiXg==”.
I am getting 4YytGD55J8Rz9TOc5IeDXg== instead


The code follows, it has not been fully cleaned up yet - apologies.

Many thanks & kind regards
Roddy
LOCAL GetCertificatePassword(PassWordIn : Text[30]) HashedPassWordOut : Text[30]
TempBlob.INIT;
TempBlob.CALCFIELDS(Blob);
TempBlob.Blob.CREATEOUTSTREAM(OStream);

BigTextVar.ADDTEXT(PassWordIn);
BigTextVar.WRITE(OStream);
TempBlob.INSERT;

TempBlob.CALCFIELDS(Blob);
TempBlob.Blob.CREATEINSTREAM(IStream);


MD5 := MD5.Create;
MyText:= BitCon.ToString(MD5.ComputeHash(IStream));
TempBlob.MODIFY;

TempBlob.CALCFIELDS(Blob);


//I get the answer back in My Text correct values as per step 2 above but in hexadecimal form &quot;AA-FE-23&quot; etc.
//Loop below converts back to dec from hex.
ICounter := 0;
WHILE MyText &lt;&gt; '' DO BEGIN
  IPosition := STRPOS(MyText,'-');
  ICounter += 1;

  IF IPosition = 0 THEN BEGIN
    MyText2[ICounter] := HexToInt(MyText);
    MyText := '';
  END ELSE BEGIN
    MyText2[ICounter] := HexToInt(COPYSTR(MyText,1,IPosition-1));
    MyText := COPYSTR(MyText,IPosition+1);
  END;
END;

CLEAR(TempBlob.Blob);
TempBlob.MODIFY;

TempBlob.CALCFIELDS(Blob);
TempBlob.Blob.CREATEOUTSTREAM(OStream);
//OStream.WRITE(MyText2);
OStream.WRITETEXT(MyText2);
TempBlob.MODIFY;

TempBlob.CALCFIELDS(Blob);
TempBlob.Blob.CREATEINSTREAM(IStream);
HashedPassWordOut := ToBase64String(IStream);

EXIT(HashedPassWordOut);


//Function to convert base 16 to 10
LOCAL HexToInt(HexText : Text[50]) Result : Integer
HexDigits := '0123456789ABCDEF';

Result := 0;

WHILE HexText &lt;&gt; '' DO BEGIN
  Result := Result * 16;
  intVal := STRPOS(HexDigits,COPYSTR(HexText,1,1)) - 1;
  Result := Result + intVal;
  HexText := COPYSTR(HexText,2);
END;
EXIT(Result);

//Function to perform 64 bit encoding, this is just the function from TempBlob
ToBase64String(IStream : InStream) : Text
MemoryStream := MemoryStream.MemoryStream;
COPYSTREAM(MemoryStream,IStream);
Base64String := Convert.ToBase64String(MemoryStream.ToArray);
MemoryStream.Close;
EXIT(Base64String);



Nav 2009 R2 compatible with outlook 2016

$
0
0
Hello,

I did an upgrade from outlook 2007 to outlook 2016 and I have the following problem.
When I try to sent automatically a mail in navision I get the next message.

With outlook 2007 I never had a problem. I use codeunit 397.

"Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client."

Can you help me to resolve the problem?

Thx,

Alexander

Dynamics NAV does not connect to SMTP Server

$
0
0
Good Afternoon,

I have a Dynamics NAV 2013 server that is set up to send emails (statements, etc) through our windows 2008 smtp server.
Using basic authentication with a username and password.

We had the smtp server crash this weekend, so i moved it to another server.

I've adjusted settings in NAV, to the new smtp server, but it will not work.

I can telnet to the server on port 25, and send an email successfully that way.

I'm not sure what else to try / look at at this point. The settings on the new smtp server are the same as the old one.

any suggestions would be helpful!

Error in job queue = The SMTP mail system returned the following error: Failure sending mail.Unable to connect to the remote server.

Thanks!






India - nav 5.0 dual tax setup - GST help

$
0
0
So far due to similarity in Taxation in singapore vs india, We are using nav 5.0 singapore copy in india. We have developer license and we have to implement the GST taxation in nav 5 now, can you advise how to do it? I am not seeing any GST patch for nav 5.0 version. We are not using dual tax before i.e Excise duty tax and service tax , can i reuse this unused tax to GST implementation i.e CGST,SGST and convert existing VAT to IGST. Please advise..

Viewing all 2425 articles
Browse latest View live