Type 'System.String' cannot be marshaled as an unmanaged structure; ... error is back
The error discussed in this post http://scn.sap.com/thread/1890650 seems to have crept back into SP12. The following code:
Using dbConnection As SqlConnection = GetNewSQLConnection()
.AddLoginInfo(dbConnection)
If TypeOf .Report Is IHasParameters Then
DirectCast(.Report, IHasParameters).ApplyParameterValues()
End If
If .Report.Rows.Count > 0 Then
.PrintToPrinter(.PrinterPageSettings.PrinterSettings.Copies, False, _
.PrinterPageSettings.PrinterSettings.FromPage, _
.PrinterPageSettings.PrinterSettings.ToPage)
Gives the error at If .Report.Rows.Count > 0
Type 'System.String' cannot be marshaled as an unmanaged structure; no meaningful size or offset can be computed.
The report does contain a blob - I tried deleting it and dragging it from the table - again, but the same error appears before and after. The type of the Field object is IFieldBlob. Oddly enough, other reports that also contain this field, currently seem to be working, although we will have to revisit all of them now.
I am using VS2010 and SQL Server 2005.
Any help would be appreciated.
Partial work-around:
''' <summary>
''' This function is a workaround of the Crystal Reports bug that causes a report with an image in it
''' to fail when the report is checked if it has data.
''' </summary>
''' <param name="Report">Report to check</param>
''' <returns>Number of rows in the report</returns>
''' <remarks>If the check throws an exception a value of one will be returned.</remarks>
Friend Function GetReportRowsCount(Report As ReportClass) As Integer
Try
Return Report.Rows.Count
Catch ex As Exception
My.Application.Log.WriteException(ex, TraceEventType.Warning, "GetReportRowsCount for " & Report.Name)
Return 1
End Try
End Function
I use this function in place of the check for Report.Rows.Count,
This allows most of my reports to work correctly, but allows the odd blank report with an image on it to print. Oddly enough, some of the older reports with logo's on them seem to work correctly. The newer ones run into this problem.
Neil
Similar Messages
-
Unable to cast object of type 'System.DBNull' to type 'System.String'.
Hi,
I am getting Below error:
Unable to cast object of type 'System.DBNull' to type 'System.String'.Hello,
Please confirm whether you are using sharepoint or not. If you are getting this error in sharepoint then Could you share your code with us? and also tell where you are getting this error.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Hi everyone, I have recently installed a trial version of SDL Trados (a computer-assisted translation software) and at some point (when I try to create a new translation memory) this error message appears: Unable to cast object of type 'System.DBNull' to type 'System.String' Is this a problem with the software or the laptop ? If it's the laptop, can you please help me solve this ? Thank you,Caroline
Actually there was not problem witg the laptop ! Please ignore this topic. Thanks.
-
Hi,
I'm experiencing an issue when trying to connect to RMS cluster through server manager. Error is:
Active Directory Rights Management Services could not complete the task because an error occurred. This error may be caused by variable conditions.
Details:
Exception message:
Unable to cast object of type 'System.Byte[]' to type 'System.String'.
Exception type:
System.Web.Services.Protocols.SoapExtension (Inner Exception: System.InvalidCastException)
I've re-installed server, I've reinstalled RMS role, I've tried with and w/o SSL connection to RMS but the error persists. OS is 2008R2 (updated), database is internal (test environment)...
Any suggestions?Actually there was not problem witg the laptop ! Please ignore this topic. Thanks.
-
Hello,
I'm having a problem when I try to load the WSDL file for the "Invoke Web Service" activity.
I'm trying to create a connection between Orchestrator 2012 R2 and Cisco Unified CM through a Web Services. When I click the WSDL file and I click the "Format Hint" button appears the following error "Object of type 'System.Int32' can not be
converted to type 'System.UInt64'."
The WSDL file that Cisco Unified CM I exported another work tools, tested and working well. In Orchestrator just gives the error.
Can anyone help with this?
Thank you
RuiHi,
You're going to have to use Get-AzureVM to get your specific VM object and then pipe it into Add-AzureDataDisk. See the examples here:
http://msdn.microsoft.com/en-us/library/windowsazure/dn495298.aspx
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing) -
Add-AzureDataDisk fails due to -VM being a System.String type entry.
Here are the syntax and resulting error message
Add-AzureDataDisk-CreateNew-MediaLocation"cqrtuswsamgmt01"-HostCachingNone-VM"cqrtuswvmcamq01"-DiskSizeInGB100-LUN2-DiskLabel"cqrtuswvmcamq01-bb02"
Add-AzureDataDisk : Cannot bind parameter 'VM'. Cannot convert the ""cqrtuswvmcamq01"" value
of type "System.String" to type
"Microsoft.WindowsAzure.Commands.ServiceManagement.Model.IPersistentVM".
At line:3 char:5
+ Add-AzureDataDisk -CreateNew -MediaLocation "cqrtuswsamgmt01" -HostCaching N ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Add-AzureDataDisk], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.AddAzureDataDiskCommandHi all,
I found the solution to this problem. Not surprisingly, I was using the wrong syntax. Here is the proper syntax for adding a data disk to a VM using Add-AzureDataDisk.
Get-AzureVM"Service"-Name"Servername"|Add-AzureDataDisk-CreateNew-DiskSizeInGB100-DiskLabel"DiskLabel"-MediaLocation"https://yourstorage.blob.core.windows.net/yourcontainer/yourblob.vhd"
-LUN 0 | Update-AzureVM
Example: Get-AzureVM"cqrtuswcswsod01"-Name"cqrtuswvmwsod01"|Add-AzureDataDisk-CreateNew-DiskSizeInGB100-DiskLabel"cqrtuswvmwsod01-bb01"-MediaLocation"https://cqrtuswsamgmt01.blob.core.windows.net/vhds/cqrtuswvmwsod01-bb01.vhd"-LUN0|Update-AzureVM
Volsung51 -
So for my A2 studies I have to make an interactive product using flash. Long story short, I needed to make a flash gallery. I am using the "Zen Gallery Flash Component" and this is my code;
galleryInstance.albums=[ { imagesFolder:"N:\ICT\ICT Unit 10\Prototype 3\images", icon:"4.jpg", items: [ {source:"1.jpg"}, {source:"2.png"}, {source:"3.jpg"}, {source:"4.jpg"}, {source:"5.jpg"} ] }, { imagesFolder:"N:\ICT\ICT Unit 10\Prototype 3\images", icon:"8.jpg", items: [ {source:"6.png"}, {source:"7.jpg"}, {source:"8.jpg"}, {source:"9.jpg"}, {source:"10.jpg"} ] } ]; galleryInstance.build();
The user manual does not specify any more coding is needed (I read all the relevant parts and couldn't find anything). The problem is that my images do not show but when exporting the flash product, the gallery is fully functionon - it seems that it cannot locate my images.
In addition to this, I get multiple Output Errors;
TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::IOErrorEvent@2d09a709 to Error. TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::IOErrorEvent@2d09a709 to Error. TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::IOErrorEvent@2d09a709 to Error.etc..
What am I doing wrong?I'm not sure, the gallery just appeares to be an SWF.
This is all that came up when I clicked it (I had a look at the parameters and they don't seem to help in the addition of pictures).
There appears to be no forum for this flash component :L -
Cannot implicitly convert type 'System.Data.SqlClient.SqlDataReader' to 'Microsoft.ReportingServices.DataProcessing.IDataReader'. An explicit conversion exists (are you missing a cast?)
I am getting the above error in c#. Please help me. Thanks in advance
public IDataReader ExecuteReader(CommandBehavior behavior)
string query = "select * from Sales.Store";
SqlConnection readerconn = new SqlConnection("Data Source=localhost;Initial Catalog=AdventureWorks2000;Integrated Security=SSPI");
SqlCommand readercmd = new SqlCommand(query);
try
readerconn.Open();
readercmd = readerconn.CreateCommand();
readercmd.CommandText = query;
readercmd.CommandType = System.Data.CommandType.Text;
SqlDataReader TestReader = readercmd.ExecuteReader();
return TestReader; //Getting error at this line
readerconn.Close();
catch (Exception e)
throw new Exception(e.Message);Hi,
Please firstly take a look at the documentation:
IDbCommand.ExecuteReader
Method
Users do not create an instance of a
DataReader class directly. Instead, they obtain the
DataReader through the
ExecuteReader method of the Command object. Therefore, you should mark
DataReader constructors as internal.
You need to use this method to get the IDataReader object, all the IDbCommand and IDataReader are in the Microsoft.ReportingServices.DataProcessing namespace. There's another IDataReader object which is in System.Data namespace, but they're actually two different
objects, that's why you got the exception.
For how to properly implement this Microsoft.ReportingServices.DataProcessing.IDataReader, please check this documentation:
Implementing a DataReader Class for a Data Processing Extension
It also provides code samples there.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Duplicate schema System.String in BizTalk.System
Hello,
In BizTalk 2010 Administration Console, in BizTalk.System application, I have the schema System.String#string twice (Version=2.0.0.0 and Version=4.0.0.0).
And I'm pretty sure that's what cause me this error in my orchestration :
There was a failure executing the send pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLTransmit, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "XML assembler" Send Port:
"SndPortAck_DemandeExplOM" URI: "F:\BiztalkMessagesFolders\Test\OutputExplOM\ExplOM_%MessageID%.xml" Reason: This Assembler cannot retrieve a document specification using this type: "string".
It's a new server installed last week. In my other environment I only have System.String Version=4.0.0.0.
Do youk now how to remove the Version=2.0.0.0 ?
ThanksHi,
Thanks for all your replies.
@la Cour
Yes I'm using XmlTransmit, but it shouldn't be problem
@Leonid
Yes ! That's really strange !
I don't have .Net Framework installed on any of these 2 servers. But I do have .Net Framework features 3.5.1 installed on both servers ... I thought it was required, can I remove it safely ?
@David
No I don't have any assembly with the same PublicKeyToken
Here are System.String schemas
V2
<?xml
version="1.0" encoding="utf-16" ?>
- <xs:schema elementFormDefault="qualified"
version="mscorlib_x002C__x0020_Version_x003D_2.0.0.0_x002C__x0020_Culture_x003D_neutral_x002C__x0020_PublicKeyToken_x003D_b77a5c561934e089" id="System.String"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element
name="string" nillable="true"
type="xs:string" />
</xs:schema>
V4
<?xml
version="1.0" encoding="utf-16" ?>
- <xs:schema elementFormDefault="qualified"
version="mscorlib_x002C__x0020_Version_x003D_4.0.0.0_x002C__x0020_Culture_x003D_neutral_x002C__x0020_PublicKeyToken_x003D_b77a5c561934e089" id="System.String"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element
name="string" nillable="true"
type="xs:string" />
</xs:schema>
My message (on a send port FILE)
<?xml version="1.0"?>
<string>Demande Traitee.</string> -
Deployment from 11g to 10g connection string cannot get provider error.
Hi, I'm doing a deployment from oracle client 11g to 10g. Is this possible? there are yes and no answer I have try out from the forum. All did not workout with any of the configuration setup.
For development I am using VS2012, MVC 4. EF 4. Oracle 11g
The server is currently running Oracle 10g with Oracle.Dataaccess.dll 10.2.0.100
This is my connection string setup at the server.
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</configSections>
<connectionStrings>
<add name="OraAspNetConnectionString" connectionString="Data Source=dtsr;User Id=ids;Password=pwd;" providerName="Oracle.DataAccess.Client"/>
<add name="OraAspNetConnectionString2" connectionString="Data Source=dtsr;User Id=ids;Password=pwd;" providerName="Oracle.DataAccess.Client.OracleConnection"/>
</connectionStrings>
<!--<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>-->
<appSettings>
<add key="webpages:Version" value="2.0.0.0"/>
<add key="webpages:Enabled" value="false"/>
<add key="PreserveLoginUrl" value="true"/>
<add key="ClientValidationEnabled" value="true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="true"/>
</appSettings>
<system.data>
<DbProviderFactories>
<add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory,Oracle.DataAccess,Version=4.112.3.0,Culture=neutral,PublicKeyToken=89b483f429c47342" />
</DbProviderFactories>
</system.data>
<system.web>
<compilation targetFramework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<httpRuntime/>
<authentication mode="Windows"/>
<identity impersonate="true"/>
<pages controlRenderingCompatibilityVersion="4.0">
<namespaces>
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Optimization"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
</namespaces>
</pages>
<sessionState mode="InProc" timeout="20" cookieless="false"/>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
<security>
<authorization>
<add accessType="Allow" users="?"/>
</authorization>
</security>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="2.0.0.0"/>
</dependentAssembly>
<!--<dependentAssembly>
<assemblyIdentity name="Oracle.DataAccess, Version=10.2.0.100, Culture=Neutral," publicKeyToken="89b483f429c47342" />
<bindingRedirect oldVersion="10.2.0.100" newVersion="4.112.3.0"/>
<publisherPolicy apply="no" />
</dependentAssembly>-->
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/>
</entityFramework>
</configuration>
I get this error when page trying to connect to database.
[ProviderIncompatibleException: An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct.]
System.Data.Entity.ModelConfiguration.Utilities.DbProviderServicesExtensions.GetProviderManifestTokenChecked(DbProviderServices providerServices, DbConnection connection) +163
System.Data.Entity.ModelConfiguration.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest) +39
System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection) +46
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +62
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +117
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +453
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +56
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +37
I have check the
1. Enviroment Variables path is set to the 10.../client_1/
2. Tnsname.ora already configured.
3. machine.config did not define the connection string path, as it is define in the web.config
4. Oracle.Dataaccess.dll is in the bin of my application website (v4.112.3.0).
5. In my application web bin folder also include additional dlll.
mfc71.dll
msvcr71.dll
oci.dll
ociw32.dll
orannzsbb11.dll
oraocci11.dll
oraociicus11.dll
OraOps11w.dll
Anyone please help.. Thanks in advance..
Edited by: 976886 on Dec 13, 2012 7:46 PM976886 wrote:
I want to know, it is possible to migrate the application from oracle 11g to 10g? such that the component are supported across?
Because in the development, all goes well, no error on the oracle connection.
OR did I miss out anything that causes it not working on my server deployment?yes
yes
yes
how can we reproduce what you claim? -
Hello experts,
I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
while (allFiles.Contains(tempFileName ))
tempFileName = String.Format("{0} ({1})", fileName, count++);
output = Path.Combine(folderPath, tempFileName );
string fullPath=output + ".xml";
However, it gives the following compilation errors
for the Select and Contain methods respectively.:
'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
(are you missing a using directive or an assembly reference?)
'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
found (are you missing a using directive or an assembly reference?)
I googled on these errors, and people suggested to add using System.Linq;
I did, but the errors persist.
Any help and information is greatly appreciated.
P. S. Here are the using clauses I have:
using System;
using System.Data;
using System.Windows.Forms;
using System.IO;
using System.Collections.Generic;
using System.Text;
using System.Linq;Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace consAppFileManipulation
class Program
static void Main(string[] args)
string fullPath = @"c:\temp\trace.log";
string folderPath = @"c:\temp\";
string fileName = "trace.log";
string output = "";
string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
string extension = Path.GetExtension(fullPath);
string path = Path.GetDirectoryName(fullPath);
string newFullPath = fullPath;
string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
string tempFileName = fileName;
int count = 1;
//THIS IS AN INFINITE LOOP
while (allFiles.Contains(fileNameOnly))
tempFileName = String.Format("{0} ({1})", fileName, count++);
//THIS CODE IS NEVER REACHED
output = Path.Combine(folderPath, tempFileName);
fullPath = output + ".xml";
//string fullPath = output + ".xml";
UML, then code -
BAdI error : type of EXIT_REF1 cannot be converted to the type of EXIT_REF
Hi all,
The below was the posted earlier for BAdI. Ihave followed all the steps. And i have written the below code. Syntactically it is not showing any errors, but when i am activating i am getting error
like " The type of EXIT_REF1 cannot be converted to the type of EXIT_REF". where i am doing the mistake..??
1) execute Tcode SE18.
2) Specify a definition Name : ZBADI_SPFLI
3) Press create
4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
multiple use.
5) Choose the interface tab
6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
7) Dbl clk on interface name to start class builder . specify a method name (name,
level, desc).
Method level desc
Linese;ection instance methos some desc
8) place the cursor on the method name desc its parameters to define the interface.
Parameter type refe field desc
I_carrid import spfli-carrid some
I_connid import spefi-connid some
9) save , check and activate adapter class proposed by system is
ZCL_IM_IM_LINESEL is genereated.
IMPLEMENTATION OF BADI DEFINITION
1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
2) Specify aname for implementation ZIM_LINESEL
3) Specify short desc.
4) Choose interface tab. System proposes a name fo the implementation class.
ZCL_IM_IMLINESEL which is already generarted.
5) Specify short desc for method
6) Dbl clk on method to insert code..(check the code in AAA).
7) Save , check and activate the code.
REPORT ZBADI_TEST .
tables: spfli.
data: wa_spfli type spfli,
it_spfli type table of spfli with key carrid connid.
*Initialise the object of the interface.
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
selection-screen begin of block b1.
select-options: s_carr for spfli-carrid.
selection-screen end of block b1.
start-of-selection.
select * from spfli into corresponding fields of table it_spfli
where carrid in s_carr.
end-of-selection.
loop at it_spfli into wa_spfli.
write:/ wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-cityfrom,
wa_spfli-deptime,
wa_spfli-arrtime.
hide: wa_spfli-carrid, wa_spfli-connid.
endloop.
at line-selection.
check not wa_spfli-carrid is initial.
create object exit_ref.
exit_ref1 = exit_ref. "" The type of EXIT_REF1 cannot be converted to the type of EXIT_REF"
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
Thanks in advance
krupali.Hi,
Both are of different types
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
Assiging one type another type is not allowed.
Rhea. -
Problem in using a structure with a field of data type 'RAW STRING'
Friends
I have written a ZBAPI that imports a structure which has 5 fields. I have defined this in the IMPORT tab of Tr.Code <SE37>. One of the field of this structure is of data type 'RAW STRING'.
When I try to activate this BAPI, I get an error message as follows:
Function Module ZBAPI_ADD_CONFIG_DNA
"ZDAMPER_CON_DNA" Must be a flat structure. You cannot use internal table
strings, references, or structures as components.
Where ZDAMPER_CON_DNA is the table name that I am using.
FOR TESTING PURPOSE, WHEN I CHANGE THE DATA TYPE FROM 'RAW STRING' TO JUST A CHAR OF LENGHT 5, IT WORKS FINE.
Here is the source code of the simple BAPI that i am trying to activate.
FUNCTION ZBAPI_ADD_CONFIG_DNA.
""Local Interface:
*" IMPORTING
*" VALUE(CONFIG_DNA_DATA) TYPE ZCONFIG_DNA_STRUCTURE
*" EXPORTING
*" VALUE(MESSAGE) TYPE ZRETURNMESSAGE
tables: ZDAMPER_CON_DNA.
ZDAMPER_CON_DNA-CONFIG_ID = CONFIG_DNA_DATA-CONFIG_ID.
ZDAMPER_CON_DNA-STRING_NAME = CONFIG_DNA_DATA-STRING_NAME.
ZDAMPER_CON_DNA-STRING_FORMAT = CONFIG_DNA_DATA-STRING_FORMAT.
ZDAMPER_CON_DNA-STRING_VALUE = CONFIG_DNA_DATA-STRING_VALUE.
ZDAMPER_CON_DNA-OBJECT_NAME = CONFIG_DNA_DATA-OBJECT_NAME.
INSERT ZDAMPER_CON_DNA.
MESSAGE-SUBRC = sy-subrc.
if sy-subrc = 0.
MESSAGE-RETURNMESSAGE = 'SuccessfullyInserted'.
else.
MESSAGE-RETURNMESSAGE = 'Insert Failed'.
endif.
=============
ANY KIND OF FEED BACK WILL BE HIGHLY APPRECIATED.
THANKS
RAMHi ram,
there is no data element exists with the name RAW STRING ,
but check one of these names..
Data element Short text
C2S_RAWSTRING C2-Server: Data Element of Type Rawstring
N2_RAWSTRING Byte String of Variable Length
QISRDRAW_STRING Data in Format RAW Character String
RCF_RAWSTRING Rawstring
RPAP_TEMPLATE_RAWSTRING Blob of Template File
RSRAWSTRING Raw String
RSRD_RAWSTRING Binary Content in the Broadcasting Framework
SWH_RAWSTRING Workflow: Data Type RAWSTRING
WDR_RAWSTRING Byte Sequence of Variable Length
<REMOVED BY MODERATOR>
venkat.
Edited by: Alvaro Tejada Galindo on Mar 7, 2008 5:15 PM -
Xsi:type information is missing after Marshalling in JAXB
Hi,
I'm trying to mock the webservice, i have created classes for schema using JAXB (without any customization) and it's working. But when i try to marhsall my objects , it doesn't generate the xsi:type information of any element and attribute. I want this information since my webservice client needs this information.
I have tried to use mapSimpleTypeDef ="true" generateElementProperty="false" but it doesn�t help.
Following is output of marshal process
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessageRetrieveResponseReturn xmlns:java="java:types.api.brokerapi.soap.mms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<return>
<APIVersion>1.0</APIVersion>
<ErrorCode>1000</ErrorCode>
<ErrorInfo> Success</ErrorInfo>
<BillingInfo xsi:type="java:BillingInfoObject" xsi:nil="true"/>
<HeaderInfo xsi:type="java:HeaderInfoType" xsi:nil="true"/>
<Content xsi:type="java:MessageContentType" xsi:nil="true"/>
</return>
</MessageRetrieveResponseReturn>
I want output to be look like following
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessageRetrieveResponseReturn xmlns:java="java:types.api.brokerapi.soap.mms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<return xsi:type="java:MessageRetrieveResponse" >
<APIVersion xsi:type="java:apiVersionType">1.0</APIVersion>
<ErrorCode xsi:type="xsd:string">1000</ErrorCode>
<ErrorInfo xsi:type="xsd:string">Success</ErrorInfo>
<BillingInfo xsi:type="java:BillingInfoObject" xsi:nil="true"/>
<HeaderInfo xsi:type="java:HeaderInfoType" xsi:nil="true"/>
<Content xsi:type="java:MessageContentType" xsi:nil="true"/>
</return>
</MessageRetrieveResponseReturn>
I'm new to JAXB. Please let me know what I�m missing here
RegardsNot got a single answer , surprise whether the question is too dumb to ask or JAXB doesn't support feature or my requirement is weird :-) ... in any case let me know please
regards -
Parameter LOG_ARCHIVE_DEST destination string cannot be translated
Hi,
After change in spfile and restart to mount mode, I got the error. (System is RH EL4.0 Oracle 10g)
SQL> startup mount
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORA-16032: parameter LOG_ARCHIVE_DEST destination string cannot be translated
ORA-07286: sksagdi: cannot obtain device information.
Linux Error: 13: Permission denied
Another try from pfile which was in sync with spfile, I got
SQL> startup pfile=/u01/app/oracle/product/10.1.0/Db_1/dbs/initorcl.ora
ORA-32006: LOG_ARCHIVE_START initialization parameter has been deprecated
ORA-16032: parameter LOG_ARCHIVE_DEST destination string cannot be translated
ORA-07286: sksagdi: cannot obtain device information.
Linux Error: 13: Permission denied
In the init.ora file, the parameters looks OK. And I can cd to the location from unix console. What can be wrong?
*.log_archive_dest='/home/oracle/backup'
*.log_archive_format='arch_%t_%s_%r.arc'
*.log_archive_start=TRUE
The 3 commands I've issued before shutdown are:
SQL> alter system set log_archive_format='arch_%t_%s_%r.arc' scope=spfile;
System altered.
SQL> alter system set log_archive_dest='/home/oracle/backup' scope=spfile;
System altered.
SQL> alter system set log_archive_start=true scope=spfile;
System altered.
SQL> create pfile from spfile;
File created.Linux Error: 13: Permission deniedWhat user is owner of the oracle processes?
If it is oracle:dba then check whether /home/oracle/ and /home/oracle/backup is have appropriate ownership and rights
Maybe you are looking for
-
How to repaint a JPanel in bouncing balls game?
I want to repaint the canvas panel in this bouncing balls game, but i do something wrong i don't know what, and the JPanel doesn't repaint? The first class defines a BALL as a THREAD If anyone knows how to correct the code please to write.... package
-
Trackpoint + dragging is still not working with the Ultranav middle button as of 16.2.19.2 driver. It's an extremely important function for any 3D graphics program. With the Lenovo driver it's not possible to use the middle button + trackpoint to nav
-
Create file excel in background
Hi, I have need to create a excel file from itab when lunch report in background (sm36). I utilized GUI_DOWNLOAD but I have error code page... Help me please..... Thanks!!
-
DBMS_LOB.WRITEAPPEND Max buffer size exceeded
Hello, I'm following this guide to create an index using Oracle Text: http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/cdatadic.htm#i1006810 So I wrote something like this: CREATE OR REPLACE PROCEDURE CREATE_INDEX(rid IN ROWID, tlob IN OU
-
NullPointerException during export or validate of toplink map file
Hi, I'm working on an Oracle/Toplink 10.1.3 project (similar to say SR Demo). I'm trying to write ant scripts to build and deploy everything. All is working except for one step. When you build the model in JDeveloper, it creates a data map XML file.