CRM 2011 - Attach emails to Opportunity error - WRPC Token
G'day All,
I have a strange issue with emails being attached to opportunities, it randomly fails but if you try to track it again, you get a message stating the email is already tracked. I have walked through the process and cannot find a direct cause except in the events
log I get these exception errors.
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 19/01/2015 2:53:52 PM
Event time (UTC): 19/01/2015 6:53:52 AM
Event ID: 155d395f8b9045749127998d0162fa5e
Event sequence: 95
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT-1-130661239309108800
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: CRM
Process information:
Process ID: 5676
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: CrmException
Exception message: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid, TOKEN_EXPIRY=4320, IGNORE_TOKEN=False, TOKEN_KEY=bzg84I9iEeSoFwBQVpdiEDNfDUlIBN6D+78h0hVOIjjQl2PE3swtHhBYMw1dAFkD
at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState()
at Microsoft.Crm.Application.Pages.Activities.ActivityAttachmentDownload.ConfigurePage()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://crm:5555/P/Activities/Attachment/download.aspx?AttachmentType=1001&AttachmentId=873d9f1c-b74e-e411-93af-005056976210
Request path: /P/Activities/Attachment/download.aspx
User host address: 192.168.0.115
User: DO\Reception3
Is authenticated: True
Authentication Type: Negotiate
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 24
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at Microsoft.Crm.Application.Security.WrpcContext.ValidateTokenState()
at Microsoft.Crm.Application.Pages.Activities.ActivityAttachmentDownload.ConfigurePage()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
In most of the articles it suggests to enter a registry key to disable the token checking, but I am not sure what the knock on effect of this will be if I disable the token check. But more importantly, I am concerned about what may be causing this in the first
place.
The emails that are being attached, can be quite large, as a lot of them are plans (2-5mgs) but in the grand scheme of things they are not that big at all.
Any help, pointers, thoughts, will be gratefully accepted.
cheers
Jamie
Jamie Wilbraham Lead CRM / Systems Consultant Metisc Computer Services 5/800 Albany Highway Victoria Park WA Tel: (08) 9355 5880 Fax: (08) 9291 7893 www.metisc.com.au [email protected]
You would get this error if the custom workflow assembly is registered in the Sandbox. Try reregistering the assembly so that it is not in the sandbox
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
Similar Messages
-
CRM 2011: Sending Email through Outlook first
We have never used Email through CRM. Is it possible to send an email through Outlook first then to CRM? Also wanting to make sure it is linked to the Account, when sent.
Emails created in CRM are sent using the outgoing email method specified on the account of the user creating the email. Only one outgoing method can be set for a user, the methods are to use the CRM client for Outlook or the Email Router (later versions
of CRM also have Server-side synchronization but that is not available for CRM 2011).
An email created in CRM can only be sent via one of the outgoing methods. Regardless of how it is sent, the email will be stored in CRM and linked to the record it was regarded to.
Can you provide more detail on your question? -
CRM 2011 Outlook Client not showing all columns in Opportunity Views
Versions:
CRM: 2011 On-Premise - 5.0.9688.1533
Outlook: 2010 Professional - 14.0.6122.5000 32bit
CRM Client for Outlook: 5.0.9690.1992
Basic Problem
The Outlook Client views that show up in Opportunities do not have all the columns that are in the view.
Some of the views do, but not all of them.
Example:
View Name: Won Opportunities
Columns in view: Created on, Location, Quote Type, Scope of Work, Quote Number, Booked Sale Date.....8 other
columns (many custom columns)
Columns in View in Outlook: Icon, Quote Number, Categories, Flag....thats all.
Other Notes
This only happens in the Opportunity section of the Outlook Client.
This does not happen in advanced find in Outlook or anywhere in the web client. This does not happen for any other entity.
This happens on all of our users Outlook clients.
I have tried recreating the view.
No error messages are recording in any logs that I can find.
Any ideas on why this is happening or how to fix it?
Thank you
Paul1. Are you sure this is a System View and not a User Defined View? Can you take a screenshot of all the availalbe Outlook views when you click on the little down arrow to add a new view? Yes. See the screen shot at the bottom. It is a public
view.
2. What happens when you close the view and add it back? same results.
3. What happens when you restart Outlook? I ask because if you customized your System Views, those are only persistent for a given session. If your restart Outlook, then it should reset the View. we have tried that. and uninstalled Outlook client
and reinstalled. And uninstalled Outlook and reinstalled. Same results. The only view that works for opportunities is the Default Custom View. The strange thing is that the filters are working just fine. just not the columns.
4. A workaround - have you tried creating a new System View similar to the one you want? Yes. same results -
I added an OnLoad Event to my Opportunity Form. When the form loads I get the following error: "Object doesn't support property or method 'setDisable'. What am I doing wrong?
// Microsoft Dynamics CRM 2011 Java Script
// Name: New_Opportunity_New_Library
// Modified Date: 4/2/2015
// Company:
// Practice Area SubPractice Area Code
function Form_OnSave()
function Form_OnLoad()
setDisableSubPracticeArea()
function setDisableSubPracticeArea(){
if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() == null){
// If the value is null set field sub-practice area disable field
Xrm.Page.getControl("cpdc_subpracticearea").setDisable(false);
else if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() != null){
// if value is not null then set visible sub-practicearea field
Xrm.Page.getControl("cpdc_subpracticearea").setDisable(true);Hi,
Use below code :
function Form_OnSave() {
function Form_OnLoad() {
setDisableSubPracticeArea()
function setDisableSubPracticeArea() {
if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() == null) {
// If the value is null set field sub-practice area disable field
Xrm.Page.getControl("cpdc_subpracticearea").setDisabled(false);
else if (Xrm.Page.getAttribute("cpdc_primarypracticearea").getValue() != null) {
// if value is not null then set visible sub-practicearea field
Xrm.Page.getControl("cpdc_subpracticearea").setDisabled(true);
Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !!!
Vikram Singh. !!! My Blog -
CRM 2011 Outlook plugin corrupts emails
Hi, we have CRM 2011 server with rollup 14 installed, using CRM 2011 for Outlook plugin. One client PC's Outlook client is corrupting many emails when set to track in CRM.
I have removed CRM, removed all registry entries pertaining to CRM, repaired Office 2013, reinstalled CRM 2011, applied rollup 14, and this still happens. Every PC I configure with the account and open the email, it crashes Outlook. I have run scanPST on
the OST, run the repair requests in Exchange server 2010. I have deleted the forms cache.
When an email gets corrupted, when opened in Outlook it says "Could not install the custom actions" and then Outlook 2013 crashes. It does this in Outlook 2010 also. In OWA, it says:
"The item can't be opened because it's become corrupted. The entire error report is listed below"
Request
Url: https://mail.domain.com:443/owa/forms/premium/SubPageEventHandler.aspx?ae=Item&a=Preview&t=IPM.Note&id=RgAAAAAuqXPz0wsjR7oZyndzAS3zBwDD7li80LE7TJZxUTnw%2f23uABHjr5k6AACQoheAQ7%2fBSI2QCj7WrlR2AAA7MLI6AAAJ&calist=16160016&canary=VJfXrHC4sk6pcFV4ES1rUkrzVHB_ndAIAXf5zZ4jHl1ZmP6AAfpamQ6POFzh_KiCfUKhXuaTFiY.&SP=1&pfmk=M40%3a1381870228548%3bM6%3a1381870228584%3bM33%3a1381870230010%3bM46%3a1381870230029&subpage=ReadMessage.ascx
User: UserA
EX Address: /o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=UserA
SMTP Address: [email protected]
OWA version: 14.3.158.1
Mailbox server: exchange.domain.local
Exception
Exception type: Microsoft.Exchange.Data.Storage.CorruptDataException
Exception message: The voting data was corrupt.
Call stack
Microsoft.Exchange.Data.Storage.VotingInfo.Read(BinaryReader reader)
Microsoft.Exchange.Data.Storage.VotingInfo..ctor(MessageItem messageItem)
Microsoft.Exchange.Data.Storage.MessageItem.get_VotingInfo()
Microsoft.Exchange.Clients.Owa.Premium.RenderingUtilities.RenderVotingInfobarMessages(MessageItem message, Infobar infobar, UserContext userContext)
Microsoft.Exchange.Clients.Owa.Premium.ReadMessage.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)There's nothing in the error report to hint that the problem is related to CRM. The error report contains references to voting data. Does the problem email have voting buttons enabled on it? In Outlook 2013, when you create a new email message there is
a Options tab with a feature called Use Voting Buttons. Perhaps this feature has a problem on its own, or when voting emails are tracked in CRM?
Neil Benson, CRM Addict and MVP at Slalom Consulting.
Find me on Twitter. Join over 20,000 other CRM professionals on the
Microsoft Dynamics CRM group on LinkedIn. -
i have a macbook and am using outlook 2011 as email. receiving okay. sending okay sometimes. am now getting error message 4.7.0 not allowed when sending. what is the cause? how do I fix please?
I have discovered that the emails have in fact been sent but much later, maybe it's a network problem with the people i am sending it to. so i checked my sent items and they are there, but at the time the email doesn't go straight into the sent box or drafts so i'm assuming it's disappeared and type it again. i'll keep going with it, until someone can give me a possible solution or explanation as to what is happening.
-
CRM 2011+An error has occurred during report processing. (rsProcessingAborted)
Hi,
i have installed CRM 2011 on-premise version in Server A. Database and CRM 2011 Reporting Extenison in Server B. Both the server are 64 bit server and IIS 7.0 . i can able to browse the Report server url. USer as been added in Sql DB Logins and
as permission to Reportserver and ReportservertempDB.
i can able to access the CRM Reports only using Admin Credenttials that is from the credential which Report server is installed and configured
Error in server 1:
Web service request SetDataSourceCredentials to Report Server
(http://servername/Reportserver_XXXSQLSRVR)failed with SoapException. Error: An error has occurred during report processing. (rsProcessingAborted).
Error in Server 2: took this error From error log file
processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Data source 'CRM': An error has occurred. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: An exception has occurred in data source 'CRM'. Details: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: i INFO: DataPrefetch abort handler called for Report with ID=. Aborting data sources ...
processing!ReportServer_0-1!7e4!03/16/2011-10:34:51:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing., ;
Info: Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'CRM'.
---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Caller S-1-5-21-1587242514-2812063576-513219026-1110 has insufficient privilege to run report as user 9f69b98c-c73d-e011-bd85-842b2b6567dd
Eventvwr error in server 2:
Failed to unload app domain DefaultDomain. The following exception occurred: Error while unloading appdomain. (Exception from HRESULT: 0x80131015).
I tried the Following ways to fix it
1.added User as content manager
2.In CRM apppool i have Admin in identity column
its really paining when i'm unable to access the CRM 2011 Default Reports. got stucked for a day.
Thanks, Saraswathy KumaraveluHi All,
I encountered this same issue today after installing CRM 2011.
CRM 2011 on Server A
SQL and SSRS 2008 R2 on Server B
I found that I got the same errors described here when running the standard reports even after I had installed the Reporting Extension (CRM 2011 replacement for CRM 4.0 Data Connector). The reason I got the error was because the 'Data Source Type' had not
been updated in Report Manager.
Here's how I resolved:
1. Browse to Report Manager (http://SERVERB/Reports)
2. Open the Organisation_MSCRM folder
3. Click Show Details
4. Open the MSCRM_DataSource
5. Change the Data Source Type from Microsoft SQL Server
to Microsoft Dynamics CRM SQL
*Note: - This option is only available once Reporting Extension has been installed on SSRS Server.
6. Clear the contents of the Connection String box
7. Set the Connect Using: option to Credentials Supplied by user running the report
but do NOT check the
Use as Windows Credentials when connecting to the DataSource option.
8. Click Apply
9. Restart the SQL Reporting Services Service in
Reporting Services Configuration Manager
10. Test by running one of the Standard CRM Reports (e.g. User Summary)
Ta Da!! - Success!!
Hope this helps! -
Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tells me that the file is being used even when iall other programs are closed. How can I fix this issue?
Thanks Jeff, I was not aware that a template could be multi-page. (All the existing templates were 1 page)
But it worked, saving me some steps. When I was finished I renamed the document, and locked it.
Then tried to save it but could not because it was locked. I closed it, went to my Spread Sheet Folder ,
to find it, it was not there. The Finder could not find it either.
So I start over again.
I opened up Numbers and it showed my personal Numbers template folder, it contained both my new
original 4 page template and the vanished saved document!
I tried to delete the template containing these document data and could not - I had to go to the Library/Application Support/Numbers to physically remove it from this folder. Then I started over again. I Finally found out how to make it work: I can now "save as", and then lock, and it will go to place where I want it to be saved and locked.
The secret is: Click on the document title in the menu bar, and it opens up "Save as...", which works the same as in OS 10.4.11, and you can pick the place you want for saving. Once done that, you can then lock the document in the same pull down menu, and then close it.
I also found later that I can delete a template from its folder, by letting Numbers open the templates,
clicking on the one I want to remove, then go to the "Numbers Menu/File/Move to...", select "Desktop"
and from there the selected template can then be thrown into the Trash from there.
It appears now that the real fault of the Numbers software is that the "Save as" command is not available in the "Edit" or "File" pull-down menus, but hidden behind the title of the document. -
Custom report Fetch XML error in CRM 2011 online version
When i am trying to connect to my online CRM 2011 server below error appears
Unable to connect to data source 'DataSource1'.The connection to server "https://{my org name}.crm5.dynamics.com/XRMServices/2011/Discovery.svc"
could not be established. Make sure that the connection string and credentials are correct, and try again.
I also tried as per Abhishek Agarwal MSFT suggestion as
1. Make sure that the credentials are correct.
2. Try accessing the same URL through the web browser by providing the same credentials.
3. Try enabling traces for BIDS and look for the detailed error logs. You can do this by creating the regular
CRM trace registry entries under HKLM\SOFTWARE\Microsoft\MSCRMBidsExtensions or HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSCRMBidsExtensions is you have a 64 bit
machine.
but nothing happens, trace log is
ExceptionManager.PrepareException
>Unhandled Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The connection to server "https://xxx1.crm5.dynamics.com/XRMServices/2011/Discovery.svc"
could not be established. Make sure that the connection string and credentials are correct, and try again.
>
>Inner Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: Metadata contains a reference that cannot be resolved: 'https://xxx1.crm5.dynamics.com/XRMServices/2011/Discovery.svc?wsdl'.
> at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
> at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
> at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
> at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)
> at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpoints(Type contractType, Uri serviceUri)
> at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri)
> at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri)
> at Microsoft.Crm.ServiceConfigurationCache`1.GetServiceConfiguration(Uri serviceUrl)
> at Microsoft.Crm.ServiceProxyCache`1.GetServiceProxy(Uri serviceUrl, Credential credentials, Uri homeRealmUrl, String passportEnvironment)
>Inner Exception: Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException: The remote server returned an error: (407) Proxy Authentication Required.
> at System.Net.HttpWebRequest.GetResponse()
> at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
> at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)First, please make sure you are using the right version of Microsoft Dynamics CRM 2011 Report Authoring Extension
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=64a09b75-8376-4b9d-aea3-8a83a1837c4d
Second, please make sure the connection string is correct, for CRM online,
The connection string should be: <ServerURL>;<OrganizationUniqueName>;<HomeRealmURL>
In this connection string, only <ServerURL> is mandatory.
For more details, please refer to
http://rc.crm.dynamics.com/rc/2011/en-us/online/5.0/help/how_rpt_customcreatefetchrs.htm
Please remember to click “Mark as Answer” on the post that helps you. Jackie Chen, Microsoft Online Community Support -
Unhandle error in Silverlight Application MS CRM 2011 with UR-18
Hi All,
Will silverligh work in MS CRM 2011 UR-18 /MS CRM 2013/2015, As I am getting the error "Unhandle Silverlight error" in MS CRM 2011 UR-18, But it was working fine in MS CRM 2011 UR-8.
Please suggest me on the same.
Thanks
Srikanth ReddySilverlight is a client-side technology, so shouldn't be impacted by the Crm Server version. Is this error on all clients, or just certain machines ?
If the error is on all clients, and only after installing UR18, then the most likely problem is with the specific code in the Silverlight web resource. Can you identify where the error is thrown ?
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk -
Can CRM 2011 email router process digitally signed emails?
Hi there,
Please can you tell em is the CRM 2011 email router is able to process digitally signed emails, as our just seems to ignore them.
Its annoying as you can track the email manually, but not through the email router at the moment.
Many thanks
Stuart
StuartHi Bartosz,
Can i ask if you ever found a way forward with this...?
I think i have a similar issue with signed emails not being processed.
Many thanks
Stuart
Stuart -
ODI send email with latest error file attachment
We have kick-out/error file with the format *err.txt. Whenever error occurs the same gets overwritten by the latest file. We are attaching this error file on the completion of the job. If error file generates, everything is fine. But, on the successful run, I mean when there are no error file generation, it attaches the previous run error file.
Anyone of you help me how to handle this situation. Is there any way to validate the file generation date before attaching the file.
Thanks in advance
Edited by: user12958295 on Oct 30, 2012 7:42 AMHi,
Thanks for the response.
As of now we are following that as a workaround. However our client wants to avoid the manual work of delete/move/renaming the error file.
Is it possible to check the file generated date with sysdate for attaching the error file by odisendmail.
Thanks!
BRM -
Email pdf smartform error!
Hi,
I manage to send pdf to email with attachment, but getting this error
"An unrecognized token BT28.35" was found"
My code:
statics: ls_doc type sodocchgi1,
lv_lines type i,
ls_objhead type soli_tab,
i_objpack type table of sopcklsti1 WITH HEADER LINE,
i_objtxt type table of solisti1 WITH HEADER LINE,
i_objbin type table of solisti1 WITH HEADER LINE,
i_reclist type table of somlreci1 wiTH HEADER LINE.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = lv_filesize
TABLES
OTF = gs_output-otfdata
LINES = gt_lines
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
refresh: i_objpack, i_objtxt, i_objbin, i_reclist.
convert to bin
LOOP AT gt_lines into gs_lines.
TRANSLATE gs_lines USING '~'.
CONCATENATE gs_buffer gs_lines INTO gs_buffer.
ENDLOOP.
TRANSLATE gs_buffer USING '~'.
DO.
i_objbin = gs_buffer.
APPEND i_objbin.
SHIFT gs_buffer LEFT BY 255 PLACES.
IF gs_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Create Message Body
Title and Description
concatenate 'Invoice' ls_rseg-belnr
into i_objtxt separated by space.
append i_objtxt.
describe table i_objtxt lines lv_lines.
read table i_objtxt index lv_lines.
ls_Doc-obj_name = 'INVOICE'.
concatenate 'TSL Invoice' ls_rseg-belnr into ls_Doc-obj_descr
separated by space.
ls_doc-expiry_dat = sy-datum + 10.
ls_Doc-sensitivty = 'F'.
ls_Doc-doc_size = lv_lines * 255.
clear i_reclist.
i_reclist-receiver = gv_emailaddr.
i_reclist-rec_type = 'U'.
append i_reclist.
clear i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = lv_lines.
i_objpack-doc_type = 'RAW'.
append i_objpack.
(pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
Länge des Attachment ermitteln
describe table i_objbin lines lv_lines.
read table i_objbin index lv_lines.
i_objpack-doc_size = lv_lines * 255.
i_objpack-body_num = lv_lines.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'INVOICE'.
concatenate 'TSL Invoice' ls_rseg-belnr into i_objpack-obj_descr
separated by space.
append i_objpack.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_doc
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = ls_objhead
CONTENTS_BIN = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
if sy-subrc = 0.
message e398(00) with 'Email ERS invoice failed'
ls_rseg-belnr into g_dummy.
cf_retcode = sy-subrc.
PERFORM protocol_update.
endif.HI
GOOD
GO THROUGH THIS LINK WHICH LL GIVE YOU BRIEF IDEA ABOUT SENDING PDF FILE USING MAIL, THAT YOU CAN IMPLEMNET IN YUOR PROGRAM
http://www.sapgenie.com/abap/example_code.htm
/people/emmanuele.prudenzano/blog/2006/08/03/an-advanced-solution-for-sending-email-from-solution-manager-or-crm
THANKS
MRUTYUN -
CRM 2011 missing price list warning
Hi,
we have CRM 2011 instance with UR6. Recently we have upgraded into UR18. Every thing is working fine . we are getting missing price list warning at Opportunity form as MS has been added revenue field.
We thought below options to turnoff warning:
1. form "on load" java script : Unsupported way
2. Database update for revenue attribute: Un supported way
3. Export and import data with revenue value: supported way .But modified date will be changed
4. Workflow : Supported way : But modified date will be changed.
Please suggest me good option to over come this warning
thanks in advance
VenkattaHi,
Workable solution is assign pricelist to opportunity in form load if there is no pricelist attached to the opportunity. This works well and is fully supported.
Hope this helps.
Minal Dahiya
blog : http://minaldahiya.blogspot.com.au/
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful" -
Publishing CRM 2011 on Web Applicaiton Proxy Using Kerberos Constrained Delegation
Hello,
Couldn't find a sub category that seemed suitable for this discussion so I just dropped it in Windows Server 2012 General.
So to summarize...
Web Application Proxy (WAP) on 2012r2, ADFS on 2012r2, and CRM 2011 RU11 is on 2008r2.
WAP has a pass through rule setup for the ADFS site and a preauth rule setup for the CRM site. All SPNs and delegation are setup in AD.
Setup is 1 WAP, 1 NIC, 1 ADFS server and 1 CRM server.
I have successfully publish my CRM 2011 site on Web application proxy and am successfully doing Kerberos Constrained Delegation. I am also doing Client certificate authentication on the ADFS server which works fine. I am doing this over 49443
just fine.
Try to access the CRM site, WAP redirects me to ADFS as expect, Client certificate auth happens at the ADFS server, I am redirected back to my CRM site with my authToken so pre authentication can happen successfully. KCD ensues after just fine
and i am reverse proxied back to the CRM site.
Here in lies the problem though...
When i am reversed proxied back to the CRM site, i receive the standard "An error has occurred Try this action again.... yada yada yada" message with the Try Again or Close button. If i click try again, i am able to access the site with no
problem and the solution works great! This obviously is not acceptable though.
The error URL looks like the following (changed it for obvious reasons)
https://crmsite.contoso.com/ORG1/_common/error/errorhandler.aspx?BackUri=https%3a%2f%2fadfs.contoso.com%2fadfs%2fls%3fversion%3d1.0%26action%3dsignin%26realm%3durn%253AAppProxy%253Acom%26appRealm%3d63ce68f1-3de4-e411-9412-005056a67a8d%26returnUrl%3dhttps%253A%252F%252Fcrmsite.contoso.com%252F%26client-request-id%3d4A1A0958-76F3-0000-5D91-1C4AF376D001&ErrorCode=&Parm0=%0d%0a%0d%0aError%20Details%3a%20An%20unhandled%20exception%20occurred%20during%20the%20execution%20of%20the%20current%20web%20request.%20Please%20review%20the%20stack%20trace%20for%20more%20information%20about%20the%20error%20and%20where%20it%20originated%20in%20the%20code.&RequestUri=%2fdefault.aspx
The error that correlates to this in CRM is
Event code: 3005
Event message: An unhandled exception has occurred.
Little bit further down
Exception information:
Exception type: InvalidOperationException
Exception message: CRM Parameter Filter - Invalid parameter 'AuthMethod=CertificateAuthentication' in Request.Form on page /default.aspx
If anybody has any insight or experience publishing CRM on WAP using KCD and has run into this issue, help would be greatly appreciated.
Also to head of this question, we can not do an IFD setup. There is a custom developed solution which resides on top of the CRM installation that is not claims friendly.
Thanks!
JonathanHi,
Please check if anyone of the links below is helpful:
http://blogs.msdn.com/b/javaller/archive/2014/01/13/publishing-crm-internet-facing-deployment-using-web-application-proxy-and.aspx
http://blogs.technet.com/b/dynamicspts/archive/2014/10/03/using-web-application-proxy-to-publish-dynamics-crm-2013-to-the-internet.aspx
Best Regards.
Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Maybe you are looking for
-
How to use a session variable in Conditional Format?
Hi Gurus, I created a session variable , called Actual_date, using the following SELECT: SELECT SYSDATE FROM DUAL In a report title the following expression worked fine: @{biServer.variables['NQ_SESSION.Actual_date']} I red in a reply in this forum,
-
Unable to convert file to PDF for using in Microsoft Word.
I purchased Convert file to PDF $19.99. After several attempts it will not do anything other than "Converting file to Word using Adobe Export PDF online" This keeps going up to 20 mins. Still nothing happens. Could anyone help.
-
I have just brought a preowned iPad mini which had the prev persons apple Id details still in, I have my own I'd from my iPad I want to use. how do I change the prev persons details to enable me to use my details
-
Hi Gurus, I run program RFFOAVIS_FPAYM for Correspondence . I define in spro sort variant for the program and specific payment method with vendor number sort ! I choose specific sort variant. But the program not run with this? Can anyone tell if work
-
MacBook wont wake up after installing 10.5.7
Hi My MacBook wont wake up after installing 10.5.7. Have to reboot. Any ideas gratefully received.