Modifying the default dialog shown on file upload error in MS CRM 2013 - dynamics-crm-2013

We have requirement like
Sum of all the attachments file sizes should not exceed the Max upload file size configured in System Settings in MS CRM 2013.
OOB the Max upload file size is valid for a single file.
We have implement the logic by reading the organiztion setting and validate the file sizes
when the sum of all the attachments of an activity exceeds this size we are throwing invalidpluginexecution exception.
Which is showing the entire error message in the window.
Our requirement is to show only the custom message as Highlighted.
Please Help.
Thanks in advance.

It is not possible to prevent the stacktrace from being displayed in this dialog. Microsoft clearly did not implement a graceful Business Process error handling here.

Related

SAP ArchiveLink object cannot be opened

I have requirement to make SF Spool to PDF and save with Archivelink,
I've used FMs: RSTS_GET_ATTRIBUTES, CONVERT_OTFSPOOLJOB_2_PDF, SCMS_XSTRING_TO_BINARY then save to application server via Open Dataset.
For archiving part FMs are ARCHIVOBJECT_CREATE_TABLE and ARCHIV_CONNECTION_INSERT. Setup has been made by basis in OAC0 and I've setup the OAC2 and OAC3. Upon executing the program, TOA01 tables are having entries.
But when checking the PDF file using FM ARCHIVOBJECT_DISPLAY this error pops up
When I'm trying to directly download the PDF file from application server to presentation layer it can be viewed normally.
What I am missing?
Managed to solve after looking closely with data types
BINARCHIVOBJECT parameter from ARCHIVOBJECT_CREATE_TABLE is set at RAW1024 while
BINARY TAB parameter from SCMS_XSTRING_TO_BINARY is RAW128.
Executed cl_bcs_convert=>xstring_to_xtab

LoadRunner_How to Attach xlsx file in the scripts

Well im new in Load runner Tools honestly speaking morning only i have started the learning these tools and during re_execution time i stuck at one point and regarding that i need to understand how to attach excel-sheet.
in my application there is field where we basically attach the employee data and supporting attachment for these fields always be in excel format.
So i have recorded all these steps using load runner and during re-execution load runner failed and throws following error. i tried lot but not getting any idea how to attach these excel file from my own computer to scripts.
if someone guide me these how to handle these situation ?
Many Thanks
Error Details
Error65
GBO_UploadSupplierlists.c(65):
Error -26488: Could not obtain information about submitted file "C:\Users\Amit.Bhagwat\Documents\VuGen\Scripts\Supplier-Onboarding Process\ST_Supplier.xlsx": _stat32 rc=-1, errno=2 [No such file or directory]. Using an empty file [MsgId: MERR-26488]
GBO_UploadSupplierlists.c C:\Users\Amit.Bhagwat\Documents\VuGen\Scripts\Supplier-Onboarding Process Supplier-Onboarding Process

The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator

I have infopath form with SharePoint designer approval workflow.
I am showing some details on that form. but when I have more data in SharePoint List it is giving bellow error
"The amount of data that was returned by a data connection has exceeded the maximum limit that was configured by the server administrator"
I guess Infopath form is getting all the data from the list instead of particular row. can any one please suggest me to filter on current item ?
Resolution: Ensure to follow the below steps.
i. Open the central administration
ii. Go to General Application Settings
iii. InfoPath Form Services
iv. Configure InfoPath Form Services
v. Click on Data Connection Response Size
vi. By default it is 1500 kilobytes
vii. Change the Response Size in kilobytes (Increase the number).
In this case what can be happening is that the amount of data you’re pulling back in your queries has grown to an unmanageable size.
Another possibility is that you’re including additional columns that perhaps you don’t actually need to include – by removing the unnecessary fields this could immediately resolve your issue if you don’t require all the columns.
For office 365 this one going to work.
including additional columns that perhaps you don’t actually need to include – by removing the unnecessary fields this could immediately resolve your issue if you don’t require all the columns.

Excel Macro Compatibility Issue

I have added my macro to a already existing excel file with macros (build on lower version of excel). It is working fine on my system as well as other systems with same excel version. But when the excel file is opened in other versions, it either crashes or gives error messages like unexpected error occurred(32809)/ compile error. I am using Excel 2010 14.0.7143.500. Can any body tell me how to resolve this issue?
The Telemetry Log displays some simple information about the recorded events. Each record displayed in the Telemetry Log contains a title and lists the severity of the event displayed. For errors, the records also include a description of the error together with steps to address the issue. Keep in mind that not all of the records displayed represent errors caused by Office solutions; the Telemetry Log also shows when solutions and files are loaded or closed successfully.
For example, the issue titled "OM Hidden: Comment.Initial Property" appears if a solution or macro-enabled file opened in Word 2013 attempts to get the initials of a commenter who is associated with a comment. Word 2013 features an improved commenting experience that does not display commenter initials by default. The APIs associated with the older commenting model have been hidden in the Word 2013 object model but remain available for backwards-compatibility. The "OM Hidden: Comment.Initial" issue in the indicates the file that attempted to use the API, the application that raised the event (Word 2013), the time and date of the event, and short description about the error and how to fix it.

Intermittent Crystal Reports error "The request could not be submitted for background processing."

We are running Crystal Reports on a Windows Server 2008 with .NET framework 3.5 SP1.
I have seen many causes of the general error "The request could not be submitted for background processing." on other forums, however they tend to be persistent and repeatable affecting just a single report due to a specific formatting issue with a specific report.
We are seeing this error with the below stack trace, intermittently.
It affects multiple different reports we have.
It affects one particular report more frequently than other reports.
Once a report is affected the same error will often appear in multiple reports at approximately the same time eg. for the next 10 minutes.
The same report run with the same parameters may work when run again (soon after) or the application may need restarting before the report can be successfully re run.
These reports all worked previously without issue. No change in server or code seems apparent which would have precipitated this error. All code behind for this is VB.NET
We have had difficulty reproducing it in test environments and upgrading to the latest version of Crystal has not helped at all.
Any help or suggestions that you might be able to make to resolve this issue would be appreciated.
"The request could not be submitted for background processing."
at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)
at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)
at "USER CODE"
After many days, finally I discovered what is the root of problem, in case you are including jpg images in your report.
The thing is that CR for VS2008 or later versions, can’t handle jpg files in CMYK mode. CR only can handle jpg files in RGB mode.
It’s funny that lower versions of CR (the one that came with VS2003) could handle any kind of jpg files. Thanks, Crystal.
For me the issue was with the Temporary Crystal Report that gets generated in the TEMP folder in Windows. There is a limit to the number of Temporary Crystal Reports that can be generated by Crystal report engine while processing it in a loop. Either the space in Temp folder runs out due to low memory in C drive or the limit of reports is reached after which in one single run crystal report cannot export further. It will give the error mentioned in question.
For me this issue was recurring at every 500 reports that were processed (I was generating the reports say, for a year and exporting them to a system folder one by one using my application)
The solution is simple. Always close and dispose the temporary .rpt Crystal Report file after exporting it .
for i as integer=0 to reportcount -1
Dim rpt as New MyCrystalReport
Dim filename as String = "MyReport" & i & ".Pdf"
//Query the DB obtain the dataset then set the datasource to the report
...
//Export the report
rpt.ExportToDiskCrystalDecisions.Shared.ExportFormatType.PortableDocFormat,fileName)
rpt.Close()
rpt.Dispose()
next
Isolate the report generation code.
Our final resolution was to take the code that was generating the report and move it into its own isolated service. Our original service then calls our new Crystal service with the relevant parameters and Crystal RPT file. This is obviously a costly solution as it involves modifying all report generation code to call the Crystal service instead. The Crystal service does not exhibit the error. The code had not changed besides that, so we can only presume the cause of the error was some interaction of the Crystal reports engine and the environment within our application.
Is there a chance the report object is leaked in the server's memory? I ran into a similar case where the report object was being stored into a Session object, so the report didn't need to get reloaded as the user navigated between pages. However, when the user was done with the report, the object remained in the Session, and wasn't cleaned up properly when the Session was destroyed by the server. I had to add a bit of code in the Session_End event in global.asax to find the report object and call the dispose method on it.
The fact that this appears intermittently but then affects all reports for a matter of 10 minutes makes me think it could be session-related. In my situation the server reached a limit on the number of reports that could be created on the server (in memory) because they weren't being released. The symptoms were similar to yours.
Hope this helps!
Try this: If you left any blank space at crystal report(header,footer or any sections) suppress it. that's all. I had this problem and i fixed this way.
I too have come across such issue, where I figured out the Column having Photographs was creating the issue. The way out was to convert the photograph (Datatype Image in SQL Server) from .NET Data set to byte and then save it as Bitmap. After , that this same BMP file can be converted to bytes and replaced to appropriate column of the identified row. By this the space reduced to a great extend and then after exporting the Report document and Datatable was disposed properly.