Error while submitting decimal values!!!!

Hanen
Member Posts: 281
HI,
I'm passing a decimal value as parameter to a wcf service but I got an error message :
this message for c/al programmers:
this data type is not supported by c/side.you can access data from any of the folloing data types:vT_void,VI_I2,VT_I4,VT_R4,VT_R8,VT_CY,VT_DATE,VT_BSTR and VT_BOOL
I think it's because of the separator
I have to change the "." to ",", someone can help please!!!!!!!!
Thanks
I'm passing a decimal value as parameter to a wcf service but I got an error message :
this message for c/al programmers:
this data type is not supported by c/side.you can access data from any of the folloing data types:vT_void,VI_I2,VT_I4,VT_R4,VT_R8,VT_CY,VT_DATE,VT_BSTR and VT_BOOL
I think it's because of the separator

Thanks
Regards
Hanen TALBI
Hanen TALBI
0
Comments
-
The separator is not relevant. The argument on the automation object that you're calling (or a event from it) is not one of the simple automation types that NAV understands. The error gives you the list; I would guess your argument is a byte array type as you seem to be treating it as a string. As you should know a real string ie a VT_BSTR is a unicode string. But it you want to pass a number you should be using a type that maps to a float or double.Robert de Bath
TVision Technology Ltd0 -
Hi,
Thanks for your answer, I want to pass a decimal field to an external application using "," as separatorthat's the problem
Do you know how can I deal with that???? :oops:
Thanks a lotRegards
Hanen TALBI0 -
If you're passing a decimal to an automation it's stored as a number it can't have a separator.
If you're passing a string to an automation the automation has to use a VT_BSTR type.
In Navision to convert a decimal to a string with commas you just use FORMAT(Number) or give a format string if you need more control.
The separator does not have anything to do with your error message.Robert de Bath
TVision Technology Ltd0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions