Lỗi input string was not in a correct format dongnaiinfo năm 2024

Assume that you run a Web service function by using a decimal parameter in Microsoft Dynamics NAV 2009. When the decimal parameter is specified, the return value is repeated. When the parameter is missing, you receive the following incorrect error message:

"Input string was not in a correct format". When the parameter is Int, the error is as expected "Integer must not be blank. Integer is missing or invalid in the expression".

This problem occurs in the following products:

  • Microsoft Dynamics NAV 2009 R2
  • Microsoft Dynamics NAV 2009 Service Pack 1

Resolution

Hotfix information

A supported hotfix is available from Microsoft. There is a "Hotfix download available" section at the top of this Knowledge Base article. If you are encountering an issue downloading, installing this hotfix, or have other technical support questions, contact your partner or, if enrolled in a support plan directly with Microsoft, you can contact technical support for Microsoft Dynamics and create a new support request. To do this, visit the following Microsoft website:

//mbs.microsoft.com/support/newstart.aspx You can also contact technical support for Microsoft Dynamics by phone using these links for country specific phone numbers. To do this, visit one of the following Microsoft websites:

Partners

//mbs.microsoft.com/partnersource/support/Customers

How to obtain the Microsoft Dynamics NAV hotfix or update files

After you request a Microsoft Dynamics NAV hotfix, a hyperlink will be sent to you in an e-mail.

The e-mail will contain a hyperlink and a password. You can use the hyperlink to download the Microsoft Dynamics NAV hotfix or the update files. When you click the hyperlink, the File Download – Security Warning dialog box opens. Then, you are prompted to run, to save, or to cancel the download.

If you click Run, the files start the download and the extraction process. You must specify a folder for the new files, and then provide the password.

If you click Save, you must specify a path for saving the compressed file. When you open the file that you saved, you are prompted to specify a path for the files. Then, you must provide the password provided in the e-mail.

If you click Cancel, the download process stops.

How to install a Microsoft Dynamics NAV hotfix or an update file

The Microsoft Dynamics NAV platform hotfixes and updates are made available as single files. To install a Microsoft Dynamics NAV hotfix or an update, you must replace the existing Microsoft Dynamics NAV installation files with the hotfix or the update files. To do this, follow these steps.

Step 1: Replace the files in the Microsoft Dynamics NAV Classic Client installation

In the Microsoft Dynamics NAV Classic Client installation, replace the following files by using the hotfix or the update file.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

- Lỗi này tương tự lỗi “Old format or invalid type library. [Exception from HRESULT: 0x80028018 [TYPE_E_INVDATAREAD]]” là do lỗi định dạng ngày tháng của hệ thống trong Hệ điều hành Window. Để khắc phục lỗi này thực hiện:

+ Bước 1: Mở cửa sổ control Panel → chọn “Clock, Language,and Region”

chọn “Change the date, time, or number format” → thực hiện:

• Tại mục “Format”: chọn “English [United States]”

• Tại mục “ Short date”: chọn “dd/MM/yyyy”

• Tại nút lệnh “Additional setting…”: sau khi nhấn chọn “Additional setting…”, tại cửa sổ “Customize Format” nhấn chọn “Reset” → chọn Ok

In all cases, please check the value of textBox1.Text with your Visual Studio debugger and make sure that it has purely-acceptable numerical format for

a = Int32.Parse["a189"]; //having a 
a = Int32.Parse["1-89"]; //having - but not in the beginning
a = Int32.Parse["18 9"]; //having space, but not in the beginning or end

5 range. Something like this:

Chủ Đề