Numeric conversion error
Hello everybody,
Good Day to all.
I have a very strange problem in my UDF. I have a Matrix whitch is bound to a Table data source like this:
Table = oForm.DataSources.DataTables.Add("Lines")
Table.Columns.Add("ID", SAPbouiCOM.BoFieldsType.ft_Integer)
Table.Columns.Add("DocEntry", SAPbouiCOM.BoFieldsType.ft_Integer)
Table.Columns.Add("DocNum", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 255)
Table.Columns.Add("codi_loca", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 10)
Table.Columns.Add("codi_arti", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 25)
Table.Columns.Add("quan_movi", SAPbouiCOM.BoFieldsType.ft_Float)
Table.Columns.Add("data_tran", SAPbouiCOM.BoFieldsType.ft_Date)
Table.Columns.Add("hora_tran", SAPbouiCOM.BoFieldsType.ft_Date)
Matrix = oForm.Items.Item("6").Specific
Column = Matrix.Columns.Item("V_-1")
Column.DataBind.Bind("Lines", "ID")
Column = Matrix.Columns.Item("V_0")
Column.DataBind.Bind("Lines", "DocNum")
Column = Matrix.Columns.Item("V_1")
Column.DataBind.Bind("Lines", "codi_loca")
Column = Matrix.Columns.Item("V_2")
Column.DataBind.Bind("Lines", "codi_arti")
Column = Matrix.Columns.Item("V_3")
Column.DataBind.Bind("Lines", "quan_movi")
I then fill the table using this SQL
Dim Matrix As SAPbouiCOM.Matrix
Dim Table As SAPbouiCOM.DataTable
Dim SQL As String = ""
SQL += "DECLARE @Lines TABLE(" & vbNewLine
SQL += " ID INT IDENTITY(1,1) PRIMARY KEY NOT NULL," & vbNewLine
SQL += " DocEntry INT," & vbNewLine
SQL += " DocNum NVARCHAR(255)," & vbNewLine
SQL += " codi_loca NVARCHAR(10)," & vbNewLine
SQL += " codi_arti NVARCHAR(25)," & vbNewLine
SQL += " quan_movi DECIMAL(19,6)," & vbNewLine
SQL += " data_tran DATETIME," & vbNewLine
SQL += " hora_tran DATETIME)" & vbNewLine
SQL += "INSERT INTO @Lines(DocEntry, DocNum, codi_loca, codi_arti, quan_movi, data_tran, hora_tran)" & vbNewLine
SQL += "SELECT T0.DocEntry," & vbNewLine
SQL += " T1.SeriesName + '\' + convert(nvarchar, T0.DocNum) as DocNum," & vbNewLine
SQL += " T2.codi_loca," & vbNewLine
SQL += " T2.codi_arti," & vbNewLine
SQL += " T2.quan_movi," & vbNewLine
SQL += " T2.data_tran," & vbNewLine
SQL += " T2.hora_tran" & vbNewLine
SQL += " FROM ORDR T0 INNER JOIN" & vbNewLine
SQL += " NNM1 T1 ON (T0.Series = T1.Series) INNER JOIN" & vbNewLine
SQL += " EXTERNALDATABASE.dbo.zz_historico_movimento_artigo T2 ON (T1.SeriesName + '\' + convert(nvarchar, T0.DocNum) = T2.nume_docu)" & vbNewLine
SQL += " WHERE T2.tipo_docu = 'OE'" & vbNewLine
SQL += " AND T2.codi_tran = 'SC'" & vbNewLine
SQL += " AND T0.DocStatus = 'O'" & vbNewLine
SQL += " AND T0.DocEntry = 449" & vbNewLine
SQL += " ORDER BY T2.codi_loca" & vbNewLine
SQL += "SELECT ID, DocEntry, DocNum, codi_loca, codi_arti, quan_movi, data_tran, hora_tran from @Lines order by codi_loca" & vbNewLine
Table = oForm.DataSources.DataTables.Item("Lines")
Table.ExecuteQuery(SQL)
Matrix = oForm.Items.Item("6").Specific
Matrix.LoadFromDataSource()
The Data is beeing loaded correcty and the numeric values are ok in the Table,
But on the SAP BO Application the quan_movi column insted of displaying numbres, it displays funny characters
Like you can see on this [PrintScreen|http://i283.photobucket.com/albums/kk291/hyperbyte2/SAPJap.jpg]
Can any one find anything wrong with my code that explains the numeric conversion failure.
Thanks in Advance
Pedro Gomes
SINFIC SA
Hi Pedro,
first of all - official it is not allowed to move data with recordsets. if you want to license your addon you will have problems.
second - split the query.
"move" the data in a own recordset and be sure that your executequery only contains the raw select.
the last step is to control if the data you receive from the fields is the same type like the defined column.
regards
David
Similar Messages
-
Numeric or value error: character to number conversion error
I'm having problems inserting a value from a date picker field (DD-MON-YYYY HH MI )
i'm submitting this value to a packaged procedure that accepts this field as VARCHAR2 .
on the insert, i do a to_date( P_DATE, 'DD-MON-YYYY HH:MI PM' )
and i get the numeric conversion error.
If I change the to_date on the procedure side, I get the :could not read the end of the format mask - which I've found threads about on this site.
I've tried using HH24 and different formats, but I get one of the two above errors on the insert.
If I don't fill in the datepicker field at all, it works fine.
help is appreciated !
BillHere is the trace anyway:
*** ACTION NAME:(application 4000, page 1) 2004-09-24 12:58:44.052
*** MODULE NAME:(HTML DB) 2004-09-24 12:58:44.052
*** SERVICE NAME:(TOPS) 2004-09-24 12:58:44.052
*** SESSION ID:(151.1) 2004-09-24 12:58:44.052
*** 2004-09-24 12:58:44.052
ksedmp: internal or fatal error
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
Current SQL statement for this session:
declare
rc__ number;
begin
owa.init_cgi_env(:n__,:nm__,:v__);
htp.HTBUF_LEN := 255;
null;
null;
null;
null;
f(p=>:p);
if (wpg_docload.is_file_download) then
rc__ := 1;
wpg_docload.get_download_file(:doc_info);
null;
null;
null;
commit;
else
rc__ := 0;
null;
null;
null;
commit;
owa.get_page(:data__,:ndata__);
end if;
:rc__ := rc__;
end;
----- PL/SQL Call Stack -----
object line object
handle number name
6A3C4A00 532 package body FLOWS_010500.WWV_FLOW_UTILITIES
6A3C4A00 2502 package body FLOWS_010500.WWV_FLOW_UTILITIES
6A3C4A00 2748 package body FLOWS_010500.WWV_FLOW_UTILITIES
6A0E63C8 991 package body FLOWS_010500.WWV_FLOW_FORMS
6A11675C 932 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
6A11675C 247 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
6A4B54E0 8341 package body FLOWS_010500.WWV_FLOW
6A2A99F0 102 procedure FLOWS_010500.F
6A2B9E54 10 anonymous block
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
ksedmp+524 CALLrel ksedst+0 1
ksedmptracecb+15 CALLrel _ksedmp+0 C
_ksddoa+118 CALLreg 00000000 C
ksdpcg+143 CALLrel ksddoa+0
ksdpec+180 CALLrel ksdpcg+0 1966 6D7D208 1
__PGOSF3__ksfpec+11 CALLrel _ksdpec+0 0
8
_kgerev+77 CALLreg 00000000 7474210 1966
kgerec1+18 CALLrel kgerev+0 7474210 6DCE5EC 1966 1
6D7D260
peirve+465 CALLrel kgerec1+0
pevmCVTCN+346 CALLrel _peirve+0
pfrinstrCVTCN+36 CALLrel pevmCVTCN+0 6E6E604 71CE370 7160F0C
pfrrunno_tool+51 CALL??? 00000000
pfrrun+1834 CALLrel pfrrun_no_tool+0 6E6E604 6A3C010A 6E6E640
plsqlrun+1051 CALLrel _pfrrun+0 6E6E604
peicnt+179 CALLrel plsql_run+0 6E6E604 1 0
kkxexe+477 CALLrel peicnt+0
opiexe+4896 CALLrel kkxexe+0 6A2B9E54
kpoal8+1705 CALLrel opiexe+0 49 3 6D7E06C
_opiodr+977 CALLreg 00000000 5E 14 6D7E7CC
_ttcpip+1827 CALLreg 00000000 5E 14 6D7E7CC 0
_opitsk+1098 CALL??? 00000000
opiino+938 CALLrel opitsk+0 0 0 747ABC0 6DEFB14 D8 0
_opiodr+977 CALLreg 00000000 3C 4 6D7FBBC
opidrv+479 CALLrel opiodr+0 3C 4 6D7FBBC 0
sou2o+45 CALLrel opidrv+0 3C 4 6D7FBBC
opimai+237 CALLrel sou2o+0
OracleThreadStart@ CALLrel opimai+0
4+899
77E7D338 CALLreg 00000000 -
Numeric or value error: hex to raw conversion error , pls help
I am having problem with a sproc which accepts a Raw parameter.
I have a table called Profile:
CREATE TABLE PROFILES
PROFILEID INTEGER NOT NULL,
USERID INTEGER NOT NULL,
PROFILE RAW(255)
and a sproc named addprofile
CREATE OR REPLACE PROCEDURE addprofile
profile IN RAW,
userName IN VARCHAR2
AS
userId INT;
BEGIN
GetUserIdByName( userName, userId);
INSERT INTO Profiles
( ProfileID,userId , profile )
VALUES ( Profiles_ProfileID_SEQ.NEXTVAL,AddProfile.userId ,
AddProfile.profile );
END;
I am calling the Ent Library's Insert profile method which is part of DbProfileProvider.cs (Security App block). It is trying to persist a serialized profile object into the database.
private void InsertProfile(string userName, byte[] serializedProfile,
Data.Database securityDb, IDbTransaction transaction)
DBCommandWrapper cmd = securityDb.GetStoredProcCommandWrapper
(SPAddProfile);
cmd.AddInParameter("userName", DbType.String, userName);
cmd.AddInParameter("profile", DbType.Binary, serializedProfile);
securityDb.ExecuteNonQuery(cmd, transaction);
I get the following error:
Any suggestion on what needs to be changed to get this working? thanks!
Exception Details: Oracle.DataAccess.Client.OracleException: ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error ORA-06512: at line 1
Stack trace:
[OracleException: ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
ORA-06512: at line 1]
Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
Microsoft.Practices.EnterpriseLibrary.Data.Database.DoExecuteNonQuery(DBCommandWrapper command)
Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DBCommandWrapper command, IDbTransaction transaction)
Microsoft.Practices.EnterpriseLibrary.Security.Database.DbProfileProvider.InsertProfile(String userName, Byte[] serializedProfile, Database securityDb, IDbTransaction transaction)
Microsoft.Practices.EnterpriseLibrary.Security.Database.DbProfileProvider.SetProfile(IIdentity identity, Object profile)
[InvalidOperationException: Error saving the profile for the following user 'test'.]
Microsoft.Practices.EnterpriseLibrary.Security.Database.DbProfileProvider.SetProfile(IIdentity identity, Object profile)
EntLibSecuritySample.DFO.Security.SecurityHelper.SetUserProfile(IIdentity identity, Object Profile) in C:\DFO\Sample\Security\EntLibSecuritySample\SecurityHelper.vb:285
[ApplicationException: An error has occurred saving profile object to Datastore. See stack trace for further information]
EntLibSecuritySample.DFO.Security.SecurityHelper.SetUserProfile(IIdentity identity, Object Profile) in C:\DFO\Sample\Security\EntLibSecuritySample\SecurityHelper.vb:287
EntLibSecuritySample.ProfilePage.cmdSaveProfile_Click(Object sender, EventArgs e) in C:\DFO\Sample\Security\EntLibSecuritySample\profile.aspx.vb:59
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain() +1292Harsh,
I am not a user of the Enterprise Library so I can not speak to the specifics of that. However, here is a short sample that is based on the information you've provided. Perhaps it will be useful.
Database:
create table profiles
profileid integer not null,
userid integer not null,
profile raw(255)
create or replace procedure addprofile
p_profileid in integer,
p_userid in integer,
p_profile in raw
as
begin
insert into
profiles (profileid, userid, profile)
values (p_profileid, p_userid, p_profile);
end;
/C# code:
using System;
using System.Data;
using System.Text;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace HarshTest
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
// connect to local db using o/s authentication
OracleConnection con = new OracleConnection("User ID=/; Pooling=False");
con.Open();
// create command object and set properties
OracleCommand cmd = new OracleCommand();
cmd.Connection = con;
cmd.CommandText = "ADDPROFILE";
cmd.CommandType = CommandType.StoredProcedure;
// parameter object for profileid
OracleParameter p_profileid = new OracleParameter();
p_profileid.OracleDbType = OracleDbType.Int32;
p_profileid.Value = 1;
p_profileid.Direction = ParameterDirection.Input;
// parameter object for userid
OracleParameter p_userid = new OracleParameter();
p_userid.OracleDbType = OracleDbType.Int32;
p_userid.Value = 1;
p_userid.Direction = ParameterDirection.Input;
// create a byte array for the raw value
ASCIIEncoding encoder = new ASCIIEncoding();
byte[] byteArray = encoder.GetBytes("TestProfile");
// parameter object for profile
OracleParameter p_profile = new OracleParameter();
p_profile.OracleDbType = OracleDbType.Raw;
p_profile.Value = byteArray;
p_profile.Direction = ParameterDirection.Input;
// add parameters to collection
cmd.Parameters.Add(p_profileid);
cmd.Parameters.Add(p_userid);
cmd.Parameters.Add(p_profile);
// execute the stored procedure
try
cmd.ExecuteNonQuery();
catch (OracleException ex)
Console.WriteLine(ex.Message);
// clean up objects
p_profile.Dispose();
p_userid.Dispose();
p_profileid.Dispose();
cmd.Dispose();
con.Dispose();
}Maybe the part about creating the byte array is what you are missing...
- Mark -
Re: Error, numeric or value error: character to number conversion error
Can someone please please tell me why I'm getting this error and what I'm doing wrong? It looks like a simple error, "numeric or value error: character to number conversion error".
My code is as follows:
string connectionString = WebConfigurationManager.ConnectionStrings["DEMO_TEST"].ConnectionString;
OracleConnection con = new OracleConnection(connectionString);
OracleCommand cmd = new OracleCommand("DEMO.PKG_LOCATION_TYPE.INS", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add(new OracleParameter("@P_DESCRIPTION", OracleDbType.Varchar2, 60));
cmd.Parameters["@P_DESCRIPTION"].Value = "Test_Description";
cmd.Parameters.Add(new OracleParameter("@P_NAME", OracleDbType.Varchar2, 6));
cmd.Parameters["@P_NAME"].Value = "Test_Name";
cmd.Parameters.Add(new OracleParameter("@P_LOCATION_TYPE_CD", OracleDbType.Decimal, 4));
cmd.Parameters["@P_LOCATION_TYPE_CD"].Direction = ParameterDirection.InputOutput;
con.Open();
try
cmd.ExecuteNonQuery();
catch
//In case of an error
finally
con.Close();
con.Dispose();
And I recieve the following error block:
Oracle.DataAccess.Client.OracleException was unhandled by user code
Message="ORA-06502: PL/SQL: numeric or value error: character to number conversion error\nORA-06512: at line 1"
Source="Oracle Data Provider for .NET"
DataSource="demotest"
Number=6502
Procedure="DEMO.PKG_LOCATION_TYPE.INS"
StackTrace:
at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
at System.Web.UI.WebControls.Wizard.OnFinishButtonClick(WizardNavigationEventArgs e)
at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs args)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
********************************************************Are the parameters in your procedure in the same order as they are created in this code? Oracle command works by position unless you change it to be BindByName.
Failing that you seem to have defined a parameter (P_NAME) to have a length of 6, and are then setting it's value to a string with a length of 9.
Also the in/output parameter is defined as type decimal. Is this correct? It is defined as InputOutput but you don't assign it any value.
If these suggestions don't help then perhaps if you post the stored procedure you might get some more ideas.
HTH
Lyndon -
PL/SQL: numeric or value error: character to number conversion error in TRG
Hi,
I've got strange issue with one trigger which during update of table reports (DB is 9.2.0.8):
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "UDR_LOG", line 345
ORA-04088: error during execution of trigger 'UDR_LOG'but line 345 is:
END IF;
so its kind of strange
the code looks like
343 IF nvl(to_char(:old.PKD_ID),'''') <> nvl(to_char(:new.PKD_ID),'''') THEN
344 v_zmn := v_zmn || 'PKD_ID''' || to_char(:old.PKD_ID) || '''' || to_char(:new.PKD_ID) || '''';
345 END IF;
so its concatenation not to_number usage .error is triggered by update statement on any column .
I'm sorry I cant provide You with whole trigger code .
So if You could only recommend any investigation method that would be great .
Regards
GregHi, Greg,
When there's an error in a trigger, the line numbers in the error messages are relative to the first DECLARE or BEGIN statement; often, that's a few lines after CREATE OR REPLACE TRIGGER. Post a few lines after what you already posted.
If you can't find the error, then create another table for testing this, and create a smaller trigger on that table, which does only enough to cause the error. Then you'll be able to post the complete trigger, and the code needed to re-create the problem. -
Hi
I am using the sqldf package in R to do some joins of my data table as follows:
p1<-sqldf("SELECT t3.* FROM p as t3 JOIN (SELECT userid, MAX(type) as LastActivityType FROM p GROUP BY userid) t4 ON t3.userid = t4.userid AND t3.type = t4.LastActivityType")
However , I am getting the error mentioned in the subject line
The error doesn't appear when I change the column names from t3.* and limit it to a subset of column names ( t3.userid, t3.LastActivity....).
Surprisingly though, I have another similar sql script in the same code block which runs just fine.
My code runs fine in RStudio, so I guess there's some incompatibility with the Azure environment somewhere. For reference, the sqldf package and its dependencies (imported separately as a zip) is compatible with R 3.1.2
Can someone help me solve this?
Thanks in advance!!Hi AK
Thanks for the quick response
So I checked the following:
1) Downloaded the dataset from AML from the step just previous to where my sql script appears, fed it into RStudio with stringsAsFactors=FALSE and thereupon ran the sql script. It works without any issues. It works fine if I dont set stringsAsFactors
as false as well
2) Checked the CRAN documentation on the sqldf package, it mentions that the package is valid for versions>=R3.1.0
3)All 4 dependencies were included. Only one was preinstalled. The output log says:
warning: package 'proto' is in use and will not be installedso I removed the package 'proto' just in case it was causing trouble.Nothing Works :/I am pasting the output log, could you have a look and see if I am missing anything obvious?Thanks a ton!UpasanaOutput Log:Record Starts at UTC 11/27/2014 07:38:27:
Run the job:"/dll "ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript;Run" /Output0 "..\..\Result Dataset\Result Dataset.dataset" /Output1 "..\..\R Device\R Device.dataset" /dataset1 "..\..\Dataset1\Dataset1.csv" /bundlePath "..\..\Script Bundle\Script Bundle.zip" /rStreamReader "script.R" "
Starting process 'C:\Resources\directory\275cc759e61f4dbf889cde5e5cba0835.SingleNodeRuntimeCompute.Packages\AFx\5.1\DllModuleHost.exe' with arguments ' /dll "ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript;Run" /Output0 "..\..\Result Dataset\Result Dataset.dataset" /Output1 "..\..\R Device\R Device.dataset" /dataset1 "..\..\Dataset1\Dataset1.csv" /bundlePath "..\..\Script Bundle\Script Bundle.zip" /rStreamReader "script.R" '
[ModuleOutput] DllModuleHost Start: 1 : Program::Main
[ModuleOutput] DllModuleHost Start: 1 : DataLabModuleDescriptionParser::ParseModuleDescriptionString
[ModuleOutput] DllModuleHost Stop: 1 : DataLabModuleDescriptionParser::ParseModuleDescriptionString. Duration: 00:00:00.0050545
[ModuleOutput] DllModuleHost Start: 1 : DllModuleMethod::DllModuleMethod
[ModuleOutput] DllModuleHost Stop: 1 : DllModuleMethod::DllModuleMethod. Duration: 00:00:00.0000572
[ModuleOutput] DllModuleHost Start: 1 : DllModuleMethod::Execute
[ModuleOutput] DllModuleHost Start: 1 : DataLabModuleBinder::BindModuleMethod
[ModuleOutput] DllModuleHost Verbose: 1 : moduleMethodDescription ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca;Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript;Run
[ModuleOutput] DllModuleHost Verbose: 1 : assemblyFullName ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca
[ModuleOutput] DllModuleHost Start: 1 : DataLabModuleBinder::LoadModuleAssembly
[ModuleOutput] DllModuleHost Verbose: 1 : Trying to resolve assembly : ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca
[ModuleOutput] DllModuleHost Verbose: 1 : Loaded moduleAssembly ExecuteRScript, Version=5.1.0.0, Culture=neutral, PublicKeyToken=69c3241e6f0468ca
[ModuleOutput] DllModuleHost Stop: 1 : DataLabModuleBinder::LoadModuleAssembly. Duration: 00:00:00.0067974
[ModuleOutput] DllModuleHost Verbose: 1 : moduleTypeName Microsoft.MetaAnalytics.RDataSupport.ExecuteRScript
[ModuleOutput] DllModuleHost Verbose: 1 : moduleMethodName Run
[ModuleOutput] DllModuleHost Information: 1 : Module FriendlyName : Execute R Script
[ModuleOutput] DllModuleHost Information: 1 : Module Release Status : Release
[ModuleOutput] DllModuleHost Stop: 1 : DataLabModuleBinder::BindModuleMethod. Duration: 00:00:00.0106972
[ModuleOutput] DllModuleHost Start: 1 : ParameterArgumentBinder::InitializeParameterValues
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos count = 5
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[0] name = dataset1 , type = Microsoft.Numerics.Data.Local.DataTable
[ModuleOutput] DllModuleHost Start: 1 : DataTableCsvHandler::HandleArgumentString
[ModuleOutput] DllModuleHost Stop: 1 : DataTableCsvHandler::HandleArgumentString. Duration: 00:00:13.1522942
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[1] name = dataset2 , type = Microsoft.Numerics.Data.Local.DataTable
[ModuleOutput] DllModuleHost Verbose: 1 : Set optional parameter dataset2 value to NULL
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[2] name = bundlePath , type = System.String
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[3] name = rStreamReader , type = System.IO.StreamReader
[ModuleOutput] DllModuleHost Verbose: 1 : parameterInfos[4] name = seed , type = System.Nullable`1[System.Int32]
[ModuleOutput] DllModuleHost Verbose: 1 : Set optional parameter seed value to NULL
[ModuleOutput] DllModuleHost Stop: 1 : ParameterArgumentBinder::InitializeParameterValues. Duration: 00:00:13.1845731
[ModuleOutput] DllModuleHost Verbose: 1 : Begin invoking method Run ...
[ModuleOutput] Microsoft Drawbridge Console Host [Version 1.0.2108.0]
[ModuleOutput] [1] 56000
[ModuleOutput]
[ModuleOutput] The following files have been unzipped for sourcing in path=["src"]:
[ModuleOutput]
[ModuleOutput] Name Length Date
[ModuleOutput]
[ModuleOutput] 1 sqldf_0.4-10.zip 71667 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 2 chron_2.3-45.zip 107752 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 3 DBI_0.3.1.zip 153831 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 4 gsubfn_0.6-6.zip 348505 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 5 proto_0.3-10.zip 458519 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] 6 RSQLite_1.0.0.zip 1211130 2014-11-21 11:38:00
[ModuleOutput]
[ModuleOutput] Loading objects:
[ModuleOutput]
[ModuleOutput] port1
[ModuleOutput]
[ModuleOutput] [1] "Loading variable port1..."
[ModuleOutput]
[ModuleOutput] package 'gsubfn' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] Loading required package: proto
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] package 'DBI' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] package 'RSQLite' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] package 'sqldf' successfully unpacked and MD5 sums checked
[ModuleOutput]
[ModuleOutput] [1] TRUE
[ModuleOutput]
[ModuleOutput] Loading required package: tcltk
[ModuleOutput]
[ModuleOutput] Error in asfn(rs[[i]]) : need explicit units for numeric conversion
[ModuleOutput]
[ModuleOutput] In addition: Warning messages:
[ModuleOutput]
[ModuleOutput] 1: In strptime(x, format, tz = tz) :
[ModuleOutput]
[ModuleOutput] unable to identify current timezone 'C':
[ModuleOutput]
[ModuleOutput] please set environment variable 'TZ'
[ModuleOutput]
[ModuleOutput] 2: In strptime(x, format, tz = tz) : unknown timezone 'localtime'
[ModuleOutput]
[ModuleOutput] 3: package 'gsubfn' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 4: package 'DBI' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 5: package 'RSQLite' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 6: package 'sqldf' was built under R version 3.1.2
[ModuleOutput]
[ModuleOutput] 7: In strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
[ModuleOutput]
[ModuleOutput] unknown timezone 'localtime'
[ModuleOutput]
[ModuleOutput] DllModuleHost Stop: 1 : DllModuleMethod::Execute. Duration: 00:02:41.0341394
[ModuleOutput] DllModuleHost Error: 1 : Program::Main encountered fatal exception: Microsoft.Analytics.Exceptions.ErrorMapping+ModuleException: Error 0063: The following error occurred during evaluation of R script:
[ModuleOutput] ---------- Start of error message from R ----------
[ModuleOutput] R script execution failed. Please click on "View Output Log" in the properties pane for full details.
[ModuleOutput] ----------- End of error message from R -----------
Module finished after a runtime of 00:02:41.1766291 with exit code -2
Module failed due to negative exit code of -2
Record Ends at UTC 11/27/2014 07:41:12. -
ORA-06502: numeric or value error: character to number conversion error
I met the following error when I ran Donald's PL/SQL function to_number_or_null. Could somebody here help me find the resolution? Thanks!
SQL> create or replace FUNCTION to_number_or_null (
2 aiv_number in varchar2 )
3 return number is
4 /*
5 to_number_or_null.fun
6 by Donald J. Bales on 12/15/2006
7 An errorless to_number( ) method
8 */
9 begin
10 return to_number(aiv_number);
11 exception
12 when INVALID_NUMBER then
13 return NULL;
14 end to_number_or_null;
15 /
Function created.
SQL> select to_number_or_null('A') from dual;
select to_number_or_null('A') from dual
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at "CAROL.TO_NUMBER_OR_NULL", line 10Only INVALID_NUMBER exception is handled and also VALUE_ERROR should be handeled. You can resolve it by handling VALUE_ERROR exception or by adding WHEN OTHERS as I did in following example.
SQL> create or replace FUNCTION to_number_or_null (
2 aiv_number in varchar2 )
3 return number is
4 /*
5 to_number_or_null.fun
6 by Donald J. Bales on 12/15/2006
7 An errorless to_number( ) method
8 */
9 begin
10 return to_number(aiv_number);
11 exception
12 when INVALID_NUMBER then
13 return NULL;
14 when OTHERS then
15 return null;
16 end to_number_or_null;
17 /
Function created.
SQL> select to_number_or_null('A') from dual;
TO_NUMBER_OR_NULL('A')
----------------------With kind regards
Krystian Zieja -
Numeric overflow error in aggregation level formula
The formula for Revenue/Quantity is giving me the following error:
Error: [314]: numeric overflow: search table error: [6944] AttributeEngine: overflow in numeric calculation;Error executing physical plan: exception 6944: AttributeEngine/Parallel/Aggregation.cpp:573 AttributeEngine: overflow in numeric calculation; $function$=read; $message$=unable to read measures RAOL01:_SYS_CE__popid_24_531C272BF80A349FE10000007F000002_558972en TEST_Revenue fixed16.12 ,in executor::Executor in cube: RAOL01:_SYS_CE_$REQUEST$_popid_24_531C272BF80A349FE10000007F000002_558973: calcEngine search on olapIndex failed.
I am aware that if Quantity is zero then we get this error, but I have already handled it and Quantity is never zero.
Both the measures are Decimal, any suggestions as to how to handle this?My first guess you have reached the upper limit of the datatype on concerned column and the AttributeEngine is not capable now to handle the numeric overflow, hence throwing the error message.
Try converting it to higher datatypes like double, you can also try to do an workaround with datatype conversion functions like TO_DOUBLE before aggregation func.
If you are using something like sum("COL1") try using sum(TO_DOUBLE("COL1")) -
Importing data error: SIGNEDDATA conversion error
The complete description is:
The number of failing rows exceeds the maximum specified. (Microsoft Data Transformation Services (DTS) Data Pump (8004202c): TransformCopy 'DTSTransformation__13' conversion error: General conversion failure on column pair 1 (source column 'SIGNEDDATA' (DBTYPE_STR), destination column 'SIGNEDDATA' (DBTYPE_NUMERIC)).)
We are trying to convert a value that come with miles separators, use the character "." (point) as separator and "," (comma) as decimal separator, we use a vb function (replace) to change the points for null string, but it doesn't work. Do you have any suggestion to solve this?
We are using BPC 7.0 MS SP3.
Thanks in advance,
Mariana Rodriguez.
Edited by: Mariana Rodriguez on Mar 23, 2011 4:15 PMHi Mariana,
I've had the same kind of problem, which gave me the
General conversion failure on column pair 1 (source column 'SIGNEDDATA' (DBTYPE_STR), destination column 'SIGNEDDATA' (DBTYPE_NUMERIC)).)
errror message
My issue was resolved by changing the CREDITNEGATIVE=NO option to CREDITNEGATIVE=YES, because BPC probably converted negative values as 'string' values in stead of 'numeric' when importing SAP FI data with the minus sign '-' at the end (100-) instead of SQL signeddata (-100)
But I have to be carefull, my Account Dimension setup is as follows:
Balance Sheet Asset => AccType=AST
Balance Sheet Liabilities => AccType=LEQ
Profit and Loss Revenues => AccType =INC
Profit and Loss Expenses => AccType=INC
My flat file seperator is a comma (,) and decimalpoint is a point (.)
We are using BPC 7.5 MS SP07 Patch 02 and I'm not using any VBA to convert the amount.
Maybe it can help?
Regards,
Peter van Drunen - FPM Solutions -
Catolog conversion error converting a PSE3 to PSE10
I recently purchased PSE 10 and have tried to convert the catalog from my PSE 3 and receive the following error: Catalog conversion failed. Try repairing the catalog with the software that created it and retry conversion. Please refer to the help article "Catalog Conversion Errors" for more details.
I went back into PSE 3 and performed a recover on the catalog and it completed successfully. When I went back into PSE 10 and retried the conversion, I received the same error.
I also searched for the "Catalog Conversion Errors" article but could not find it specifically although I found numerous discussions on conversion errors.
There is just so little information provided with the error. I appreciate any assistance anyone can provide.
Thanks,I was having the same problem with converting PSE 9 catalogs with PSE 10 and followed the same advice without results. I discovered quite by chance that if you were lucky enough to save your last version's db file (in my case the catalog.pse9.db file), you can open this file with the Photoshop Elements 10.0.exe file and it will save it as catalog.pse10.db, complete with all tags and other unique catalog date. The catalog name will be the one associated with the catalog.pse9.db file. This was my last resort short of creating a new catalog and having to retag everything.
-
Web service call on hosted env fails with hex to raw conversion error
Hi,
I use Enciva to run some hosted Apex applications, and I've had a call open with them for a few days re: setting up a web service call to an e-mail checker, provided by a company called Rolosoft. The e-mail checker runs fine from outside the hosted environment, but I get the following error trying to call from the Apex application:
ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
Has anyone hit this error before with web services, I've tried manual and RESTful but get the same error message.
Thanks,
MikeHello,
We encounter the same issue using manual WebService !
Environnement Settings :
Oracle 11g R2 - Windows W2K3 - NLS_CHARACTERSET : AL32UTF8
Apex 4.1
Any suggestions, helps ?
Thanks,
G. -
Conversion error - Really urgent II
I�ve got 3 Textfield that exhibit a row from a rowset, and I put a save button with the code
public String button1_action() {
// User event code here...
try{
aprovacaoRowSet.updateRow();
aprovacaoRowSet.commit();
info("Alteracao ok");
}catch (SQLException e) {
log("ok" + e);
error("erro" + e); }
return null;What am I doing wrong ? for when I click this button I only got the message:
textfield conversion error occurred
Regards
Marlos Rodriguesfyi here's the how the column types map into your java code...
JDBC Type (which we call SQL Type) --> Java Type:
================================================
CHAR --> java.lang.String
VARCHAR --> java.lang.String
LONGVARCHAR --> java.lang.String
NUMERIC --> java.math.BigDecimal
DECIMAL --> java.math.BigDecimal
BIT --> boolean
BOOLEAN --> boolean
TINYINT --> byte
SMALLINT --> short
INTEGER --> int
BIGINT --> long
REAL --> float
FLOAT --> double
DOUBLE --> double
BINARY --> byte[]
VARBINARY --> byte[]
LONGVARBINARY --> byte[]
DATE --> java.sql.Date
TIME --> java.sql.Time
TIMESTAMP --> java.sql.Timestamp
CLOB --> java.sql.Clob
BLOB --> java.sql.Blob
ARRAY --> java.sql.Array
DISTINCT --> (mapping of underlying type)
STRUCT --> java.sql.Struct
REF --> java.sql.Ref
DATALINK --> java.net.URL
JAVA_OBJECT --> (underlying Java class)
Source: JDBC 3.0 Specification, Appendix B -
Error named like "CONVERSION ERROR"
I am creating one Module Pool Program with the Screen Painter. There is total 10 Tab Strips used in the Screen Painter.
When I select the Last Tab, I get the Error with the message " CONVERSION ERROR"
Can you guide me why this error can occurs?Hi,
Check whether you are entering false values in a field which is not belong to that type.
For example, if you enter characteristic value into a numeric field and doing arithmatic operations.
CONVERSION ERROR occurs in this case.
Please check for above.
Regards,
Rajesh -
Arithmetical errors or conversion errors found in routine ROUTINE_0002
Hi Guru
Record 7884 :Arithmetical errors or conversion errors found in routine ROUTINE_0002 record 7884
I do research and found " open your URules (RSU3); in the menu extras, display generated program;
search for 0002; it could be a ROUTINE_0002 or a urule 0002 like form r0002_KEYFIGNAME"
dont have rountine_0002 in URules, routine_0001,routine_0003.
Please advice
with regards
NikhilHi Jadeep,
My problem resolved. I am posting the solution. OSS Note - 910561.
- Arithmetic Error in 2LIS_02_SCL during upload into 0PUR_00
Symptom
The upload of schedule-line-data (source 2LIS_02_SCL) into the ODS 'Purchase Order Item Schedule Lines (0PUR_DS03) terminates
because of an arithmetical error which only occurs if the source field 'BWMWNG' is not filled.
Other terms
MM-PUR, SRM-Analytics, 2LIS-02_SCL, BWMENG, Purchasing, 0NETPRICE
Reason and Prerequisites
If the Field BWMENG is not filled (zero) in the source system this is not handled by the update rule for Info Object 0CPQUAOU which is mapped with the field BWMENG.
Solution
Implement the following coding in the update rule for InfoObject 0NETPRICE:
IF COMM_STRUCTURE-CPQUAOU GT '0'.
RESULT = COMM_STRUCTURE-CPPVLC / COMM_STRUCTURE-CPQUAOU *
COMM_STRUCTURE-numerator / COMM_STRUCTURE-DENOMINTR.
ELSE.
RESULT = COMM_STRUCTURE-CPQUAOU.
ENDIF.
With regards
Syed -
How to check a lot of conversion errors with one TRY-CATCH?
Hi,
I've to import a lot of data from a flatfile.
To avoid short dumps when there are non-numeric data's for a numeric field in the file, I load every record in a structure that have only CHAR fields.
Then I move this fields in a TRY-Catch block to the real fields like this:
TRY.
field1 = field_from_file1
field2 = field_from_file2
field3 = field_from_file3
CATCH cx_sy_conversion_no_number INTO lr_exception.
PERFORM fehler USING lr_exception.
ENDTRY.
This construct works until the first field has a conversion error. However I will test all fields to get a complete list of the errors. And I am to lazy to make a TRY-CATCH construct for hundred of move-statements.
Is there a better trick to check the success of <b>all</b> move operation?
Regards,
StefanHi Stefan,
sorry, the development system is down right now, so I could not test. But I'm convinced you can figure it out:
You may specify the parameters of a method as TYPE REF TO DATA.
Then, in the calling routine you may have
data:
anyrefsource type ref to data,
anyreftarget type ref to data.
GET REFERENCE OF p_source INTO anyrefsource.
GET REFERENCE OF p_target INTO anyreftarget.
call method try_conv
exporting
source = anyrefsource
target = anyreftarget.
and in the method:
ASSIGN source->* TO <fs_source>
and so on...
BTW: I know you have to use typed parameters in OO. Can't you use "TYPE ANY"?
regards,
C.
Maybe you are looking for
-
Does anyone know when Group Membership will be available? Will it allow one account to license a number of users? Will you be able to download the product once and then package it and push out to users that are licensed? Is it possible to switch off
-
Dear All, I need to place tolerance limits on PO quantity. e.g 5 percent of the PO quantity is allowed to GRN. how can i do that, Thanks
-
Exporting PDF from InDesign with check boxes & name fields
We are a high production print shop and do most of our proofing via PDF. We email the customer a PDF and they print it out, show it to their customer, mark changes, and fax it back to us. We'd like to start letting the customers email their proofs ba
-
Is it possible to burn itune music videos to a dvd?
-
How to place am mime object on the smartform ?
Hi All, How to place am mime object on the smartform ? Is there any function module to read a mime object from mime repository? Any help would be appreciated. Regards, Raja Ram.