Creation of DTO object from Azure SDK 2.4 CreateQuery

HI,
I looking generic approach for performing Server side project and resolve with Entity Resolve class Method. Does any1 has good example for converting Azure Table Instance (Object) to DTO object.
For example to implement DTO object in Azure SDK 2.4 Table Storage. I saw some sample like Resolve(EntityAdapter.AdapterResolver> but looks like conversion happen on Client not on server side. Table Service pulls all the properties of an entity to client
side and filers required properties @ client. I'm looking for generic approach where I get entity with only required properties from server side projections i.e send only required properties to client this will reduce load, since less payload.
When i try to use TableQuery<DynamicTableEntity>().where (<Predicate>)
where Predicate is expected in format FUNC<T,Bool> where T is of type DynamicTableEnitty. But i cant pass of type DynamicTableEntity,can we pass instead of DynamicTableEntity with ITableEntity .
Mahender

Hi,
>>I'm looking for generic approach where I get entity with only required properties from server side projections
As far as I know, If we want to get the entity with required properties, we could consider use SelectColumns Property, refer to
http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.storage.table.tablequery.selectcolumns.aspx for more details, the code below may give you some tips.
TableQuery<CustomerEntity> tquery = new TableQuery<CustomerEntity>();
List<string> cloumns = new List<string>();
cloumns.Add("PhoneNumber");
tquery.SelectColumns = cloumns;
var result = cloudTable.ExecuteQuery(tquery);
Best Regards,
Jambor
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.

Similar Messages

  • How do I improve performance while doing pull, push and delete from Azure Storage Queue

           
    Hi,
    I am working on a distributed application with Azure Storage Queue for message queuing. queue will be used by multiple clients across the clock and thus it is expected that it would be heavily loaded most on the time in usage. business case is typical as in
    it pulls message from queue, process the message then deletes the message from queue. this module also sends back a notification to user indicating process is complete. functions/modules work fine as in they meet the logical requirement. pretty typical queue
    scenario.
    Now, coming to the problem statement. since it is envisaged that the queue would be heavily loaded most of the time, I am pushing towards to speed up processing of the overall message lifetime. the faster I can clear messages, the better overall experience
    it would be for everyone, system and users.
    To improve on performance I did multiple cycles for performance profiling and then improving on the identified "HOT" path/function.
    It all came down to a point where only the Azure Queue pull and delete are the only two most time consuming calls outside. I can further improve on pull, which i did by batch pulling 32 message at a time (which is the max message count i can pull from Azure
    queue at once at the time of writing this question.), this returned me a favor as in by reducing processing time to a big margin. all good till this as well.
    i am processing these messages in parallel so as to improve on overall performance.
    pseudo code:
    //AzureQueue Class is encapsulating calls to Azure Storage Queue.
    //assume nothing fancy inside, vanila calls to queue for pull/push/delete
    var batchMessages = AzureQueue.Pull(32); Parallel.ForEach(batchMessages, bMessage =>
    //DoSomething does some background processing;
    try{DoSomething(bMessage);}
    catch()
    //Log exception
    AzureQueue.Delete(bMessage);
    With this change now, profiling results show that up-to 90% of time is only taken by the Azure Message delete calls. As it is good to delete message as soon as processing is done, i remove it just after "DoSomething" is finished.
    what i need now is suggestions on how to further improve performance of this function when 90% of the time is being eaten up by the Azure Queue Delete call itself? is there a better faster way to perform delete/bulk delete etc?
    with the implementation mentioned here, i get speed of close to 25 messages/sec. Right now Azure queue delete calls are choking application performance. so is there any hope to push it further.
    Does it also makes difference in performance which queue delete call am making? as of now queue has overloaded method for deleting message, one which except message object and another which accepts message identifier and pop receipt. i am using the later
    one here with message identifier nad pop receipt to delete message from queue.
    Let me know if you need any additional information or any clarification in question.
    Inputs/suggestions are welcome.
    Many thanks.

    The first thing that came to mind was to use a parallel delete at the same time you run the work in DoSomething.  If DoSomething fails, add the message back into the queue.  This won't work for every application, and work that was in the queue
    near the head could be pushed back to the tail, so you'd have to think about how that may effect your workload.
    Or, make a threadpool queued delete after the work was successful.  Fire and forget.  However, if you're loading the processing at 25/sec, and 90% of time sits on the delete, you'd quickly accumulate delete calls for the threadpool until you'd
    never catch up.  At 70-80% duty cycle this may work, but the closer you get to always being busy could make this dangerous.
    I wonder if calling the delete REST API yourself may offer any improvements.  If you find the delete sets up a TCP connection each time, this may be all you need.  Try to keep the connection open, or see if the REST API can delete more at a time
    than the SDK API can.
    Or, if you have the funds, just have more VM instances doing the work in parallel, so the first machine handles 25/sec, the second at 25/sec also - and you just live with the slow delete.  If that's still not good enough, add more instances.
    Darin R.

  • How to Install Azure SDK on Azure automation

    i have a powershell script that connect to storage table and read the data from a Table.  which works fine on the local where Azure SDK 2.1 is installed.
    While i add it as part of Azure automation i get an error as not able to resolve "Microsoft.WindowsAzure" this is because we donot have Azure SDK on the machine where this
    runbook of azure automation is running.
    IS there any option to enable/install  Azure SDK on the machine where runbook executes?
    Is there any alternate option to upload required assemblies as part of setting so that runbook could use while executing. 
    below is the sample power shell script to connect to storage table.
    [string]$storageAccountName ='xxxxx'
    [string]$storageAccountKey =’xxxxxxx'
    $accountCredentials = New-Object Microsoft.WindowsAzure.Storage.Auth.StorageCredentials $storageAccountName, #Create instance of CloudStorageAccount object
    $storageAccount = New-Object "Microsoft.WindowsAzure.Storage.CloudStorageAccount" $accountCredentials, $true
    #Create table client
    $tableClient = $storageAccount.CreateCloudTableClient()

    This is not a scripting question.  You need to ask this in the Azure forum.
    Jut adding a bit of script to your question does not make it a script issue.  Yu need to as the Azure techs how to install and manage the Azure platform.  They will give you links to the docs you need to learn how to deploy Azure.
    The SDK can be downloaded from Microsoft.
    ¯\_(ツ)_/¯

  • Diagnostics not working in web role for Azure SDK 2.5.1

    I am working with Azure SDK 2.5.1, mainly on the new designed diagnostics stuffs. However, I found I cannot get it run for my web role.
    So, I created a cloud service project, added a web role. Then, I appended one Trace message at the end of Application_Start in Global.asax.cs:
    Trace.TraceInformaction("Application_Start end.");
    After that, I right clicked the WebRole and opened the Properties tab.
    In the diagnostics config window:
    General: I choose 'Custom
    plan', also specified the storage account, keep the 'Disk
    Quota in MB' as default '4096'
    Application Logs: 'Log
    level' switch to 'All',
    others kept as default
    Other tabs are in default config settings
    After I deployed the project to cloud, I found some unexpected things:
    There is no WADLogsTable exists
    in Table storage. That's very strange, if I use a Worker Role, it would work as expected. So in web role, I just cannot find the Trace logging?
    For the performance counters, since I am using the default config with 8 counters, I can only see 8 in WADPerformanceCountersTable table
    storage. In my assumption, over time, there would be more and more values of this 8 counters transferred to this table. But it was just not happened, after several hours, it still had that 8 counter values.
    I just thought the diagnostics for Web Role just crashed or not working at all. Meanwhile, I checked the logs located at "C:\Logs\Plugins\Microsoft.Azure.Diagnostics.PaaSDiagnostics\1.4.0.0\DiagnosticsPlugin.log" in
    server, at the end of this file there is an exception said some diagnostics process exit:
    DiagnosticsPlugin.exe Error: 0 : [4/25/2015 5:38:21 AM] System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at Microsoft.Azure.Plugins.Diagnostics.dll.PluginConfigurationSettingsProvider.LoadWadXMLConfig(String fullConfig)
    DiagnosticsPlugin.exe Error: 0 : [4/25/2015 5:38:21 AM] Failed to load configuration file
    DiagnosticsPlugin.exe Information: 0 : [4/25/2015 5:38:21 AM] DiagnosticPlugin.exe exit with code -105
    From MSDN,
    the code -105 means:
    The Diagnostics plugin cannot open the Diagnostics configuration file.
    This is an internal error that should only happen if the Diagnostics plugin is manually invoked, incorrectly, on the VM.
    It doesn't make sense, I did nothing to the VM.
    As I said above, I just did very tiny changes to the scaffold code generated by Visual Studio 2013. Did I do something wrong or it's a bug for Azure SDK 2.5?
    By the way, it seems everything is ok for Worker Role.

    Hi,
      This issue could be an internal issue, I do not have any update on this as of now. There was a similar issue due to a regression last month that has been resolved, however i dont think this issue is related.
      Please follow the below article on how to enable Diagnostics and let us know if it works.
    http://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/
      I will let you know if I have any update on this issue from my side.
    Regards,
    Nithin Rathnakar.

  • Unable to run project on upgrading to azure sdk 2.3 while using cache

    We upgraded azure sdk from 1.8 to 2.3 and we are unable to run our project.
    following is the error.
    Attempt by method 'Microsoft.Web.DistributedCache.DataCacheFactoryWrapper.CreateDataCacheFactoryConfiguration(System.String)' to access method 'Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration..ctor(System.String)' failed.
    However if we comment out the following lines of code in web.config we are able to run the project.
    <sessionState mode="Custom" customProvider="AFCacheSessionStateProvider">
    <providers>
    <add name="AFCacheSessionStateProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="AppName" dataCacheClientName="default" applicationName="AFCacheSessionState"/>
    </providers>
    </sessionState>
    Below is the screen shot of error :

    Hi Jambor,
    Thanks for the reply.
    We have no other sessionState caching configured other than this one in WebRole.
    So, in webrole we.config, we have:
    <section name="dataCacheClients" type="Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core" allowLocation="true" allowDefinition="Everywhere" />
    <section name="cacheDiagnostics" type="Microsoft.ApplicationServer.Caching.AzureCommon.DiagnosticsConfigurationSection, Microsoft.ApplicationServer.Caching.AzureCommon" allowLocation="true" allowDefinition="Everywhere" />
    <sessionState mode="Custom" customProvider="AFCacheSessionStateProvider">
    <providers>
    <add name="AFCacheSessionStateProvider" type="Microsoft.Web.DistributedCache.DistributedCacheSessionStateStoreProvider, Microsoft.Web.DistributedCache" cacheName="AppName" dataCacheClientName="default" applicationName="AFCacheSessionState"/>
    </providers>
    </sessionState>
    <dataCacheClients>
    <dataCacheClient name="default">
    <!--To use the in-role flavor of Windows Azure Cache, set identifier to be the cache cluster role name -->
    <!--To use the Windows Azure Cache Service, set identifier to be the endpoint of the cache cluster -->
    <autoDiscover isEnabled="true" identifier="appname.cache.windows.net" />
    <!--<localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />-->
    <!--Use this section to specify security settings for connecting to your cache. This section is not required if your cache is hosted on a role that is a part of your cloud service. -->
    <securityProperties mode="Message" sslEnabled="true">
    <messageSecurity authorizationInfo="{authInfo}" />
    </securityProperties>
    </dataCacheClient>
    </dataCacheClients>
    <cacheDiagnostics>
    <crashDump dumpLevel="Off" dumpStorageQuotaInMB="100" />
    </cacheDiagnostics>
    And here are the installers that are installed in our win7 system:
    Windows Azure Authoring Tools - v2.3
    Windows Azure Compute Emulator - v2.3
    Windows Azure Libraries for .NET - v2.3
    Windows Azure Storage Emulator - v2.3
    Windows Azure Storage Tools - v2.2.2
    Windows Azure Tools for Microsoft LightSwitch for Visual Studio 2012 - October 2012
    Windows Azure Tools for Microsoft Visual Studio 2012 - v2.3
    EDIT: Tried with
    Windows Azure Tools for Microsoft LightSwitch for Visual Studio 2013 - v2.3
    But no luck.
    Please let us know if we are missing something.
    Thanks,
    - Sovan
    sovan kumar das

  • Unable to open a report from Java SDK

    Hi,
    I am trying to open a report from the SDK in a java application. Here is the code :
    package com.metrixware.test;
    import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
    import com.crystaldecisions.sdk.occa.report.application.ReportAppSession;
    import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKException;
    public class MyBoTest {
    @param args
         public static void main(String[] args) {
             ReportClientDocument myDoc = new ReportClientDocument();
             try {
                  ReportAppSession sess = new ReportAppSession();
                  sess.setReportAppServer("AGIRC-DEMO");
                  sess.initialize();
                  myDoc.setReportAppSession(sess);
                   myDoc.open("rassdk://D:/Document8.rep",OpenReportOptions._openAsReadOnly);
                   System.out.println("Titre du doc : "+myDoc.displayName());
              } catch (ReportSDKException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but i always get the following error stack (ReportSDKException) on the open method of the doc :
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Impossible de charger le rapport.---- Error code:-2147483123 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at com.metrixware.test.MyBoTest.main(MyBoTest.java:22)
    The document is at the right location on my local machine where my test is running. The RAS server is up and running on the CMS.
    Can you help me on this problem.
    Also i have another question. Can you tell me if i'll be able to read through this object the generated SQL select statement of the report.
    Thanks.
    Julien Pignatel

    try the following instead:
    ReportClientDocument myDoc = new ReportClientDocument();
    myDoc.setReportAppServer("AGIRC-DEMO");
    myDoc.open("rassdk://D:
    Document8.rpt",OpenReportOptions._openAsReadOnly);
    Also make sure that on RAS command you have added: -ipport "1566" -reportdirectory "D:/"
    Please note:
    1. Don't need to use ReportApSession class
    2. what do you use Document8.rep, you cannot open a Deski document with RAS. RAS can be used only with crystal reports.
    Hope that helps.
    Best Regards
    Aasavari

  • Cannot load shared 'project' in Windows Universal app after upgrading to Azure SDK 2.6

    I've just installed the
    April 2015 release of the Azure SDK. It is version 2.6 and previously I was on 2.5. Now one of my projects will not load. It is the shared project in a Windows Universal application.
    When I right-click the project and choose 'reload' I get the pop-up error 
    > The method or operation is not implemented
    The output window gives more detail:
    > Things.Shared.shproj : error  : The composition produced a single
    > composition error. The root cause is provided below. Review the
    > CompositionException.Errors property for more detailed information.

    > 1) No exports were found that match the constraint: 
    > ContractName
    Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService
    > RequiredTypeIdentity
    Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService

    > Resulting in: Cannot set import
    > 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.ProjectReferencesService
    > (ContractName="Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService")'
    > on part
    > 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService'.
    > Element:
    > Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.ProjectReferencesService
    > (ContractName="Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService")
    > -->  Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService

    > Resulting in: Cannot get export
    > 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.WireUp
    > (ContractName="Microsoft.VisualStudio.ProjectSystem.ConfiguredProject.AutoLoad")'
    > from part
    > 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService'.
    > Element:
    > Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.WireUp
    > (ContractName="Microsoft.VisualStudio.ProjectSystem.ConfiguredProject.AutoLoad")
    > -->  Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService
    The other parts to the Windows Universal app (the Windows 8.1 project and the Windows Phone 8.1 project) have two Azure NuGet packages installed: Windows Azure Mobile Services 1.3.2 and Windows Azure Storage 4.3.0. (N.B. Those two projects load without issue.)
    This is not a show stopper for me since uninstalling the Azure SDK 2.6 removes the load failure. To uninstall I go via the Control Panel to 'uninstall or change a program' and then uninstall Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.6
    I would like to know how to fix this without uninstalling the Azure SDK 4.6.

    Hi
    Have the same problem and waiting for an answer also.
    Code is like a box of chocolates!...

  • Windows Azure SDK 2.5.1 Not working

    Hi:
    I have installed 2.5.1 SDK for VS2013.  When I tried to run I was getting:
    Windows Azure Tools: Error: The installed Microsoft Azure Compute Emulator does not support the role binaries. Please install the latest Microsoft Azure Compute Emulator and try again.
    Windows Azure Tools: Warning: The role binaries in your package are using an older version of the Microsoft Azure SDK. Please consider upgrading.
    Windows Azure Tools: Error: The installed Microsoft Azure Compute Emulator does not support the role binaries. Please install the latest Microsoft Azure Compute Emulator and try again.
    Windows Azure Tools: Warning: The role binaries in your package are using an older version of the Microsoft Azure SDK. Please consider upgrading.
    Windows Azure Tools: Error: The installed Microsoft Azure Compute Emulator does not support the role binaries. Please install the latest Microsoft Azure Compute Emulator and try again.
    Windows Azure Tools: Warning: The role binaries in your package are using an older version of the Microsoft Azure SDK. Please consider upgrading.
    Windows Azure Tools: The system is missing a prerequisite to execute the service. Please see the release notes.
    The emulators were running at 2.5.  I was able to update references for WindowsAzure.Diagnostics and .ServiceRuntimes to a 2.5 version but no newer version andConfiguration and Storage dlls were evailable.  So I updated those packages with NuGet. 
    Now I have WindowsAzure.Configuration.dll version 3.0 and Storage.dll version 4.3.  I still get the above errors.
    Previous SDK upgrades where slam dunks, but I can't get this one working.  Can you help?
    I've included the WindowsAzure references from my web csproj file below in case more details are needed.
    Thanks in advance,
    Terry
    <Reference Include="Microsoft.WindowsAzure.Configuration, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.3.1.0\lib\net40\Microsoft.WindowsAzure.Configuration.dll</HintPath>
    </Reference>
    <Reference Include="Microsoft.WindowsAzure.Diagnostics, Version=2.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=2.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
    </Reference>
    TerryL

    Hi TerryL,
    I am moving your thread into the Cloud Services (Web and Worker Roles)
    Forum for dedicated support. Thanks for your understanding.
    Best Regards,
    Jack
    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.

  • Dynamic Creation of Entity Objects (ADF Business Components)

    Hi All,
    We have a requirement to create Entity Objects for the dynamically generated tables in our application and at the same time bind them to different views.
    Our product create multiple tables at runtime with some sort of naming convention, and we couldn't find a way in JDeveloper to generate entity objects for the tables created dynamically.
    Please provide some pointers if you have experienced or worked on similar requirement.
    Thanks,
    Nikhilesh

    Thanks for the help Sudipto.
    The link which you have shared, describes the creation of an entity object and then modify the operations like Delete Update and Insert etc to be performed on the entity object by creating IMPL classes and implementing certain interfaces.
    But I need to create Entity objects dynamically. My application creates new tables for some functionality at the run time and I have to create Entity objects for those new tables as soon as the new tables are created.
    I was just wondering if, there is any API available for creating the entity object from Java code instead of invoking the wizard in the Jdeveloper.

  • Creation of login object failed

    Hi all,
    I've got a problem with the mobile client development.
    We are using the mobile client for many years and we even develop a lot with it, but now i have a problem never seen.
    After extending a bDoc and start testing the application, after the generation and login, system states "Creation of login object failed".
    So i did a full generation. Result the same.
    I debugged the ValidateLogin class and found out, that in the following statement is failing
           BOLOGIN = BusinessRootObject.BusinessFactory.LoadBusinessObject("LOGIN", determineUser)
    BOLOGIN is Nothing at the end. I tried out to create the Object via        BOLOGIN = BusinessRootObject.BusinessFactory.CreateBusinessObject("LOGIN")
    same result. Next i tried to create the BOACTIVITY and it failed as well. One day before everything was fine, even with changing business documents.
    The error in the VB.ERR object says:
    -     err     {Microsoft.VisualBasic.ErrObject}     Microsoft.VisualBasic.ErrObject
         Description     "In der Methode BusinessFactoryCore.LoadBusinessObject ist eine System-Exception aufgetreten"     String
         Erl     0     Integer
         HelpContext     0     Integer
         HelpFile     ""     String
         LastDllError     3     Integer
         Number     5     Integer
         Source     "MTBLLFW"     String
    Can anybody please give a hint.
    We are using CRM 5.0 SP7 and MSA SP7 on MS 2003 Server with local repository. DB is SQL2000.
    Yesterday i was releasing a changelist and now its no longer working at all, what a mess.
    Thanks to all,
    Andreas Rose

    Hi Andreas,
    The problem may be incorrect or corrupt ARSREP.DAT file.
    The reason may be that the BDOCs are not synched from MAS. Once you sync this through MAS you will find the *.bdoc files at the location
    mentioned under the registry key HKLM\SOFTWARE\SAP\MSA\MW\TL\BDocPath
    Usually this would be default as C:\Program Files\SAP\Mobile\tpsfiles.
    After this when you generate the BusinessLibrary the Arsrep.dat file
    will have the *.bdocs incorporated in the Arsrep.dat file.
    Hope this helps.
    Regards, Gervase
    ps. For synching the BDocs refer to SAP Note 942942

  • Getting ORA-20001: Creation of new object is not allowed: !!

    Hi Am getting ORA-20001: Creation of new object is not allowed while enabling constraints after importing the dumps from source to target datbase,can anyone assist me to fix this issue.

    Hi Osama/Mustafa,Thanks for your quick response,can you please explain me the following things-
    1)As i don't have privilege to run the DBA_XX views,am not able to run those queries-
    SELECT OWNER, TRIGGER_NAME, TRIGGER_BODY FROM DBA_TRIGGERS WHERE TRIGGER_TYPE IN ('AFTER EVENT', 'BEFORE EVETN') AND TRIGGERING_EVENT LIKE '%CREATE%';
    can you tell me what output it'll throw,based on this output how will we fix the issue.
    2)SELECT * FROM dba_sys_privs WHERE privilege = 'UNLIMITED TABLESPACE';
    why we need to check this privilege?as i don't have privilege to run this one in my db.
    3)select * from dba_source where upper(text) like upper('%Creation of new object is not allowed%');
    as i don't have privilege to run this one in my db,already i got the object name from my logfile
    and more you have quoted"This is an error of someone that coded purposely on your database, probably dba or a developer who has privilege and again it is in a database event trigger"
    4)can you explain me much more deeper about the root cause and as already sent note to my DBA,can you explain me the solution to fix this issue ?

  • Error while Debugging MSA  'Creation of Login Object Failed'

    Dear Friends,
    I am working on CRM Mobile Sales 5.0 SP 5.
    I have setup my Mobile Client and Mobile Application Studion On the same machine.
    I have perform the initial generation of the application from Mobile Repository server to my machine.
    it gave me 6 errors and 12 warnings  and took about 4 hrs for generation.
    Now when i tried to debug the generated application,
    i get my login screen and once I enter username and password.
    Error popups up stating "Creation of login object failed".
    and then another error
    "Starting MPPFailed" (MPP is my project name).
    Please suggest me how should i go about to debug the application solving the above errors.
    Awaiting Reply,
    Best Regards,
    Pratik Patel

    Am not sure if you were able to resolve the issue but below are some points:
    a. I think the dlls sfabol and msa are not any more registerable, since they are more of VB.NET components and here assembly is registered and not the dll.
    b. For logging into the application just ensure that you have user id in table SMOUSER and the employee for that user in SMOMITABT table.
    c. If this is fine, then ensure that you have the latest BDOC metadata information on your laptop. I think in 5.0 also you need to use Clientconsole to download this information.
    d. If this is all okay, then try running SQL profiler and check if the query to the ides db is being executed by the framework. If the query is fired then it means application seems to behave properly but the query is not retrieving relevant details.
    For further details feel free to contact me..
    thanks,
    Piyush

  • Help with dynamic creation of class object names

    Hi all
    Wonder if you can help. I have a class player.java. I want to be able to create objects from this class depending on a int counter variable.
    So, for example,
    int counter = 1;
    Player p+counter = new Player ("Sam","Smith");the counter increments by 1 each time the method this sits within is called. The syntax for Player name creation is incorrect. What I am looking to create is Player p1, Player p2, Player p3.... depending on value of i.
    Basically I think this is just a question of syntax, but I can't quite get there.
    Please help if you can.
    Thanks.
    Sam

    here is the method:
    //add member
      public void addMember() {
        String output,firstName,secondName,address1,address2,phoneNumberAsString;
        long phoneNumber;
        boolean isMember=true;
        this.memberCounter++;
        Player temp;
        //create HashMap
        HashMap memberList = new HashMap();
        output="Squash Court Booking System \n";
        output=output+"Enter Details \n\n";
        firstName=askUser("Enter First Name: ");
        secondName=askUser("Enter Second Name: ");
        address1=askUser("Enter Street Name and Number: ");
        address2=askUser("Enter Town: ");
        phoneNumberAsString=askUser("Enter Phone Number: ");
        phoneNumber=Long.parseLong(phoneNumberAsString);
        Player p = new Player(firstName,secondName,address1,address2,phoneNumber,isMember);
        //place member into HashMap
        memberList.put(new Integer(memberCounter),p);
        //JOptionPane.showMessageDialog(null,"Membercounter="+memberCounter,"Test",JOptionPane.INFORMATION_MESSAGE);
        //create iterator
        Iterator members = memberList.values().iterator();
        //create output
        output="";
        while(members.hasNext()) {
          temp = (Player)members.next();
          output=output + temp.getFirstName() + " ";
          output=output + temp.getSecondName() + "\n";
          output=output + temp.getAddress1() + "\n";
          output=output + temp.getAddress2() + "\n";
          output= output + temp.getPhoneNumber() + "\n";
          output= output + temp.getIsMember();
        //display message
        JOptionPane.showMessageDialog(null,output,"Member Listings",JOptionPane.INFORMATION_MESSAGE);
      }//end addMemberOn running this, no matter how many details are input, the HashMap only gives me the first one back....
    Any ideas?
    Sam

  • Webi document prompts order from Java SDK does not refresh correctly?

    Hi
    I'm developping a standalone command-line Java program which will schedule a report with custom prompt values.
    I am having a problem with Webi prompts ordering acquired from the SDK.
    We are running BO XI R2 SP4 under Windows on Tomcat servers.
    Here is the problem:
    I have a Webi report called "Articles Racines" in a "Tests SDK" directory.
    This report uses two prompts named "Type Article :" and "Code Marque :" (in this order).
    Java SDK (code below) returns the right prompts in the right order.
    Now, in Infoview, I modify the report in order to change the order of the prompts (in the "Properties" tab) making "Code Marque :" the first and "Type Article :" the second one and save the changes.
    When I run the report, prompt order has changed but the prompts retrieved from the Java SDK are still in the old order.
    I noticed that if I update the name of both prompts, the prompts retrieved from the SDK now are in the right order (with the updated names).
    Am I doing something wrong? Is it a known issue?
    Thanks in advance.
    Guillaume
    PS : I am aware that "select *" are very bad but I am still in research stage of developpment.
    TestsScheduler.java:
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    import com.businessobjects.sdk.plugin.desktop.webi.IWebi;
    import com.businessobjects.sdk.plugin.desktop.webi.IWebiPrompt;
    import com.crystaldecisions.sdk.exception.SDKException;
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    import com.crystaldecisions.sdk.framework.IEnterpriseSession;
    import com.crystaldecisions.sdk.framework.ISessionMgr;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObject;
    import com.crystaldecisions.sdk.occa.infostore.IInfoObjects;
    import com.crystaldecisions.sdk.occa.infostore.IInfoStore;
    public class TestsScheduler {
         public static void main(String[] args) {
              String cms = "XXX";
              String username = "XXX";
              String password = "XXX";
              String authentification = "secEnterprise";
              String reportPath = "/Tests SDK/Liste des racines";
              try {
                   ISessionMgr sessionManager = CrystalEnterprise.getSessionMgr();
                   IInfoObjects objects;
                   // Connexion
                   System.out.println("Connexion à "+ username +"@"+ cms +" ("+ authentification +") en cours...");
                   IEnterpriseSession session = sessionManager.logon(username, password, cms, authentification);
                   System.out.println("Connecté à "+ session.getCMSName());
                   // Récupération de l'infoStore
                   IInfoStore infoStore = (IInfoStore) session.getService("InfoStore");
                   // Récupération des informations d'un report
                   StringTokenizer st = new StringTokenizer(reportPath, "/");
                   int reportID = 0; // Le dossier "Dossiers Publics" est la racine (/)
                   IInfoObjects infoObjects;
                   IInfoObject infoObject;
                   do {
                        String token = st.nextToken();
                        System.out.println("Recherche de l'objet '"+ token +"' en cours...");
                        infoObjects = infoStore.query("select * from CI_INFOOBJECTS where SI_NAME = '"+ token +"' and SI_PARENTID = '"+ reportID +"'");
                        if(infoObjects.size() != 1) {
                             throw new Error("Le dossier SI_ID='"+ reportID +"' possède "+ infoObjects.size() + " fils nommés '"+ token +"'.");
                        infoObject = (IInfoObject) infoObjects.get(0);
                        reportID = infoObject.getID();
                        System.out.println("Trouvé l'objet SI_ID='"+ reportID +"' nommé '"+ infoObject.getTitle() +"'.");
                   } while(st.hasMoreTokens());
                   if(infoObject instanceof IWebi) {
                        IWebi webi = (IWebi) infoObject;
                        List prompts = webi.getPrompts();
                        System.out.println("Le rapport Webi possède "+ prompts.size() +" invite(s).");
                        for(Iterator itPrompts = prompts.iterator(); itPrompts.hasNext();) {
                             IWebiPrompt prompt = (IWebiPrompt) itPrompts.next();
                             List values = prompt.getValues();
                             System.out.println("     L'invite '"+ prompt.getName() +"' possède "+ values.size() +"' valeur(s).");
                             for(Iterator itValues = values.iterator(); itValues.hasNext();) {
                                  Object value = itValues.next();
                                  System.out.println("          Valeur='"+ value +"'.");
                   // Déconnexion
                   System.out.println("Déconnexion en cours...");
                   session.logoff();
                   System.out.println("Déconnecté");
              } catch(SDKException e) {
                   throw new Error("Erreur lors de la connexion : "+ e.getMessage());
    Edited by: Guillaume L on Dec 10, 2008 3:22 PM

    Here's the reason why:
    Web Intelligence document prompting is handled properly if you open the doc using the ReportEngine Java (REBean) SDK.
    When you set prompts and schedule, you'd first open the doc using REBean, set the prompts, then copy over the prompt values you've set to the IWebi you're scheduling using the PromptsUtil.populateWebiPrompts(...,...) helper method.
    So the InfoObject IWebi doesn't know about the actual ordering of the prompts in the document itself - it's just receiving the prompts in order as it's fed from PromptsUtil.
    It's not recommended to assume that the IWebi.getPrompts() will return a non-empty collection.  The Web Intellligence document must be first opened in ReportEngine and the prompting values set using PromptsUtil to fill the collection.
    Sincerely,
    Ted Ueda

  • Error installing Azure SDK 2.2: An error occurred while parsing Entityname. Line 1031, position 71.

    I am setting up a new machine for windows azure development. I have VS 2013 Ultimate with Team Explorer on Windows 7 Enterprise.  When I launch the Web Installer for Azure SDK 2.2 I receive a dialog almost immediately with the message: 
    An error occurred while parsing EntityName. Line 1031, position 71.
    I ran the same installer on another machine with similar configuration of VS2013 and Win 7, and it doesn't display this dialog.
    Any help/guidance is appreciated.

    Hi,
    Based on your description, you install Azure SDK successful in a similar configuration machine, but it give "An error occurred while parsing EntityName. Line 1031, position 71" error in your target machine, from my research, this may be Microsoft
    server-side error, refer to
    http://stackoverflow.com/questions/14964634/wpi-4-5-error-after-upgrading fro more details. I would suggest you reinstall, if any further issue, please feel free to let e know.
    Best Regards
    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.

Maybe you are looking for

  • How do I transfer my itunes library from different mac user accounts?

    I was planning to make a new user account (not itunes) for myself on my mac since my other is completely screwed up, but if i do this i will lose my itunes account. How do i transfer my library from the old user account to the new one.

  • Require netpoint 5.9?

    could u tell me the link. where i find the net point  5.9 tool?

  • Setting flashvars in AS3 when testing movie

    Does anyone know how to set flashvars when running a movie in CS4 using Control->Test Movie?  Under ActionScript 2 I could just set _root.flashVar, what's the equivalent in AS3?

  • Eclipse and auto-completion

    Hi all, I'm experiencing a strange behavior with eclipse. If i type Ctrl+Space to allow auto code completion, eclipse hooks up, cpu goes to 100% and i can only force quit. Looking on google, it seems that is a xulrunner issue, they suggest to remove

  • Urgent Help - Criteria Based Set Help

    Hey all,      I maybe going crazy here but i cant seem to figure out the following set. What I need is to do is create a set for disabled accounts which would consists of the following all users of have expired which is based on a business rule that