microsoft crm 4 plugin on entity create does not fire but entity is still created - dynamics-crm-4

We are experiencing an issue where our MS CRM 4 pre-event ("before") create plugins do not appear to fire about 1-2% of the time (based on hidden attribute data that's only set in the create plugin not being populated). We see no errors in the event viewer at the time entities are created, although I do see that post-event plugins on the same entity instances also do not run (as if the pipeline has been aborted).
Has anyone ever seen a case where a pre-event plugin does not fire but the entity is still created? I manually verified the plugin registration matches our QA environment exactly and we are not able to re-create the issue in QA.
My assumption with a pre-event create plugin is that if it encounters an exception -- either unhandled or a thrown InvalidPluginExecutionException -- it will stop the pipeline execution and prevent the entity instance from being created (these are custom entities only being created in the CRM UI -- nothing else is creating these entities). Could it somehow encounter an error and the entity could still be created?
Thanks in advance for any hints to get to the bottom of this. While some of the plugins are complex we still see the issue sporadically with some very simple plugins that only set a single hidden attribute and validate another attribute for uniqueness.
Dave

Related

Flow Import Error: Non-existent Layout Release UUID upon Re-upload

I’m seeing errors when I try to upload my flow to the Hyperscience application (v34.0.3) - can anyone who has experience using the Hyperscience product assist with this? It claims
System setting referenced by input key "layout_release_uuid" does not exist.
I had just made some changes to the flow from a prior import and now it seems like I'm stuck. I tried reverting my changes to what I had initially uploaded and I'm still seeing this error, not sure what I'm missing or what else to try.
error dialog contents
There are several reasons why flow JSON uploads might fail or throw validation errors. Outlined below are some possible explanations:
The version of flow is incompatible with the Hyperscience application version installed.
The flow JSON contains multiple blocks identified by the same reference name. Each block must have its own unique reference name.
The flow being imported was previously associated with a layout_release_uuid that it is not able to match against in the instance.
You're likely seeing this particular error because Hyperscience flows are linked to releases and the flow has unlinked from the release upon re-uploading.
There could be other reasons too. Checking the logs would be a good first step. I am a consistent user of Hyperscience and typically reach out to flows.sdk#hyperscience.com when running into issues that I cannot debug myself.

Unable to create a new project in Web2Project

I recently downloaded Web2Project after going through the reviews. Installation was a breeze and the application is neatly aligned. I was able to create the users, assign permissions, create companies etc.
However when I am trying to create a project , despite filling all the fields in the screen the page just refreshes back without giving any error message or creating a project.
I am looking to see if there is a way to troubleshoot what is going on with the page. I tried exploring to create an account in Web2Project support forums but not able to create an account through the available media and hence seeking technical assistance through Stackoverflow.
Web2Project New Installation
Web2Project Code (Just installed on WAMP Server) -- Projects Module
After filling all the fields in the Project Screen, the project should be created.
But the screen just refreshes without creating the project. No errors shown. When I go to Project List page nothing is created.
I was facing same problem. Took a lot of work until realized that the cause was the field PROJECT_ID of the table PROJECTS was not created with the auto increment definition. I just seted up this property and the problem was solved.
How did i discover the cause of the problem? In the SYSTEM ADMIN module, access the SYSTEM CONFIGURATION page, and then set the value of the field DEBUG LEVEL to 1, and check the field SHOW DEBUG MESSAGES. This will allow the web2project to log into C:\Windows\Temp\PHP72x64_errors.log (in case of my instalation) the error.
Good luck!
I'm facing the same problem and took a lot time to solved until I came here.
Goto the table project immediately, found no auto_increment in project_id field. Put it on, it worked!
And hoping current web2Project maintainer will fix this in their installer.
Thank you!

How to avoid data caching when querying the database?

I'm having a strange problem with ASP.NET MVC4 and Entity Framework 5: The web application I'm building retrieves data from a database and sends it as Json into a viewmodel on the page, from which it then gets presented in a table on the page. The data represents the state of some datapoints that change every now and then.
Now I observed the following behaviour:
when I run the web application from my development server, everything works fine and the shown data is up to date.
when I deploy the web app to a production server (which talks to the very same DB), the page does not represent the current state of the data
I can't breakpoint the controller method that retrieves the data, as it only occurs on the production server, but when I look into the Json data I can see that it actually is old data. So it seems like EF is caching the retrieved data. This is a serious problem as we use this web application for industrial monitoring purposes and therefore need to rely on up-to-date data.
Has anyone encountered the same issue? Any help on this is greatly appreciated!
I don't know entity framework that well but I think this has something to do with change tracking. I'd try disabling it to force EF to re-query the DB, I think (and others please can correct me if I'm wrong) but unless SaveChanges has been called on an ObjectContext if you re-query the same data the database won't be queried again.
I've used MergeOption = MergeOption.NoTracking (on the ObjectSet) to turn it off in my project.

how to create liferay Table in mySql?

how to see my liferay table in mysql database?
i have created portal-ext.properties in liferay home.but i cant see my liferey table mySql..
table is created in docroot/web-inf/sql in eclipse IDE...
help me where i m wrong and which thing missing?
#
# MySQL
#
include-and-override=portal-ext.properties
include-and-override=${liferay.home}/portal-ext.properties
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/kportal?useUnicode=true&characterEn
coding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=ubuntu123
schema.run.enabled=true
schema.run.minimal=true
Tables created through service-builder will only be created once you deploy your plugin to the actual server (and run the server), not on build time. Also, your plugin needs to deploy correctly - if initialization fails (e.g. due to missing pieces or dependencies that are not met), the tables will not be created.
Also, the tables by default will be named with the namespace you gave as a prefix. So if you declare a namespace X (in service.xml) and an entity named Y, the table to look for will be named X_Y.
Also, remember you'll have to run ant build-services after you edited your service.xml. Then deploy it and wait for a log message similar "...your plugin... is available for use" to be sure it deployed correctly. (Edit: This is no longer printed for portlets, only for the other plugin types, so you might not see it when you deployed your plugin)
If this doesn't help, please give more information. Currently you don't give any details about what you've actually tried. You'll find more steps and details on the development guide.
Also, make sure
that the account you use for the database has CREATE TABLE permissions (you use root in your configuration above - that should do the trick)
that you're checking the correct database in case you have multiple
that Liferay actually picks up your configuration file. The startup log will tell you which portal-ext.properties files are read, as well as which database it will use. In case you can't find the name/location of your portal-ext.properties file, make sure that you indeed have a file with this name. A common problem on windows is that people create portal-ext.properties.txt (and Windows hides the .txt part of the name)

Generate Core Data Sqlite Database on Server

I have an iPad app that uses Core Data with Sqlite. I keep getting errors when a save is called on the managedobjectcontext. The error is sql error (19) constraint fails. I found a few websites that lead me to modify my generation code and update the Z_MAX field in the table Z_PRIMARYKEY table. Are there any other things that Core Data does behind the scenes similar to this?
Note: Yes, I know I shouldn't be doing this but part of the problem is the core data database is over 5 MB and it takes a long time to process the data from a plist. (Maybe JSON would be faster?)
EDIT I just noticed Z_ENT which is the entity id. I have to add that into the generation as well.
EDIT 2 Go the Entities mapped but I'm still getting the error. It is having trouble doing deletes and updates even through it appears to be valid.
Appeared to just be an issue with the app itself.