Conversion from string "" to type 'Double' is not valid
We're using BPC 7.5 MS and on patch level 111.02
There's two front-end servers and one back-end. we have about 100 users but concurrency is likely in the 50 range.
We've been running extremely well for about 4 years but are now starting to run into problems.
There are about 5-6 applications but none greater than 10 million records. We optimize regularly.
However over the past two months admin processes seem to take a lot longer. Optimization now times out after about 1.25 hours and none used to take greater than 15 minutes.
Today after processing dimensions we checked the application status and we were not able to check if it was available or not. We got a pop up box saying
conversion from string "" to type 'Double' is not valid
I've processed dimensions and applications since and still this error persists.
We're attempting a reboot to see if that helps but I've never seen this before and in combination with the slower admin processing I'm wondering if there's something drastic going to happen.
Michael
Hi Michael,
for the poor performances you have to check the guides about performance on bpc if you have scheduled regurarly optimize during day and night (just verify that never factwb reach 50.000 and fac2 500.000 records) maybe you need to change some parameter on the server as MaxThreads.
For the conversion string error on admin console see please this note 1803092 - Set application set status error
Regards
Roberto
Similar Messages
-
Conversion from string "20041023 " to type 'Date' is not valid.
Hi ,
I have a table with one of the column(EmpHiredate) datatype is char(10). It has value like "20141023". I need to display this value as date format(dd/mm/yyyy) in report.
Following methods i tried in textbox expression but no luck.
=Format(Fields!EmpHireDate.Value,"dd/MM/yyyy")
=Cdate(Fields!EmpHireDate.Value)
Error:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "20041023 " to type 'Date' is not valid.
Is it possible to convert string to date using SSRS textbox expression ? Can anyone help me with the solution.
Thanks,
KittuHi Jmcmullen,
Found one more issue on the same. I have one value like "00000000" for the column(EmpHiredate)
, when i use above expression values(ex:"20141023")
are displaying in dd/MM/yyyy format in report except value like "00000000" and giving following error:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "0000/00/00" to type 'Date' is not valid.
Even i tried to pass its original value("00000000") as below but no luck.
=IIF(Fields!EmpHireDate.Value = "00000000","00000000",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
Also tried this:
=IIF(Fields!EmpHireDate.Value = "00000000","2000/10/21",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
Please Suggest.
Thanks ,
Kittu -
Conversion from type 'CalculatedFieldWrapperImpl' to type 'Integer' is not valid._
Hi,
I'm using SSRS 2008 to create a relatively simple report with a stored procedure as the dataset. The SP runs fine (no errors) but when I try to run the report I get "Conversion from type 'CalculatedFieldWrapperImpl' to type 'Integer' is not valid. "
error message. The data type is declared as int in SQL. I'm using several other int fields in the report without a problem. Anyone familiar with this error? Thanks.
Robert BocconeHmm, my research also suggests multi-value parameters may be the cause, but you say there aren't any in the report. These sings can sometimes be generated automatically though, even if you haven't knowingly created one. You could try checking the .rdl
file directly (if you're using BIDS, just go to View > Code, otherwise load the report into wordpad or similar) and searching for the term 'Parameter' to see if there is anything there. Otherwise, I'm afraid I'm getting a bit lost for ideas
too.I work to UK time. If this post, or another, answers your question, please click the 'Mark as answer' button so others with the same problem can find a solution more easily. -
Conversion from u0091Stringu0092 to type u0091Dateu0092
Hi,
I am fetching a date from DeliveryDate TextBox from Sales Order. I enter as 10/03/2007. As I need to fetch this value and store it in Production Order DueDate records through SDK Code.When I fetch this value from code,I get as 20070310. When I try to update my Production Order DueDate it gives me an Error Msgbox Conversion from string 20070310 to type Date is not valid. Here is my code to update production order.
Dim DelDt As String
DelDt = MyForm.Items.Item("12").Specific.value
Here DelDt shows 20070310
Now I have created an object of ProductionOrder and try to add Records,
sboProdOrder.DueDate = DelDt
On the above line it gives me that messagebox.
Can any one help me as to how can I convert this code in a working one or how to convert the string to date in VB.Net
Thanks a lot
MurtazaHi Murtuza,
Retrieving the value from a date-field through the value always returns the date as a string in the format yyyymmdd.
the field DueDate is a field of type DateTime.Date. to enter the date in this field, you must convert the string to a date.
The following line converts the date-string to a date.
new DateTime.Date(left(DelDt,4), mid(DelDt,5,2), right(DelDt,2))
Regards
Ad -
Deprecated conversion from string constant to 'char*'
Hi all
I am working with strings and i cant figure out why the following
warning appears at time of build.
warning: deprecated conversion from string constant to 'char*'
It appears for the line
char *myName = "Apple.txt";
Is there anyone who can help me?
Help is welcome.
Thanks in advance.Any reason why you aren't using NSString in place of char?
char *myName = "Apple.txt";
NSString *myName = @"Apple.txt"; -
Hi all,
While viewing report in SSRS 2008 i am getting an error like this
Warning 1 [rsInvalidExpressionDataType] The Value expression used in textrun ‘Textbox21.Paragraphs[0].TextRuns[0]’ returned a data type that is not valid.
sotred procedure
ALTER
Procedure [dbo].[spGetSupervisor]
@START_DATE
datetime,
@END_DATE
datetime,
@CenterID
varchar(4000),
@TITLE
varchar(100)
=
NULL
as
Select
Distinct L1_ID SupID,
L1_Name SupName
from
REF_DB.info v
inner
join dbo.fn_MVParam(@CenterID
+
P
v
.CenterID
= p.Column1
where
v.startdate
<= @END_DATE
and v.enddate
>= @START_DATE
and
(v.title
IN
(@TITLE)
or @title
is
order
by Name
Here is the expression in Report textbox
=Parameters!CenterID.Label
Please
help me
Thanks
in advance
Jyo
null)
ONHi Jyo1105,
Thanks for your question. Based on my research and experiences, the issue may be caused by you set the @CenterID
is a multiple values parameter.
If in this condition, you couldn’t use the expression of
Parameters!CenterID.Value directly, you
should use a join() function on the parameter to merge the whole values, or add a sequence number behind the expression to use a specific value, just like this:
=join(Parameters! CenterID.Value) or
=Parameters! CenterID.Value(0)
If your issue still exsits, please feel free to let me know.
Thanks,
Sharp Wang
Best Regards. Sharp Wang -
When entering the prod order in CO15 screen the systems displays this eror. "Wage type PP10 is not valid for personnal number or plant (but in master data i didn't create any routing, i dont know why the system displays the error like this )
Pls give the correct feedback
Thanks,
Maran.dDear Maran,
the Mssg ur getting should be a warning Mssg, not error Mssg
in work center costing tab, just below the activity type
there are some other fields
i think, in ur case some of those are entered with data
just check it
Regards
kumar -
Error converting a read string to type Double.
I'm trying to read data stored in a text file, a mixture of strings and data.
Using MyReader As New FileIO.TextFieldParser(source)
Do
intSampleCnt = intSampleCnt + 1
strSample(intSampleCnt) = MyReader.ReadLine ' Reads a string like "filename.txt"
dblOggLength(intSampleCnt) = CDbl(Val(MyReader.ReadLine)) ' <= Crash occurs here. Reads a number like 9.87654321
' additional code...
Loop Until intSampleCnt = 10
End Using
Big problem: *I'm* not getting the error so I can't reproduce it. OTHER users are telling me they are getting the following error:
System.InvalidCastException: Bringing the line "0.Au" to type "Double" is invalid. ---> System.FormatException: Input string had invalid
format.
No idea where "0.Au" is coming from. It's not in my file. Originally, I simply read the line and assigned it to the dblVariable (which worked for me). When users started reporting the error, I tried using:
dblVar = CDbl(MyReader.ReadLine)
When that failed, I tried:
dblVar = CDbl(Val(MyReader.ReadLine))
I must be on the wrong track. No idea why others are getting errors but not me. Any ideas? Thx.The first suggestion will set things up for you but you need to play with this
Another suggestion is to place the culture code as the first line in the file i.e. to get the current culture code then change how data is written to the file
System.Globalization.CultureInfo.CurrentCulture.Name
Then read the file i.e
Source text file
fr-BE
Somename 1 1000,56
AnotherName 9,99
Code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim FileName As String = IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "France.txt")
Dim style As NumberStyles = NumberStyles.Number Or NumberStyles.AllowDecimalPoint
Dim culture As CultureInfo = CultureInfo.CreateSpecificCulture(IO.File.ReadAllLines(FileName)(0))
Dim number As Decimal
Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(FileName)
MyReader.TextFieldType = Microsoft.VisualBasic.FileIO.FieldType.Delimited
MyReader.Delimiters = New String() {vbTab}
Dim currentRow As String()
While Not MyReader.EndOfData
Try
currentRow = MyReader.ReadFields()
If Not currentRow.Length = 1 Then
If Decimal.TryParse(currentRow(1), style, culture, number) Then
Console.WriteLine("Converted '{0}' to {1}", currentRow(1), number)
Else
Console.WriteLine("Unable to convert '{0}'", currentRow(1))
End If
End If
Catch ex As Microsoft.VisualBasic.FileIO.MalformedLineException
' You decide how to handle issues
End Try
End While
End Using
End Sub
Results
Converted '1000,56' to 1000.56
Converted '9,99' to 9.99
Detect Decimal separator
System.Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Exchg rate from new exch type X is not picked up in Treasury transactions
Dear All,
I am maintaining a new exchange rate type for treasury transactions called "x". I have made all the settings required for this. Following is the series of steps configured to pick up the exchange rate maintained for type "x" for a Interest rate instrument foreign currency transaction.
*Genaral Settings*
1) Define exchange Rate(E Rt) type 'X'.
2) Define translation ratios for curr translation
X usd inr 1:1
X inr usd 1:1
3) Define new doc type "ZF" with exch rate type "X"
4) Define Exch rate calculation indicator
02 X X
*Treasury settings*
5) Define company code additional data
Rate Calculated 02
Rate type(Debit) X
Rate type(crdit) X
6) Assignment of valuation areas to accounting codes
ER type X
7) Define account determination
Doctype "ZF" assigned to the relevant posting specs
Document Splitting
8) Classify doc types for doc splitting
ZF 0000 0001
9) Exch Rate of "X"
X 01.01.2006 usd 47.36 inr
after maintaining all these details I am trying to post an FC transactio using tcode TBB1. Everything is fine no errors nothing I can post the document also but THE EXCHANGE RATE MAINTAINED FOR TYPE X IS NOT PICKED INSTEAD RATE FOR TYPE M IS PICKED UP".
please advise if i missed something. I am not able to trace why the SAP is picking rate from type M when I made settings to pick the rate from type X.
Rgds
KomalHi
Generally for posting FI documents (which is what this T Code does) , M alone is used which is the standard SAP system functionality. For other purposes like valuation, translation, etc. we can have different exchange rate types.
Jayaram -
Convert from String data type to Character data type
Hi...,
I'm a beginner. I try to make a program. But I don't know how to convert from string to data type. I try to make a calculator with GUI window. And when somebody put "+" to one of the window, I just want to convert it to Character instead of String.
Sorry of my bad english..
Please help me....
ThanksString s = "a+b";
char theplus = s.charAt(1); -
I get a error message when I select an element in the combo box, please review my variables:
Public Sector As String
Public Index As Decimal
...and code
Select Case ComboBox1.Text
Case "Banks"
Sector = "Bank" And Index = -0.086
Case "Mobile Telecommunications"
Sector = "Mobile Telecommunications" And Index = -0.024
Case "Real Estate Investment Trusts"
Sector = "Real Estate Investment Trusts" And Index = 0.132
End SelectAnd is a boolean operator. Try it like this instead:
Select Case ComboBox1.Text
Case "Banks"
Sector = "Bank"
Index = -0.086
Case "Mobile Telecommunications"
Sector = "Mobile Telecommunications"
Index = -0.024
Case "Real Estate Investment Trusts"
Sector = "Real Estate Investment Trusts"
Index = 0.132
End Select
Still lost in code, just at a little higher level. -
The XSD type double does not exactly correspond to the ABAP type FLTP
Hi Experts,
i wanna create a proxy from a wsdl file. While creating the the proxy in SE80 i got some errors like described in the subject. I also got an error "Item is part of recursion". I have found already a post in the forum but i don't get what to do. Ok, I have to change the data type but how or where?
Do I have to update the Web Service (which I cannot do, because I don't have access to the WS) or can I do the mapping in my Client System. But where? In SE80 I haven't seen any possibility to change the Data Type and the Data Element does not exists in the ABAP Dictionary yet because the Proxy haven't been activated.
Thanks in advance for you reply.
Best regards,
Sebastian
Edited by: Sebastian Wilhelm on Dec 21, 2011 11:43 AMThe Problem with the recursion is solved on my own.
In SE80 ABAP Workbench go to Utilities > Setting > Proxy Generation
Activate Expert View in Workbench
Go to a recursive element. A Check Box Untyped mapping appears. Activate the Check Box.
The Type of the element will be created in DDIC as XSDANY.
Regards,
Sebastian
Edited by: Sebastian Wilhelm on Dec 21, 2011 1:40 PM -
Conversion from string to Date Query.
Hi,
I need a way to convert a date format which is in string to a date data type.
String is in the following format : Tue Feb 27 16:00:31 PST 2007
Have used the SimpleDateFormat class but it returns an unparseble data error.
Any thoughts????
Regards
Sam WPlease don't crosspost: http://forum.java.sun.com/thread.jspa?threadID=5142482
-
Please help me with my code (has conversion from string to int)
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Test3 extends MIDlet implements CommandListener
{ Form mForm;
Command mCommandQuit;
Command mCommandItem;
TextField input,prime1,prime2,prime3,output;
Display mDisplay;
int i,j=0,k1,k2,p,q,b;
//int [] current=new int [1000];
String mstring,a="";
String [] temp=new String [1000];
public void startApp()
{System.out.println("startApp");
mForm=new Form("RSA Encryption");
mCommandQuit=new Command("QUIT",Command.EXIT,0);
mCommandItem=new Command("ENCRYPT",Command.ITEM,0);
mForm.append("Enter text:\n");
input=new TextField(null,"",100, TextField.ANY);
mForm.append(input);
mForm.append("Enter first prime number(p):\n");
prime1=new TextField(null,"",100, TextField.ANY);
mForm.append(prime1);
mForm.append("Enter second prime number(q):\n");
prime2=new TextField(null,"",100, TextField.ANY);
mForm.append(prime2);
mForm.append("Enter d:\n");
prime3=new TextField(null,"",100, TextField.ANY);
mForm.append(prime3);
mForm.addCommand(mCommandQuit);
mForm.addCommand(mCommandItem);
mDisplay=Display.getDisplay(this);
mDisplay.setCurrent(mForm);
mForm.setCommandListener(this);
public void pauseApp()
{System.out.println("pauseApp");
public void destroyApp(boolean unconditional)
{System.out.println("destroyApp");
public void commandAction(Command c, Displayable d)
{System.out.println("commandAction");
if(c==mCommandQuit)
notifyDestroyed();
else if(c==mCommandItem)
{p = Integer.parseInt(prime1.getString());
q = Integer.parseInt(prime2.getString());
b = Integer.parseInt(prime3.getString());
//breaking up of big string into ints
mstring=input.getString();
temp[0]="";
for(i=1;i<mstring.length();i++)
{if (mstring.charAt(i) == ' ')
{j++;
temp[j]="";
else
{temp[j]=temp[j]+mstring.charAt(i);
mForm.append("\n\nThe array is:\n");
for(i=0;i<temp.length && temp!=null;i++)
{k1=Integer.parseInt(temp[i]); ***********************
k2=k1;
for(j=1;j<b;j++)
{k1=k1*k2;
k1=k1 %(p*q);
k2=k1 %(p*q);
a=a+new Character((char)k2).toString();
output=new TextField(null,a,100, TextField.ANY);
mForm.append(output);
}hi
this code basically takes an input of string like " 179 84 48 48 155 " (with spaces)
then it creates smaller strings in an array like "179","84","48","48","155" without the spaces
then it creates int values 179,84,48,48,155 and finally after some math functions it prints the corresponding letters.
the problem is that it is not printing the letter because of some exceptions-->java.lang.NumberFormatException .it comes in the line where i have put stars
could anybody please help me print the lettersthanks for all ur help guys, but me and my team member solved it on our own. here is the new code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class Test3 extends MIDlet implements CommandListener
{ Form mForm;
Command mCommandQuit;
Command mCommandItem;
TextField input,prime1,prime2,prime3,output;
Display mDisplay;
int i,j=0,l,k1,k2,p,q,n,b;
String mstring,a = "";
String [] temp=new String [1000];
public void startApp()
{System.out.println("startApp");
mForm=new Form("RSA Encryption");
mCommandQuit=new Command("QUIT",Command.EXIT,0);
mCommandItem=new Command("DECRYPT",Command.ITEM,0);
mForm.append("Enter text:\n");
input=new TextField(null,"",100, TextField.ANY);
mForm.append(input);
mForm.append("Enter first prime number(p):\n");
prime1=new TextField(null,"",100, TextField.NUMERIC);
mForm.append(prime1);
mForm.append("Enter second prime number(q):\n");
prime2=new TextField(null,"",100, TextField.NUMERIC);
mForm.append(prime2);
mForm.append("Enter d:\n");
prime3=new TextField(null,"",100, TextField.NUMERIC);
mForm.append(prime3);
mForm.addCommand(mCommandQuit);
mForm.addCommand(mCommandItem);
mDisplay=Display.getDisplay(this);
mDisplay.setCurrent(mForm);
mForm.setCommandListener(this);
public void pauseApp()
{System.out.println("pauseApp");
public void destroyApp(boolean unconditional)
{System.out.println("destroyApp");
public void commandAction(Command c, Displayable d)
{System.out.println("commandAction");
if(c==mCommandQuit)
notifyDestroyed();
else if(c==mCommandItem)
{p = Integer.parseInt(prime1.getString());
q = Integer.parseInt(prime2.getString());
b = Integer.parseInt(prime3.getString());
n=p*q;
//breaking up of big string into ints
mstring=input.getString();
temp[0]="";
for(i=1;i<mstring.length();i++)
{if (mstring.charAt(i) == ' ')
{j++;
temp[j]="";
else
{temp[j]=temp[j]+mstring.charAt(i);
l=j;
mForm.append("\n\nThe result is:\n");
for(i=0;i<l;i++)
{k1=Integer.valueOf(temp).intValue();
k2=k1;
for(j=1;j<b;j++)
{k2=k2*k1;
k2=k2 %n;
k1=k2 %n;
a=a+new Character((char)k1).toString();
output=new TextField(null,a,100, TextField.ANY);
mForm.append(output); -
Char array conversion from String: toCharArray()
Greetings,
Can anyone tell me why this code:
import com.wuw.debug.Trace;
public
class charTest
public static void
main( String[] args )
String strIn = new String( "strIn" );
Trace.DTRACE( "strIn: "+strIn );
Trace.DTRACE( "strOut: "+strIn.toCharArray() );
}produces this output:
[DTRACE]: strIn: strIn
[DTRACE]: strOut: [C@1fef6f
and not:
[DTRACE]: strIn: strIn
[DTRACE]: strOut: strInBecause:
String.toCharArray returns an array of chars.
An array is basically an object in java.
Objects are converted to strings with the method toString - if it's not implemented in your class the string that method returns will be of the form classname@hashcode.
In the case of a char array, the name of the class is "[C". The hashcode of you object seems to be "1fef6f" (in hex).
You'll just have to remember that an array of chars is [i]not a string in java.
Maybe you are looking for
-
Lack of Mac Support Disappointments
I was very disappointed that the iPhone doesn't allow a Mac (MacBook Pro in my case) to use it's EDGE internet connection via Bluetooth. I would like to be able to use the iPhone's internet connection for my MacBook Pro when there's no WiFi available
-
Pdf and vector files will not open in Adobe Illustrator after Yosemite Update
I updated my OS on recommendation from apple. Pdf and vector files will not open in adobe illustrator now. Am i using the latest OS?
-
Firmware Problem on my zen touch....PLEASE HELP ME
Hi, I have had my zen touch for over a year now, works great. Recently I tried to up grade the firmware to ZenTouchP4S_PCFW_LB_2__0.exe While installing it erased the whole music plus the previous firmware. So when installing it froze an now my playe
-
Import/export question....
Hi.. I have a folder on one instance which have almost 20 joins with other folders.... when i export the folder and import it on another instance the joins are not imported... can anyone tell what could be the problem? Thanks.
-
hello i have problem with my nokia 6210 navigaotr. I have Nokia Messaging in phone. i can't save attachment,i can;t change settings (stored messages older than 3 days)