As my subject indicates, I am attempting to create a case from within a case from a Custom Entity (using workflow) and I am getting the following error and I am not sure how to resolve it. The error appears multiple times on the screen (probably more than 10 times).
tabsql: SELECT Case_CaseID FROM vCases WHERE Case_CaseID = 123 AND (prop_status not in ('Opportunity','PendingCRE','PendingSync'))
SQL Error
I think the issue might be vCases in the error message above...but I am not sure where to address/change that. This error appears on the page when I click the Global Rule -- Create Tenant Repair. The Global rule calls a custom file --> cases/InspTenantRepair.asp There are two blocks on the asp page and they both pull their data from the cases table. I updated the associated view on the blocks to vCasesPropertyData.
Despite the error on the screen, the blocks appear below the error message. I can enter the work order and save it. I am not landing where I would like after saving..but I think I can work that out.
For now, I need to figure out how to resolve the error message appearing on the screen. The log shows the following error
errormsg 0 SELECT Case_CaseID FROM vCases WITH (NOLOCK) WHERE Case_CaseID = 123 AND (prop_status not in ('Opportunity','PendingCRE','PendingSync')) Invalid column name 'prop_status'
prop_status is not included in vCases. This is a core view that has not been modified.
(prop_status not in ('Opportunity','PendingCRE','PendingSync') This is included on the Work Order tab in the SQL area on the custom entity Property.
Any assistance on resolving the error message on the screen would be greatly appreciated!!!
Here is some other background on what I am trying to do. This client currently on 7.3.c.1 (They need to upgrade servers before we can upgrade them.)
We are working with a client that has multiple Case workflows. The cases operate as Work Orders. These Work Orders are related to a custom entity called Property.
The different Work Orders relate to inspections and repairs. They have three types of inspections and two types of repairs. Therefore, they have a total of five different work order (cases) workflow.
This is all setup and working as expected. However, the client wants to be able to create a repair work order from an inspection Work Order. In order to accommodate this, we have added two Global rules to each of the three different types of inspections. The different types of repairs are Tenant or Landlord and each have their own workflow.
Typically you can create a case from a workflow rule. However, I don't know how to pass the correct workflow if I use the Action Create Case.
Each of these workflows has their own asp page in order to assign the correct workflow.
Again...Any assistance would be greatly appreciated!!!