ADF code is exposed to the customer !!!!!
Hello,
I have a problem but don't really know if anyone has a solution to it, here it is.
I'm developing a web application using ADF 11g and weblogic 10.3, my application is composed from multiple modules (sales, inventory, hr, etc.). I have customers that want only couple of modules (sales, inventory), so my application will be deployed to their private servers with oracle database and weblogic server, the problem is that when the application is deployed to their servers, my source codes are visible to them, I mean they can see the .jspx pages and edit them easily and that is a big problem I think, so is there anyway I can prevent them to edit the codes or I don't know what to think.
Thanks
Shahe
When you talk about source you mean the java files or the jspx files?
The java files normally don't end up in the war file, the jspx files must be in the war file. The jspx files are compiled when you deploy the application to the server. You app won't show up if they are not there.
You can check the deployment descriptor for the WAR file (in the project properties for the view controller project) and make sure the src path is not marked as contributor.
As I said before, the jspx files are only of limited interest as you see them when you run your app (compiled to html code). Why would your customer change them?
Timo
Similar Messages
-
ADF 11g How to create the custom FilterableQueryDescriptor for adf table
Can you please let me know on the following.
1. I am dispalying the adf table using a List from the managed bean
2. I wanted to filter the table using the filter model.
3. i wanted to create the sub class of FilterableQueryDescriptor which i can specify. Not finding enough information on how to create and add the information in the setFilterCriteria
Can you please provide some insight into this topciHello there
I have the same issue: chaging the background color of some column headers.
My application is using a custom skinning and when i had headerClass property with a custom class defined in a separate css file, the page generated specified first the class from the skinning and then my new class definition. But my skinning is specifying a background color so the color is not overriden. Any idea?
ADF code:
<link type="text/css" rel="stylesheet" href="../../css/pivot.css" id="myStyles"/>
<af:column headerText="#{level1.userObject.name}"
headerClass="inputHeader"
sortable="false" align="center" width="100"
id="col_level1" >
Generate HTML code:
<th align="center" class="xuh inputHeader" afrroot="true" rowspan="2" afrleaf="true" dindex="6" id="pt1:tableId:col_level1" style="">
<div class="x13t">AEKLF</div>
</th>
My CSS file:
.inputHeader{
background-color: Red;
background-image: none;
color: Black;
font-weight: bold;
Thanks for your help ! -
Can I use Partial class to enhance a typed dataset without losing the custom code?
Hi All,
I wanted to see if I could use a Partial class for one of the datatable classes to add custom code so that when the dataset is regenerated I don't lose my code.
Partial public
Class
WA_MMTP_TrackerDataSet1
'Code for dataset
Partial Public Class PATIENTSTableAdapter
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
Dim dd As System.Data.SqlClient.SqlCommand
dd = new System.Data.SqlClient.SqlCommand
dd.CommandText = Sql
dd.Connection = OpenConnection() ' UsersTableAdapter1.Connection
Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
If (Me.ClearBeforeFill = true) Then
dataTable.Clear
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
'Other code for datatable
end class
end class
I'd like to take the function FillbyClinicianId and put it in a separate partial class like so and remove the function by the same name from the original file (dataset file):
Partial Public Class PATIENTSTableAdapter
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
Dim dd As System.Data.SqlClient.SqlCommand
dd = new System.Data.SqlClient.SqlCommand
dd.CommandText = Sql
dd.Connection = OpenConnection() ' UsersTableAdapter1.Connection
Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
If (Me.ClearBeforeFill = true) Then
dataTable.Clear
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
end class
But when I try this, the compiler gives the following errors:
Error 91 'Adapter' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'.
Error 92 'ClearBeforeFill' is not a member of 'AttendTrackerFull.WA_MMTP_TrackerDataSet1.PATIENTSTableAdapter'.
I guess I'm a little confused. once code is moved into the custom partial class it seems to lose any knowledge of the main class file and any references in the class. Am I doing it wrong? or is it a restriction of the .Net since it is in another
file. If its because its in another file, my next question would it be better to take the partial class I created to contain my custom code, should I just move my partial class to the bottom of the dataset.designer.vb file? But if I do this, wont it still
erase my custom code. Any suggestions?
Thanks
MichaelThanks for the reply.
They are compile time errors, but the error shows up even before compiling, so I guess it would be designer time exception also.
What I did the other day was to create a new class file (didn't add a namespace statement to class) then added the code in prev message. This morning I added a new module and added the prev code in it incased in the namespace
namespace ADO.NET.DataSet1TableAdapters statement. But I still have the same errors messages. I tried
to set the Custom tool.namespace property of the dataset to WA_MMTPDataset and then did the following in a module:
namespace WA_MMTPDataset
Module Module4
Partial Public Class PATIENTSTableAdapter
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.PATIENTSDataTable, ClinicianId As Integer, sql As string) As Integer
Dim dd As System.Data.SqlClient.SqlCommand
dd = new System.Data.SqlClient.SqlCommand
dd.CommandText = Sql
dd.Connection = OpenConnection() ' UsersTableAdapter1.Connection
Me.Adapter.SelectCommand = dd 'Me.CommandCollection(0)
If (Me.ClearBeforeFill = true) Then
dataTable.Clear
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
End Class
Partial Public Class UsersTableAdapter
<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter"), _
Global.System.ComponentModel.DataObjectMethodAttribute(Global.System.ComponentModel.DataObjectMethodType.Fill, true)> _
Public Overloads Overridable Function FillbyClinicianId(ByVal dataTable As WA_MMTP_TrackerDataSet1.UsersDataTable, ClinicianId As Integer, sql As string) As Integer
Dim dd3 As System.Data.SqlClient.SqlCommand
dd3 = new System.Data.SqlClient.SqlCommand
dd3.CommandText = Sql
dd3.Connection = OpenConnection()
Me.Adapter.SelectCommand = dd3 'Me.CommandCollection(0)
If (Me.ClearBeforeFill = true) Then
dataTable.Clear
End If
Dim returnValue As Integer = Me.Adapter.Fill(dataTable)
Return returnValue
End Function
End Class
End Module
End Namespace
But I'm still getting the same errors. -
How to find out the company code given the customer number
I am new to SAP please help me out? How do you find out the answer.
Hi,
Goto T.Code SE11/Se16/SE16n.
Key in the table name as KNB1.
Enter your customer number.
Execute.
You will get your company code here.
Another way is Goto XD02/XD03.
Enter your customer number.On company code press F4.Enter the customer number and press Enter.A list of company code in which your customer presents will appear.
Regards,
Krishna. -
Looking for an ABAP-code for the customer-Exit Variable
Hello,
I have defined a Variable (Interval) which should be processed through Customer-Exit on characteristic Supplier-Date (date format). This Customer-Exit Variable is called ZDATE.
We have another time characteristic Fiscal year / period (0FISCPER) which has single mandatory input variable for ex. 003.2011. This input variable is called ZFISCPER.
Now I have to write an ABAP-Code where the customer exit variable ZDATE is derived (fiscal last year to last period) from input variable ZFISCPER in INCLUDE ZXRSRU01.
Means when the input variable (ZFISCPER) is 003.2011 then the customer exit variable ZDATE should be calculated in INCLUDE ZXRSRU01 as 01.01.2010 u2013 28.02.2011 (fiscal last year to last period).
Since I am quite new in ABAP, I will be grateful if you could write me sample ABAP for this.
Many thanks.Hi,
should be something like:
DATA: l_s_range TYPE rsr_s_rangesid,
input LIKE sy-datum.
When 'ZDATE'
CONCATENATE '0101' 0FISCPER+3(4)-1 into l_s_range-low. "You get 01012010
CONCATENATE '01' Fiscper+1(6) into input. "You get 01032011
l_s_range-high = input-1. "You get 28022011
APPEND l_s_range TO e_t_range.
Greetings
Roman -
How can I get the employee code in the customer master
Hi
What are the settings that I do so that I can get the employee code in the customer master?
We want to create a sales order on a employee , we have HR and SD in the same box.
regards
PravinHi
I tried xd02 it asks me for the customer , ifi click the search icon it opens up the search where thre is a tab named "Customer by Personnel Numbeer" when i try to search it does not show any employees even thoughi havemanyhired in HR
Please tell me what i need to do
regards
Pravin -
Unable to update profit center or plant code in the customer line item
Hi,
We require the profit center and plant code and division in FI
documents (Posted through billing document or through direct FI entry)
We are unable to input plant or profit center in the customer line item
while using F-21 or any other FI transaction
The plant and profit center is not appearing even in customer line item
in RV document (From SD billing)
We have made the Field status group as optional for the reconcilation
accounts.
Regards
SembianHi
Profit center / cost center are generally entered in revenue & expense line items (P&L items). Customer / vendor master and line items are balance sheet items which will not show profit / cost centers.
Regards
Neeraj -
In Report Builder 3.0, I have the following custom code entered:
Public Function SafeDivide(Numerator as String, Denominator as String) as String
Try
If Numerator = “” or Denominator = “” then
Return “-“
End if
If Numerator = “-“ or Denominator = “-“ then
Return “-“
End If
If CDbl(Numerator) =0 or CDbl(Denominator) = 0 then
Return “-“
End if
If IsNothing(Numerator) or IsNothing(Denominator) then
Return "-"
End if
Return Val( ( (CDbl(Numerator) / CDbl(Denominator) )*100 ) )
Catch
Return "-"
End Try
End Function
I call the custom code in the cell with the following equation:
=Code.SafeDivide(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value),sum(Fields!LY_UNITS.Value))
I have the format for the cell set to 0.00%, but it’s not being followed.
I want the result to be formatted as a Percentage, but instead I get values like:
-78.9473684210
80
300
-100
I have the format for the cell set to 0.00%, but it’s not being followed.
How do I do use the custom code and format for a percentage with 2 decimals?Hi AngP,
After testing the issue in my local environment, I can reproduce it. Based on my research, I find this issue is caused by the type of Units_VAR_Percentage cell is string, while the type of CDbl(Parameters!Var_Threshold.Value) is double, so they cannot be
compared.
To fix this issue, we can add a hidden column (Textbox91) next to the Units_VAR_Percentage column, and type =(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value)) /sum(Fields!LY_UNITS.Value) as the expression. Then use the expression below to control the
BackgroundColor:
=iif(iif(reportitems!Units_VAR_Percentage.Value=CStr(format(reportitems!Textbox91.Value,"0.00%")),reportitems!Textbox91.Value,0)>CDbl(Parameters!Var_Threshold.Value),"Yellow","PaleTurquoise")
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to debug start routine for the custom code?
Hi Experts,
Can anybody tell me how to debug the start routine? Also could you please guide me where to write the custom code in the start routine.
Thanks in advance.
Sharat.Rajkumar,
Thank you for your help. but the blog link that you send it to me does not mention anything about ABAP debugger screen.
What should I do once I get in to the ABAP debugger? the link only tells how to get to the ABAP debugger that I know.
Also it say that I have to use the infinite loop to debugg the start routine.
Can anybody tell me how to debugg start routine with the scren shots please. I don't know how to use infinite loop in the start routine. Is their any easy process step by step to see my particular record behavior in the start routine?
I will assing you the points. again thank you. -
T.code FKMT: the customizing navigation to create new variants ...
Hi All,
with reference to t.code FKMT (Account Assignment Model) could anyone show me the customizing navigation to create new variants in the screen template (from menù: seetings/screen template) ?
Thanks
Gandalfplease check
http://sap.ittoolbox.com/groups/technical-functional/sap-acct/screen-template-define-in-tcode-fkmt-2375586
http://iris.tennessee.edu/BPP/FI/Finance%20&%20Controlling/FI_GL_FKMT_FI%20acct%20assnmt%20model%20mgmt.doc.
hopes it helps
Edited by: Jose Lastra on Oct 26, 2008 1:01 PM -
How to view code of all the custom and complex folder folder
How to view code of all the custom and complex folder folder in EUL?
You do not need to run all the reports.
Also i am not sure about why do you need to see the code of every thing, i assume you will not get much from it.
If there is a certain folder you are interested in then this is the way.
Any way there is no way to get the code of the complex folders since they are logical join of other folders.
to get the code of the custom folder s you can use:
select * from eul_us.eul5_objs t
WHERE t.obj_type='CUO'
AND t.obj_object_sql1 IS NOT NULL;
you should look (and concatenate) at the obj_object_sql1,obj_object_sql2.....
Tamir -
Hi All,
T.code O7Z3: could anyone show me the custom. navigation on the t.code O7Z3?
I've SAP ECC 6.0
Thanks
GandaldHi,
SPRO --> IMG --> Financial Accounting(New) --> Account Receivables and Account Payables --> Vendor Accounts --> Line items --> Display Line items --> Display Line items without ALV --> Define Line Layout (O7Z3).
Hope this helps..
Regards,
Praisty -
State code or status code is invalid while deactivate the custom entity record
Hi,
We have migrated to CRM 2013 and facing one issue while deactivating the custom entity record
Error- State code or status code is invalid: State code is invalid or state code is valid but status code is invalid for specified state code
when downloading the log, it is giving below error.
<s:Envelope xmlns:s="<faultcode>s:Client</faultcode><faultstring">http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring
xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en-US">-1 is not a valid state code on new_partner.</faultstring><detail><OrganizationServiceFault xmlns="<ErrorCode>-2147187704</ErrorCode><ErrorDetails">http://schemas.microsoft.com/xrm/2011/Contracts"><ErrorCode>-2147187704</ErrorCode><ErrorDetails
/><Message>-1 is not a valid state code on new_partner.</Message><Timestamp>2014-03-18T05:42:04.5523897Z</Timestamp><InnerFault><ErrorCode>-2147187704</ErrorCode><ErrorDetails /><Message>-1 is not a
valid state code on new_partner.</Message><Timestamp>2014-03-18T05:42:04.5523897Z</Timestamp><InnerFault><ErrorCode>-2147220970</ErrorCode><ErrorDetails /><Message>System.ArgumentException: -1 is not a valid
state code on new_partner.
Parameter name: stateCode</Message><Timestamp>2014-03-18T05:42:04.5523897Z</Timestamp><InnerFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:nil="true"
/><TraceText xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:nil="true" /></InnerFault><TraceText xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:nil="true" /></InnerFault><TraceText xmlns:i="http://www.w3.org/2001/XMLSchema-instance" i:nil="true" /></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>
I checked into system, we have not customized the status reason. We have only two option value "Active"(1) and Inactive(2).
Also we don't have any plugin on SetStateDynamicEntity, we have only one plugin on create for that entity.
Did anyone face this issue? any pointer why its giving this issue??
Thanks in Advance.
Arvind
Regards, Arvindposting the trace log here..
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools, VssWriter, EmailConnector
[2014-03-18 04:13:32.491] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread: 62 |Category: Exception |User: 7492ef42-9460-e311-940e-002dd80b0ca0 |Level: Error |ReqId: fdb76819-9781-4299-9e45-2b6f296f4fce | CrmException..ctor
ilOffset = 0x7
at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException) ilOffset = 0x7
at CrmException..ctor(String message, Exception innerException, Int32 errorCode) ilOffset = 0x5
at StatusCodeValidator.Validate(EntityMetadata entityMetadata, Int32 stateCode, Int32 statusCode) ilOffset = 0x54
at BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context) ilOffset = 0x0
at BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context) ilOffset = 0x1A
at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x25
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0x89
at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x4F
at InternalOperationPlugin.Execute(IServiceProvider serviceProvider) ilOffset = 0x57
at V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) ilOffset = 0x58
at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65
at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0x65
at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1C5
at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4
at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode,
ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x16E
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Boolean traceRequest, OrganizationContext
context, Boolean returnResponse) ilOffset = 0x16A
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) ilOffset = 0x3D
at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType) ilOffset = 0x24
at ilOffset = 0xFFFFFFFF
at SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) ilOffset = 0x241
at DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) ilOffset = 0x100
at ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) ilOffset = 0x48
at ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc) ilOffset = 0xC6
at MessageRpc.Process(Boolean isOperationContextSet) ilOffset = 0x62
at ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext) ilOffset = 0x256
at ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext) ilOffset = 0xF1
at ChannelHandler.AsyncMessagePump(IAsyncResult result) ilOffset = 0x39
at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) ilOffset = 0x0
at AsyncResult.Complete(Boolean completedSynchronously) ilOffset = 0xC2
at AsyncQueueReader.Set(Item item) ilOffset = 0x21
at InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread) ilOffset = 0xD6
at InputQueue`1.EnqueueAndDispatch(T item, Action dequeuedCallback, Boolean canDispatchOnThisThread) ilOffset = 0x0
at SingletonChannelAcceptor`3.Enqueue(QueueItemType item, Action dequeuedCallback, Boolean canDispatchOnThisThread) ilOffset = 0x3D
at EnqueueMessageAsyncResult.CompleteParseAndEnqueue(IAsyncResult result) ilOffset = 0x61
at EnqueueMessageAsyncResult.HandleParseIncomingMessage(IAsyncResult result) ilOffset = 0x13
at AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result) ilOffset = 0x52
at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) ilOffset = 0x0
at AsyncResult.Complete(Boolean completedSynchronously) ilOffset = 0xC2
at ParseMessageAsyncResult.OnRead(IAsyncResult result) ilOffset = 0x43
at AsyncThunk.UnhandledExceptionFrame(IAsyncResult result) ilOffset = 0x0
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x70
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x4
at ReadWriteTask.System.Threading.Tasks.ITaskCompletionAction.Invoke(Task completingTask) ilOffset = 0x45
at Task.FinishContinuations() ilOffset = 0x67
at Task.Finish(Boolean bUserDelegateExecuted) ilOffset = 0x3C
at Task.ExecuteWithThreadLocal(Task& currentTaskSlot) ilOffset = 0xC4
at Task.ExecuteEntry(Boolean bPreventDoubleExecution) ilOffset = 0x96
at ThreadPoolWorkQueue.Dispatch() ilOffset = 0xA2
>Crm Exception: Message: -1 is not a valid state code on new_partner., ErrorCode: -2147187704, InnerException: System.ArgumentException: -1 is not a valid state code on new_partner.
Parameter name: stateCode
[2014-03-18 04:13:32.562] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread: 62 |Category: Platform.Sdk |User: 7492ef42-9460-e311-940e-002dd80b0ca0 |Level: Error |ReqId: fdb76819-9781-4299-9e45-2b6f296f4fce | VersionedPluginProxyStepBase.Execute
ilOffset = 0x65
>Web Service Plug-in failed in SdkMessageProcessingStepId: {1FE67FC9-85A6-E011-AEE1-002DD802FEB1}; EntityName: new_partner; Stage: 30; MessageName: SetStateDynamicEntity; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel,
Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: Microsoft.Crm.CrmArgumentException: -1 is not a valid state code on new_partner.
at Microsoft.Crm.BusinessEntities.StatusCodeValidator.Validate(EntityMetadata entityMetadata, Int32 stateCode, Int32 statusCode)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
Inner Exception: System.ArgumentException: -1 is not a valid state code on new_partner.
Parameter name: stateCode
--- End of inner exception stack trace ---
at Microsoft.Crm.BusinessEntities.StatusCodeValidator.Validate(EntityMetadata entityMetadata, Int32 stateCode, Int32 statusCode)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, BusinessEntity originalEntity, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
[2014-03-18 04:13:32.586] Process: w3wp |Organization:d133c867-097c-e011-a247-02bf9d3bc4f8 |Thread: 62 |Category: Platform |User: 7492ef42-9460-e311-940e-002dd80b0ca0 |Level: Error |ReqId: fdb76819-9781-4299-9e45-2b6f296f4fce | MessageProcessor.Execute
ilOffset = 0x1C5
>MessageProcessor fail to process message 'SetStateDynamicEntity' for 'new_partner'.
[2014-03-18 04:13:32.586] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 62 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: fdb76819-9781-4299-9e45-2b6f296f4fce | ExceptionConverter.ConvertToFault
ilOffset = 0x69
>UNEXPECTED: no fault?
Thanks,
Arvind Singh
Regards, Arvind -
Unable to find the custom code in custom.pll
Hi,
I have an issue in forms.
When we are trying to change any fields in the financial options form in payables, it is gving the following error:
'FRM-40735 ON-ERROR trigger raised unhandled exception ORA-06508.'
So this is because of customization. When we are switching off the custom code, the error doesnot occur.
But there is no code written for this form in the custom.pll and there is no personalisation done on the form.
Please help.Hi Srini,
The issue has been resolved.
The cause for this issue was the size of the assignment variables used to store the form name, block name, item name.
Even though there is no code written for this form, every time any form is opened, the Custom.pll is scanned to check if there is any cirresponding code.
While doing this the form name or block or item name is stored in a variable which is then used for further processing. So our code was throwing exception because the variable couldnot hold the item value.
Thanks for all your help. -
I pasted the statement into my form and it didn't have anymore syntax errors but now it is not actually creating the code. i type in the name and a phone number but nothing is happening?
If you need anymore info please ask. I'm not sure what else to post to help.I am trying to Take the first letter from the Company Name/Customer Name and the last 4 digits from the customers phone number. add them together to create our customer code. IE, my name is sam and the last 4 digits of my number are 6770 so my customer code would be S6770.
here is the code that is under the text field i am trying to use.
form1.#subform[0].CustCode::initialize - (FormCalc, client)
Concat(Left(CustName,1) , Right(TextField9,4))
Heirachy:
form1
-master page
-page 1
-(untitiled content area)
-(untitled subform) (page 1)
-rectangle1
-text6
-CUst.Type
-CustName
-SHip.Via
-CustCode
-TextField8[0]
-Text23[0]
-Text24[0]
-Text25[0]
-TextField8[1]
-Text23[1]
-Text24[1]
-Text25[1]
-CHeckBox2
-Text26[0]
-Text27[0]
-TextFIeld9[0]
-Line4[0]
-Text26[1]
-CHeckBox3[0]
-Text27[1]
-Line4[1]
-Text27[2]
-CHeckBox3[1]
-Text26[2]
-POReq
-Text22
-OfficeUseOnly
-Text29
-Text13[0]
-PrintState
-Text13[1]
-interest
-terms
-CreditLimit
-PriceMatrix
-DropdownList1
-TextFIeld11[0]
-CHeckBox1[0]
-CheckBox1[1]
-Text15
-TextField11[1]
-DropDOwnList5
-Deafult.Loc
-Text28
-Text15
-CHeckBox1[0]
-CHeckBox1[1]
-TextField10[0]
-TextField10[1]
-TextField10[2]
-TextField10[3]
-TextField10[4]
-TextField10[5]
-TextField10[0]
-TextField9[0]
-TextField9[1]
-TextField9[2]
-TextField9[3]
-TextField9[4]
-TextField9[5]
-TextField9[6]
-TextField9[7]
-TextField9[8]
-TextField9[9]
-TextField9[10]
-TextField9[11]
-TextField9[12]
Here is a picture of the form i am trying to make.
Maybe you are looking for
-
My PowerMac G5 sounds like it is going to take off. When I start up, nothing appears on the screen and there is a super load revving sound.. Seems like the fan is running very very fast and loud. Also, power light blinks in 3 blink bursts. Don't know
-
Color balance differs in driver preview from LR
Can anyone explain why I might be seeing a very slight but noticeable difference in color balance from what I see in LR and in the driver Print Preview (this also is reflected in the print output)? Seaside outdoor daylight cloudy leaning towards gree
-
We've used HashTables extensively, both independently and with arrays. Extremely useful little critters. Here are a few off-the-cuff observations 1. Hashtables work very well in combination with arrays as a sort of array index. We have a structure, f
-
TS1630 My Iphone 4 I just Bought today makes NO sound at all During Calls
Hi, I just bought an Apple Iphone 4 today from the ATT store at a local mall. For some reason whenever I listen to voicemails or someone calls me I cannot hear what they are saying. It is very muffled and I hear a little static in the beginning. It *
-
Time was FCP was like any other Mac app where you hold the shift key down and an object or clip or whatever would be constricted to a locked-in horizontal or vertical axis of movement. This is not happening with FCPX. Is there some other key-assist t