I have an updatable IG that is updated with Automated row processing and when the user updates a row with the value that already exists in the database, an ugly unique constraint error message pops up. Any way I can customize error messages on IG while keeping Automated Row Processing? Or should I change the processing to PL/SQL?
There is an error handling function option in the application attributes section of Oracle Apex.
It is possible to add a function here and show user friendly errors for common error codes.
More detailed explaination can be found here - http://dgielis.blogspot.com/2018/06/automatically-capture-all-errors-and.html
Edit:
Tested this on IG
APEX provides a way to catch and handle such errors by providing an Error Handling Function. Navigate to the Shared Components > Application Definition Attributes and scroll down until you see the Error Handling Function attribute. There, you would put the name of a function that will handle errors.
If you check the doc, you'll see an example of this type of function: https://docs.oracle.com/en/database/oracle/application-express/19.2/aeapi/Example-of-an-Error-Handling-Function.html#GUID-2CD75881-1A59-4787-B04B-9AAEC14E1A82
The example function is highly commented to explain what types of things you can do. There's an example of how you can create a lookup table of friendly error messages and use the table to replace the cryptic ones (like your example) with something more clear.
Related
And for my very first Stack overflow question I have an issue where I need to create a dashboard where the only thing that is shown on the dashboard is where a 'case' has been moved from one queue to another. In my instance, this is doing using an 'event' called Assign.
But when looking for this event in my standard list of filtering options 'event' is not there.
I'll give you some background. We receive emails and these go through some automatic record creation rules but sometimes we get this wrong. I need to know how many of these cases are then passed to a different queue.
I'd prefer not to have to create another process to be able to do this for me so any help would be appreciated.
I've tried creating a filter using the standard filter options but these do not give me what I need
In sitecore 8, After publishing my VS solution I am able to see few pages while for few pages I get error as "THe Controls Collection can't be modified because the control contains Code blocks i.e( <%...%>)". Please help.
This is typically caused by using code blocks in a Sitecore layout. This will work fine in the Content Editor however as soon as you go to use the Page Editor or Preview a page you will run into this error. This happens because Sitecore dynamically adds the ribbon control to the page which modifies the controls collection.
However because you've mentioned you are seeing it on a published page this may actually not be related to Sitecore and it's ribbon control at all (this can happen in vanilla Asp.net as well). It could just be happening because you are using code blocks to inject values into the header of the page and the controls you are referencing have not been rendered yet. Based on the error message included it looks like you (or at least the Active Commerce skin) may be trying build the meta tags in this fashion.
There are a few options here for solving this issue:
If trying to inject something into your JavaScript (e.g. the ClientID of a field) then do so using Page.ClientScript.RegisterClientScriptBlock.
If you are trying to inject a value into JavaScript you can also move the JavaScript block to the end of the page (before the tag) or in a script block after the control it is referencing. Having it in the will often result in this error.
Use a data binding block instead (<%# %>). If you are accessing a page property you will need to add Page.DataBind() in the Page_Load.
If those don't get you up and running share any relevant code and I should be able to help you further.
References:
http://www.tcsc.com/sitecore-layouts-and-code-blocks/ https://weblogs.asp.net/abdullaabdelhaq/how-to-fix-this-the-controls-collection-cannot-be-modified-because-the-control-contains-code-blocks-i-e-lt-gt
Google's Webmasters Tools show me an error telling me that my product's structured data is missing the name value. However when I view source on my product page I can see that the name is definitely there. I see this:
<h1 class="product-title" itemprop="name">
Why doesn't Google see this property?
Without seeing the actual page and code, it's difficult to determine exactly why you're seeing that error message. But I would guess that it's because of improper nesting. So just make sure that the name property is nested within the product type.
With the Sitecore OMS, it was possible to create custom report filters that used the Sitecore rules engine to accept user input. This was useful for filtering by ItemId, URL, IP Address, etc. Here is an example of a custom filter for the OMS.
How does one go about accepting user input with the Sitecore DMS? It appears that the old filter methodology has been scrapped in lieu of "Predefined Filters", which are hard-coded values that get injected into the SQL Statement's WHERE clause.
You are aware that every item in Sitecore has the Analyze tab in which there is a "Reports" option where the user can see reports specific to the item? I realize that these are really "canned" reports, but it's not too difficult to create new ones or adapt the existing ones to give you what you want to see. If the reports aren't specific enough, you can always create your own reports and then just simply drop them into the item reports folder here: /sitecore/system/Settings/Analytics/Reports/Item Reports/. Also, keep in mind that all the SQL queries are located in items here: /sitecore/system/Settings/Analytics/Reports SQL Queries and it's not difficult to add a parameter (i.e. the date parameter for example).
I know that it has a bit of a learning curve, but creating your own queries and reports capable of taking some user input isn't out of the question. Please let me know if you have something specific or if you need further help. I've spent a good amount of time doing custom reports and I'd be happy to answer any questions.
I'm trying to create an aggregation using Facebook's Open Graph for an action. Similar to how they have an aggregate for their "Cook" action in their Open Graph tutorials.
When I set up the aggregation and go to save changes, I get the error:
"No Paths Included
The Group By option for your aggregation must include at least one of the provided paths to your selected object type."
But it tells me under the advanced tab that "Grouping can't be configured for Aggregations that show actions".
So, any idea why I can't make an action aggregation, even when following their tutorial exactly?
Thanks,
Gaz
Just to let you know, I opened a bug about his issue yesterday.
https://developers.facebook.com/bugs/182435155230238?browse=search_50c0c0f757ac57630521765
I'll update this post when/if the bug is resolved.