Hi All...
i created application to insert data to table
using C# web services
i can insert to other table such as : GL Account, Vendor, Customer, etc...
these all no problem...
but when i import to Currency Exchange Rate (Table 330)
it wont get in ... the problem is from my txt file, cant be inserted to
Starting Date field
the error message is
09/05/2012 5:20:23 PM Testing Company ==> *** The Currency Exchange Rate already exists. Identification fields and values: Currency Code='USD',Starting Date=''
it shows Starting date is blank, whereas i tried using hardcode "01/01/2012" also cannot
please help
thanks
Comments
It is obvious from the error message that the date is not in the required field when you try to install the record. For more help, you will have to show more of your code and data.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
This is my C# code
from this code it can capture 01/01/2013, but i cant insert to database
is it because currency exchange rate table has 2 primary keys???
I wanted to test this and the first thing that I had to do was to change the Editable property for field Currency Code in page 483 to TRUE.
Then I tried
and only after adding the line
the date was inserted into the data.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
hi thegunzo !
thanks ! it works
1 more question
how to filter starting date with string
because before do the process, i do search...
if find then modify... if not then add
but everything will goes to add process
Hi guys,
Any of you found out why this line is actually needed and where from the Starting_DateSpecified is coming (as it is typically no field or function on te Exchange Rate table)?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
says this
"Specified" fields are only generated on optional parameters that are structs. (int, datetime, decimal etc). All such variables will have additional variable generated with the name <variableName>Specified.
This is a way of knowing if a parameter is really passed between the client and the server.
To elaborate, an optional integer, if not passed, would still have the dafault value of 0. How do you differentiate between this and the one that was actually passed with a value 0 ? The "specified" field lets you know if the optional integer is passed or not. If the "specified" field is false, the value is not passed across. If it true, the integer is passed.
http://ssdynamics.co.in
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community